Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: ElDalmatino on January 21, 2024, 05:44:57 PM



Title: Bad P2PKH what means it Puzzle 66
Post by: ElDalmatino on January 21, 2024, 05:44:57 PM
Why is the 66 Puzzle 13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so BAD P2PKH ?!

https://hashxp.org/address/13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so#top (https://hashxp.org/address/13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so#top)

https://hashxp.org/tx/cf7ad170e2f58aea83686095607b12a04cbef15679383a11c124d953bd2c5a6d (https://hashxp.org/tx/cf7ad170e2f58aea83686095607b12a04cbef15679383a11c124d953bd2c5a6d) here you see it


Title: Re: Bad P2PKH what means it Puzzle 66
Post by: Cricktor on January 21, 2024, 07:30:17 PM
Because hashXP Bitcoin blockchain explorer thinks so? There's nothing wrong with 13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so, perfectly valid P2PKH public address.

I assume hashXP flags it as bad address, because it received as of now 19 UTXOs and is thus flagged for address reuse (no outgoing transaction, none of the UTXOs were spent so far).

Normally, you would use a receiving address only once to receive an UTXO and the second time to spend it. No further re-use needed.


Title: Re: Bad P2PKH what means it Puzzle 66
Post by: ElDalmatino on January 21, 2024, 07:47:52 PM
But if you look at blockchain you see
Total Sent
0.00000000 BTC
$0.23 ????? Why this


Title: Re: Bad P2PKH what means it Puzzle 66
Post by: Churchillvv on January 21, 2024, 08:04:33 PM
[I'm not full into techs so I might be wrong.]

The transaction failed or showed bad P2PKH because of the incorrect program size.

If the version byte is 0, but the witness program is neither 20 nor 32 bytes, the script must fail.

So from what I understand, your transaction bytes must be 21 bytes or so for the tx to be considered a P2PKH, hence if it's 20 bytes (as yours) it's considered a P2WPKH whereas you transaction was sent to a P2KPH.


Title: Re: Bad P2PKH what means it Puzzle 66
Post by: Cricktor on January 21, 2024, 08:34:17 PM
I see no immediate issue with transaction cf7ad170e2f58aea83686095607b12a04cbef15679383a11c124d953bd2c5a6d (https://mempool.space/tx/cf7ad170e2f58aea83686095607b12a04cbef15679383a11c124d953bd2c5a6d) which paid 749sat to 13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so (https://mempool.space/address/13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so) with a transaction fee of 1358sat from a native segwit address bc1qt2kyv6fuyq5xjutn7wkhn3ztwwzs52hdxd9zxn (https://mempool.space/address/bc1qt2kyv6fuyq5xjutn7wkhn3ztwwzs52hdxd9zxn). If the transaction were somewhat invalid, it wouldn't have been mined and confirmed.

…
I have no idea what you're talking about. How about you make a screenshot of what confuses you, upload it to https://talkimg.com (https://talkimg.com) and post it with more context and explanation what you don't understand?


Title: Re: Bad P2PKH what means it Puzzle 66
Post by: ElDalmatino on January 21, 2024, 09:59:16 PM
When you look at blockchain.info, it shows spend but the Address never has spend. There is no pubkey. Itīs puzzle 66.

https://www.blockchain.com/explorer/addresses/btc/13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so (https://www.blockchain.com/explorer/addresses/btc/13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so)

other puzzle also show spend in cent/dollar

Total Sent
0.00000000 BTC
$0.23


Title: Re: Bad P2PKH what means it Puzzle 66
Post by: Cricktor on January 21, 2024, 10:33:44 PM
...

Well, blockchain.com simply displays nonsense and it's their problem that they attach a fiat value of $0.23 to 0sat. Seriously? At least they display it correctly that the sum of sent coins is zero because there are no outgoing transactions from this address.

https://talkimg.com/images/2024/01/21/kAdho.png (https://talkimg.com/image/kAdho)

It seems that blockchain.com assumes the dust limit in Satoshi as floor value for fiat conversion? 546sat is currently about $0.23


Title: Re: Bad P2PKH what means it Puzzle 66
Post by: ElDalmatino on January 21, 2024, 10:39:47 PM
Yep thatīs the point, they show it wrong -- why only god knows and the machine in the machine. THX for your answer.


Title: Re: Bad P2PKH what means it Puzzle 66
Post by: NotATether on January 22, 2024, 08:58:19 AM
[I'm not full into techs so I might be wrong.]

The transaction failed or showed bad P2PKH because of the incorrect program size.

If the version byte is 0, but the witness program is neither 20 nor 32 bytes, the script must fail.

So from what I understand, your transaction bytes must be 21 bytes or so for the tx to be considered a P2PKH, hence if it's 20 bytes (as yours) it's considered a P2WPKH whereas you transaction was sent to a P2KPH.

There is no program size for P2PKH, BIPs 14x(0-3) do not apply for legacy P2PKH addresses.

If the script is 0x76 0xa9 0x14 <20 random bytes> 0x87 0xac then it is a P2PKH script.

If it is just 0x0 0x14 <20 random bytes> then it is P2WPKH

If it is 0xac 0x14 <20 random bytes> 0x88 then it is P2SH script.

Because the puzzle transactions are all P2PKH scripts then this is how you should spent them.


Title: Re: Bad P2PKH what means it Puzzle 66
Post by: ymgve2 on January 22, 2024, 03:32:41 PM
it says BAD because someone has reported it as a scam address. Either the reporter entered the wrong address or some scammer entered the wrong address.