Author

Topic: Electrum can't handle "send to pubkey" inputs (Read 231 times)

legendary
Activity: 952
Merit: 1367
I just found out Electrum can't handle "send to pubkey" inputs.

Ah! That’s the reason why rpc-explorer does not show balance for any of them! I was going to blame it…
legendary
Activity: 2268
Merit: 18509
I may be wrong as I haven't checked the Electrum source code
You are correct. The relevant code for the sweep function is here: https://github.com/spesmilo/electrum/blob/5f7388a475cd796c30caab688e7f8136a8c6ac27/electrum/wallet.py#L145-L174

The sweep function calls the function find_utxos_for_privkey at line 171. This is defined at line 147, which then calls the function _append_utxos_to_inputs at line 149. This is then in turn defined at line 108, which looks for P2PK outputs.

This is not implemented across the wallet because it would involve every address in every wallet also having its pubkey queried for P2PK outputs, which would be an unnecessary increase in server load for a very rarely used type of script. Anyone still creating P2PK outputs is clearly doing so for a specific reason and not doing so via Electrum.
hero member
Activity: 714
Merit: 1010
Crypto Swap Exchange
Electrum tries to sweep P2PK UTXOs from private keys in addition to P2PKH or P2SH UTXOs.
Does that mean the import private key feature does it too?
From what I understood it's only implemented in the sweep function to empty funds controlled by a private key into an existing wallet where that private key is (usually) not in the key space of a HD-wallet. This additional check for existing P2PK UTXOs has been limited to the sweep action because such sweeps are likely a rarely used action, so the more "expensive" additional checks don't hurt.

I may be wrong as I haven't checked the Electrum source code and don't have any private key that controls a P2PK UTXO.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Electrum tries to sweep P2PK UTXOs from private keys in addition to P2PKH or P2SH UTXOs.
Does that mean the import private key feature does it too?
hero member
Activity: 714
Merit: 1010
Crypto Swap Exchange
I can't test it either, but from above I read that Electrum tries to sweep P2PK UTXOs from private keys in addition to P2PKH or P2SH UTXOs.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Too bad there seems to be no SPV wallet solution?
I haven't found one. I'm curious which SPV wallets would check for P2PK-balances when you enter a private key, but I can't really test that.
I'm currently searching the latest transactions that sent funds to a pubkey, to see how often it's still used. My guess is it's barely used, and considering I haven't missed this feature in years, it makes (some) sense they haven't implemented it.

Update: just this month:
Code:
730941  d26c7bbb1b02c378cecb493376a45ba5d8a9b0a07990c7e1127255749f272218        2022-04-08 05:49:27     30194   13.1308 1QHPwFgm6MyQEV7j4ye9Czk9LgB6FEcK95      pubkey  41048e4f1cbf53f83bd08dbde89c24171843cdf150f1f1acbf11f4baced58b53e64504eb86de988c5f078e0439cde29e4ab1d5c040206a815bc756eb0d6013414fd2ac  0       1
731287  1f53da828a9a951932c49225dacbfaea5a85f8be02005e646a384ac7d7f1c4c7        2022-04-10 16:24:37     10000   4.2806  1KCctnpEHrdqX6F3n4bpfvxeBD8coPbgpW      pubkey  210384ca763a1c4db0a0bd255b0e54ea69b629bd6de3edcf9bf1216b56b25cb85513ac  0       1
731287  1f53da828a9a951932c49225dacbfaea5a85f8be02005e646a384ac7d7f1c4c7        2022-04-10 16:24:37     10000   4.2806  1KCctnpEHrdqX6F3n4bpfvxeBD8coPbgpW      pubkey  210384ca763a1c4db0a0bd255b0e54ea69b629bd6de3edcf9bf1216b56b25cb85513ac  0       1
731287  1f53da828a9a951932c49225dacbfaea5a85f8be02005e646a384ac7d7f1c4c7        2022-04-10 16:24:37     10000   4.2806  1KCctnpEHrdqX6F3n4bpfvxeBD8coPbgpW      pubkey  210384ca763a1c4db0a0bd255b0e54ea69b629bd6de3edcf9bf1216b56b25cb85513ac  0       1
731287  1f53da828a9a951932c49225dacbfaea5a85f8be02005e646a384ac7d7f1c4c7        2022-04-10 16:24:37     10000   4.2806  1KCctnpEHrdqX6F3n4bpfvxeBD8coPbgpW      pubkey  210384ca763a1c4db0a0bd255b0e54ea69b629bd6de3edcf9bf1216b56b25cb85513ac  0       1
731287  1f53da828a9a951932c49225dacbfaea5a85f8be02005e646a384ac7d7f1c4c7        2022-04-10 16:24:37     10000   4.2806  1KCctnpEHrdqX6F3n4bpfvxeBD8coPbgpW      pubkey  210384ca763a1c4db0a0bd255b0e54ea69b629bd6de3edcf9bf1216b56b25cb85513ac  0       1
731371  d355dcfa16bc109aae436cfc1a9308f973d18ffbcc45a2b10feaac1bbf37d8be        2022-04-11 06:51:53     300000  126.333 1HVQAKeC8FowqXuf16xHmwcA6S8ZzZivNZ      pubkey  21026d07eb2fb4f3e97f47cf33fd6073a4d4fed613e36810ac5cd136e9626502f1d5ac  0       1
731471  4849e3ed88b5cb24bf7538dcf462cd45f5e9bd9ba17f6e567abe4d43d7536b4d        2022-04-12 00:44:49     9000    3.5639  1AcjyaZATBLS21Bb1EnhYsTULZBxhA5eZH      pubkey  21033a26305d4c43d3c52212a82fa3eb810ee3102246763d475ba1ae82e196070839ac  0       1
731699  4b2185b6f85e8fc0a35dd6cf27e275e425401fb6b40327a0497078e6742d3355        2022-04-13 14:29:34     5000    2.005   1CN8i6YVprrxtEYkjZPH8uNYX9zNrxEA3f      pubkey  21037c394f2adceafcdc5e429218f410f164a80918a185becf7cb314b120dd0cb740ac  0       1
731699  4b2185b6f85e8fc0a35dd6cf27e275e425401fb6b40327a0497078e6742d3355        2022-04-13 14:29:34     5000    2.005   1CN8i6YVprrxtEYkjZPH8uNYX9zNrxEA3f      pubkey  21037c394f2adceafcdc5e429218f410f164a80918a185becf7cb314b120dd0cb740ac  0       1
731699  4b2185b6f85e8fc0a35dd6cf27e275e425401fb6b40327a0497078e6742d3355        2022-04-13 14:29:34     5000    2.005   1CN8i6YVprrxtEYkjZPH8uNYX9zNrxEA3f      pubkey  21037c394f2adceafcdc5e429218f410f164a80918a185becf7cb314b120dd0cb740ac  0       1
731699  4b2185b6f85e8fc0a35dd6cf27e275e425401fb6b40327a0497078e6742d3355        2022-04-13 14:29:34     5000    2.005   1CN8i6YVprrxtEYkjZPH8uNYX9zNrxEA3f      pubkey  21037c394f2adceafcdc5e429218f410f164a80918a185becf7cb314b120dd0cb740ac  0       1
731699  4b2185b6f85e8fc0a35dd6cf27e275e425401fb6b40327a0497078e6742d3355        2022-04-13 14:29:34     5000    2.005   1CN8i6YVprrxtEYkjZPH8uNYX9zNrxEA3f      pubkey  21037c394f2adceafcdc5e429218f410f164a80918a185becf7cb314b120dd0cb740ac  0       1
731699  4b2185b6f85e8fc0a35dd6cf27e275e425401fb6b40327a0497078e6742d3355        2022-04-13 14:29:34     5000    2.005   1CN8i6YVprrxtEYkjZPH8uNYX9zNrxEA3f      pubkey  21037c394f2adceafcdc5e429218f410f164a80918a185becf7cb314b120dd0cb740ac  0       1
731699  4b2185b6f85e8fc0a35dd6cf27e275e425401fb6b40327a0497078e6742d3355        2022-04-13 14:29:34     5000    2.005   1CN8i6YVprrxtEYkjZPH8uNYX9zNrxEA3f      pubkey  21037c394f2adceafcdc5e429218f410f164a80918a185becf7cb314b120dd0cb740ac  0       1
731699  4b2185b6f85e8fc0a35dd6cf27e275e425401fb6b40327a0497078e6742d3355        2022-04-13 14:29:34     5000    2.005   1CN8i6YVprrxtEYkjZPH8uNYX9zNrxEA3f      pubkey  21037c394f2adceafcdc5e429218f410f164a80918a185becf7cb314b120dd0cb740ac  0       1
731699  4b2185b6f85e8fc0a35dd6cf27e275e425401fb6b40327a0497078e6742d3355        2022-04-13 14:29:34     5000    2.005   1CN8i6YVprrxtEYkjZPH8uNYX9zNrxEA3f      pubkey  21037c394f2adceafcdc5e429218f410f164a80918a185becf7cb314b120dd0cb740ac  0       1
731699  4b2185b6f85e8fc0a35dd6cf27e275e425401fb6b40327a0497078e6742d3355        2022-04-13 14:29:34     5000    2.005   1CN8i6YVprrxtEYkjZPH8uNYX9zNrxEA3f      pubkey  21037c394f2adceafcdc5e429218f410f164a80918a185becf7cb314b120dd0cb740ac  0       1
732085  9649e94d718a2b0d0693c024c15941c17576fe7ec44f436889416b72e650c927        2022-04-16 06:03:36     8       0.0032  1Kz5QaUPDtKrj5SqW5tFkn7WZh8LmQaQi4      pubkey  4104ffd03de44a6e11b9917f3a29f9443283d9871c9d743ef30d5eddcd37094b64d1b3d8090496b53256786bf5c82932ec23c3b74d9f05a6f95a8b5529352656664bac  1       1
732394  c10f968a29d023b4abf588be01aa7c1040de3e27a2891f4657e920b79dfa7dff        2022-04-18 06:34:39     30194   12.0021 1DvNWzMKA5anVx5viFG4qHqAXcGLPcx6Aj      pubkey  4104f2c1f0a1e1425862a1b1b9eb49c2018f78ba79d83ee78cc4d0272e2e808b7c483bee4f04d4a4a6b8f32cd306e6cbbf65f3d947b14ed79b589898004db2c0f3c1ac  0       1
733119  b5351ff14b906d7e5f425b1ab3794173b697a82ce06684024ef1fa802e6cf02d        2022-04-23 04:28:38     30194   12.0124 1DvNWzMKA5anVx5viFG4qHqAXcGLPcx6Aj      pubkey  4104f2c1f0a1e1425862a1b1b9eb49c2018f78ba79d83ee78cc4d0272e2e808b7c483bee4f04d4a4a6b8f32cd306e6cbbf65f3d947b14ed79b589898004db2c0f3c1ac  0       1
733400  e8fd792d61dbbe980b5523edf4c8140633ab0ad0128e752483333c914fabe5c0        2022-04-24 22:34:35     10000   3.9555  17pNcMHjYChUwVU1PFE7kZyu8ho42tJywX      pubkey  210319a351e0ed68367529088780006f1d26fece333390e18920493c01ede62279b6ac  0       1
733400  e8fd792d61dbbe980b5523edf4c8140633ab0ad0128e752483333c914fabe5c0        2022-04-24 22:34:35     10000   3.9555  17pNcMHjYChUwVU1PFE7kZyu8ho42tJywX      pubkey  210319a351e0ed68367529088780006f1d26fece333390e18920493c01ede62279b6ac  0       1
733400  e8fd792d61dbbe980b5523edf4c8140633ab0ad0128e752483333c914fabe5c0        2022-04-24 22:34:35     10000   3.9555  17pNcMHjYChUwVU1PFE7kZyu8ho42tJywX      pubkey  210319a351e0ed68367529088780006f1d26fece333390e18920493c01ede62279b6ac  0       1
733400  e8fd792d61dbbe980b5523edf4c8140633ab0ad0128e752483333c914fabe5c0        2022-04-24 22:34:35     10000   3.9555  17pNcMHjYChUwVU1PFE7kZyu8ho42tJywX      pubkey  210319a351e0ed68367529088780006f1d26fece333390e18920493c01ede62279b6ac  0       1
733400  e8fd792d61dbbe980b5523edf4c8140633ab0ad0128e752483333c914fabe5c0        2022-04-24 22:34:35     10000   3.9555  17pNcMHjYChUwVU1PFE7kZyu8ho42tJywX      pubkey  210319a351e0ed68367529088780006f1d26fece333390e18920493c01ede62279b6ac  0       1
733400  e8fd792d61dbbe980b5523edf4c8140633ab0ad0128e752483333c914fabe5c0        2022-04-24 22:34:35     10000   3.9555  17pNcMHjYChUwVU1PFE7kZyu8ho42tJywX      pubkey  210319a351e0ed68367529088780006f1d26fece333390e18920493c01ede62279b6ac  0       1
733400  e8fd792d61dbbe980b5523edf4c8140633ab0ad0128e752483333c914fabe5c0        2022-04-24 22:34:35     10000   3.9555  17pNcMHjYChUwVU1PFE7kZyu8ho42tJywX      pubkey  210319a351e0ed68367529088780006f1d26fece333390e18920493c01ede62279b6ac  0       1
733400  e8fd792d61dbbe980b5523edf4c8140633ab0ad0128e752483333c914fabe5c0        2022-04-24 22:34:35     10000   3.9555  17pNcMHjYChUwVU1PFE7kZyu8ho42tJywX      pubkey  210319a351e0ed68367529088780006f1d26fece333390e18920493c01ede62279b6ac  0       1
733400  e8fd792d61dbbe980b5523edf4c8140633ab0ad0128e752483333c914fabe5c0        2022-04-24 22:34:35     10000   3.9555  17pNcMHjYChUwVU1PFE7kZyu8ho42tJywX      pubkey  210319a351e0ed68367529088780006f1d26fece333390e18920493c01ede62279b6ac  0       1
733400  e8fd792d61dbbe980b5523edf4c8140633ab0ad0128e752483333c914fabe5c0        2022-04-24 22:34:35     10000   3.9555  17pNcMHjYChUwVU1PFE7kZyu8ho42tJywX      pubkey  210319a351e0ed68367529088780006f1d26fece333390e18920493c01ede62279b6ac  0       1
733400  5e6d9bc2fd23832e370f30016ee819ca8dce5bbd6366896efc681938189ad708        2022-04-24 22:34:35     5000    1.9777  15kXCvWckQ5x9rWKp5EVUVqYi6c3nSuuGh      pubkey  2102798bb9dfbeb01ebc606a5039b63ae242a758179c1a4b390fea0ec8b8afc8f04dac  0       1
733400  5e6d9bc2fd23832e370f30016ee819ca8dce5bbd6366896efc681938189ad708        2022-04-24 22:34:35     5000    1.9777  15kXCvWckQ5x9rWKp5EVUVqYi6c3nSuuGh      pubkey  2102798bb9dfbeb01ebc606a5039b63ae242a758179c1a4b390fea0ec8b8afc8f04dac  0       1
733400  5e6d9bc2fd23832e370f30016ee819ca8dce5bbd6366896efc681938189ad708        2022-04-24 22:34:35     5000    1.9777  15kXCvWckQ5x9rWKp5EVUVqYi6c3nSuuGh      pubkey  2102798bb9dfbeb01ebc606a5039b63ae242a758179c1a4b390fea0ec8b8afc8f04dac  0       1
733400  5e6d9bc2fd23832e370f30016ee819ca8dce5bbd6366896efc681938189ad708        2022-04-24 22:34:35     5000    1.9777  15kXCvWckQ5x9rWKp5EVUVqYi6c3nSuuGh      pubkey  2102798bb9dfbeb01ebc606a5039b63ae242a758179c1a4b390fea0ec8b8afc8f04dac  0       1
733400  5e6d9bc2fd23832e370f30016ee819ca8dce5bbd6366896efc681938189ad708        2022-04-24 22:34:35     5000    1.9777  15kXCvWckQ5x9rWKp5EVUVqYi6c3nSuuGh      pubkey  2102798bb9dfbeb01ebc606a5039b63ae242a758179c1a4b390fea0ec8b8afc8f04dac  0       1
733400  5e6d9bc2fd23832e370f30016ee819ca8dce5bbd6366896efc681938189ad708        2022-04-24 22:34:35     5000    1.9777  15kXCvWckQ5x9rWKp5EVUVqYi6c3nSuuGh      pubkey  2102798bb9dfbeb01ebc606a5039b63ae242a758179c1a4b390fea0ec8b8afc8f04dac  0       1
733400  5e6d9bc2fd23832e370f30016ee819ca8dce5bbd6366896efc681938189ad708        2022-04-24 22:34:35     5000    1.9777  15kXCvWckQ5x9rWKp5EVUVqYi6c3nSuuGh      pubkey  2102798bb9dfbeb01ebc606a5039b63ae242a758179c1a4b390fea0ec8b8afc8f04dac  0       1
733400  5e6d9bc2fd23832e370f30016ee819ca8dce5bbd6366896efc681938189ad708        2022-04-24 22:34:35     5000    1.9777  15kXCvWckQ5x9rWKp5EVUVqYi6c3nSuuGh      pubkey  2102798bb9dfbeb01ebc606a5039b63ae242a758179c1a4b390fea0ec8b8afc8f04dac  0       1
733400  5e6d9bc2fd23832e370f30016ee819ca8dce5bbd6366896efc681938189ad708        2022-04-24 22:34:35     5000    1.9777  15kXCvWckQ5x9rWKp5EVUVqYi6c3nSuuGh      pubkey  2102798bb9dfbeb01ebc606a5039b63ae242a758179c1a4b390fea0ec8b8afc8f04dac  0       1
733400  5e6d9bc2fd23832e370f30016ee819ca8dce5bbd6366896efc681938189ad708        2022-04-24 22:34:35     5000    1.9777  15kXCvWckQ5x9rWKp5EVUVqYi6c3nSuuGh      pubkey  2102798bb9dfbeb01ebc606a5039b63ae242a758179c1a4b390fea0ec8b8afc8f04dac  0       1
hero member
Activity: 714
Merit: 1010
Crypto Swap Exchange
Thank you for reminding me of importpubkey and importmulti, if that is the only solution with Bitcoin Core. I will need to do some more scripting to cram all pubkeys and addresses of my interest into a new Bitcoin Core watch-only wallet.

Too bad there seems to be no SPV wallet solution?
legendary
Activity: 2730
Merit: 7065
Farewell, Leo. You will be missed!
Does anyone have an idea or suggestion which wallet would be able to setup such a watch-only wallet that properly recognizes the P2PK transaction balances and additionally the later mostly P2PKH spam to the derived addresses?

Maybe with Bitcoin Core...
Yes, Bitcoin Core should do the trick. I found a post from achow101 from a few years ago. He explains how you have to import the public key into your watch only wallet for P2PK outputs to become visible. You can't import the address they are supposedly in because P2PK scripts don't have addresses. The public key should create the correct watch-only wallet.

The second is that importing an address will not give you the pubkey necessary for a P2PK output as those scripts don't have addresses. To add P2PK outputs as watchonly, you will need to import the public key directly.
 
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Does anyone have an idea or suggestion which wallet would be able to setup such a watch-only wallet that properly recognizes the P2PK transaction balances and additionally the later mostly P2PKH spam to the derived addresses?
Bitcoin Core can do this:
Quote from: from Bitcoin Core Console
Code:
importpubkey "pubkey" ( "label" rescan )

Adds a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend. Requires a new wallet backup.
Hint: use importmulti to import more than one public key.

Note: This call can take over an hour to complete if rescan is true, during that time, other rpc calls
may report that the imported pubkey exists but related transactions are still missing, leading to temporarily incorrect/bogus balances and unspent outputs until rescan completes.
Note: Use "getwalletinfo" to query the scanning progress.

Arguments:
1. pubkey    (string, required) The hex-encoded public key
2. label     (string, optional, default="") An optional label
3. rescan    (boolean, optional, default=true) Rescan the wallet for transactions

Result:
null    (json null)

Examples:

Import a public key with rescan
> bitcoin-cli importpubkey "mypubkey"

Import using a label without rescan
> bitcoin-cli importpubkey "mypubkey" "testing" false
hero member
Activity: 714
Merit: 1010
Crypto Swap Exchange
I tried to setup a watch-only wallet with Electrum for the Satoshi and Patoshi "addresses", well that failed apparently because you can't subscribe with Electrum to such P2PK transactions. They seem all to be P2PK coinbase transactions with are "invisible" for Electrum. My "Patoshi" watch-only wallet sees only the spam transactions to the "derived" PKH addresses.  Tongue

Does anyone have an idea or suggestion which wallet would be able to setup such a watch-only wallet that properly recognizes the P2PK transaction balances and additionally the later mostly P2PKH spam to the derived addresses?

Maybe with Bitcoin Core, but I've not yet processed what is stated in https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md and I'm not sure if and how to use it.
legendary
Activity: 2268
Merit: 18509
Maybe, in that time, people could create both P2PK and p2pkh outputs. Right?
Correct.

I got my dates wrong above. I thought P2PKH came later. The first P2PKH transaction was actually in January 2009: https://mempool.space/tx/6f7cf9580f1c2dfb3c4d5d043cdbb128c640e3f20161245aa7372e9666168516

P2PK was commonly used for some time after that, and indeed, can still be used if you wanted to.

Of note, mempool.space correctly segregates transactions based on P2PK and P2PKH.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Maybe, in that time, people could create both P2PK and p2pkh outputs. Right?
I think so, yes.
legendary
Activity: 2380
Merit: 5213
This is an issue with blockchain explorers incorrectly linking P2PK coins to the addresses we are now more familiar with that didn't even exist at the time the P2PK outputs were created.
You are saying that there was no address when the transaction mentioned by LoyceV was made? Am I getting you correctly?
If so, electrum shouldn't show any transactions made before that transaction? Right?
But if you import 19uf6F6EDijkH4ZUaqsi3pZ2SVD6A5RG8X into electrum, you will see some transactions made on February 6, 2010 (11 days before the transaction mentioned by LoyceV)

What am I missing here?
Maybe, in that time, people could create both P2PK and p2pkh outputs. Right?
legendary
Activity: 2268
Merit: 18509
-snip-
Interesting. Does seem to be an issue. The relevant replies by SomberNight make no mention of airgapped use:
https://github.com/spesmilo/electrum/issues/5497#issuecomment-509690955
https://github.com/spesmilo/electrum/pull/3125#issue-268581561

Perhaps there is a way around it by crafting a transaction using the pubkey and the command line, but I'd have to tinker for a while when I'm not on mobile to figure it out.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Also note that Electrum can indeed successfully sweep coins from P2PK inputs; it just won't let you watch them as you can for an address.
I did not know this (and it is the main part of my problem). From what I was told, Fork wallets can't do this (but I don't want to expose the private key to test it).
If Electrum can sweep/import private keys with P2PK-funds, it's not possible to sign offline if it can't import the balance from the pubkey. Considering all of those have a very valuable balance, that's a big shortcoming.
legendary
Activity: 2268
Merit: 18509
This is not an issue on blockchain explorer as the address is linked to its public key.
Just to be pedantic, but actually you are considering the issue in reverse. This is an issue with blockchain explorers incorrectly linking P2PK coins to the addresses we are now more familiar with that didn't even exist at the time the P2PK outputs were created were not used in the P2PK transactions. To spend P2PK outputs, you use the pubkey and not the pubkeyhash, and so the address is irrelevant. Electrum is displaying things correctly, by only showing the coins locked by the pubkeyhash as present at that address.

Also note that Electrum can indeed successfully sweep coins from P2PK inputs; it just won't let you watch them as you can for an address.
legendary
Activity: 1512
Merit: 4795
I can't really find much information about this, searching on keywords give completely different results.
I think the replies made in the topic created by BlackHatCoiner last year should be helpful. He asked the same question.
Electrum doesn't show rewarded coins
NeuroticFish is also very right.

That btt link gives detailed explanation. Which means it was public key paid to, not to address. If address was imported, only the bitcoin sent to the address which is hash of public key is shown on Electrum. This is not an issue on blockchain explorer as the address is linked to its public key.
legendary
Activity: 2380
Merit: 5213
I can't really find much information about this, searching on keywords give completely different results.
I think the replies made in the topic created by BlackHatCoiner last year should be helpful. He asked the same question.
Electrum doesn't show rewarded coins
legendary
Activity: 3500
Merit: 6205
Looking for campaign manager? Contact icopress!
Does Electrum simply not care about the few (but highly funded!) old addresses out there? Or am I missing something?

I've found here an explanation.
From my understanding P2PK does not translate clearly to an address so we could say it's that the one who has received the funds.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I just found out Electrum can't handle "send to pubkey" inputs. If you for instance import 1PTYXwamXXgQoAhDbmUf98rY2Pg1pYXhin (to create a new watch-only wallet), it shows all the spam transactions it received and a total balance of 0.00181009 BTC. The real balance is 3,233.17181009 BTC.
I can't really find much information about this, searching on keywords give completely different results. Is this a bug? Does Electrum simply not care about the few (but highly funded!) old addresses out there? Or am I missing something?

Until a week ago, I didn't even know "send to pubkey" exists. I clearly joined Bitcoin late.
Jump to: