Why Nostr? What is Njump?
2023-04-25 13:14:19
in reply to

mattoshi on Nostr: Yep! So I'll just focus on p2wpkh. The locking script for those UTXOs looks like ...

Yep! So I'll just focus on p2wpkh. The locking script for those UTXOs looks like this: 00 14 <20 byte pubKeyHash>. Old nodes interpret it as, push an empty array to the stack then push 20 bytes (convert 16 from hex to decimal) to the stack. They think that anybody can spend this UTXO because it doesn't have any signature checks! Even a signature field with just 00 would be valid according to their rules. If old nodes could think like a human, I like to picture them looking at the current blockchain and being so confused as to why all of these transactions are happening without signatures. In reality, most of the nodes are upgraded to segwit. These segwit nodes require an additional field on the transaction called a witness (old nodes never even see this). When a segwit node verifies the same transaction, it will verify that the witness field contains a public key that hashes to correct value and has valid signature.
Author Public Key
npub1hylkjxmhhvzhlyc9stwkxv79mwskfggltr89lm60udqfqen9868qdj76k4