@adonsats is on PowPing!

PowPing is a place where you can earn Bitcoin simply by socializing, for FREE.
Never tried Bitcoin? It's OK! Just come, socialize, and earn Bitcoin.
Check out adonsats's activities

Bitcoin Script

visit channel home
Total Economy: 0.01 USD
I WOULD LIKE TO HAVE THIS TALK IN FULL CODE: https://medium.com/@Stas33496115/bitcoin-script-engineering-part-iii-8307d495bc52 hallo? someone ?
venezia tipped:
0.01 USD
2 years ago
This sentence in Part III sums up the core of the token implementation very well. "Token spending is possible only if next UTXO has exactly the same locking-script as the UTXO being spent has, apart from new possessor update." Let me try to explain how this is achieved through the code in Part IV. This code is actually executing an ecdsa signing. The only input is TxPreimage you can think of it as a serialized rawtx. The format is specified by bip143. The privatekey and k value and the sighash flag used in the signing are constants. Some calculations are performed in advance off-chain. If the signature obtained after running can be verified by OP_CHECKSIGVERIFY, then we proved the TxPreimage we inputed is equal to the TxPreimage of the current transaction. Because the OP_CHECKSIG will always use the preimage of current TX as the msg.