In P2PKH, the lockedscript is DUP,HAS160, <hashedpubkey>, EQUALVERIFY, CHECKSIG and to unlock it you provide <sig, pubkey>. And when you execute in the stack, you will get the the final result as 1, and you're allowed to spend this output.
I don't understand how the execution of stack works for P2WPKH works. The lockedscript is 0,<pubkeyhash>, and you unlock it with the scriptsig <sig,pubkey> inside the witnessdata. How how do you execute this through stack? Can you someone layout step by step how the new nodes validate the unlocking of segwit utxo?
top: hashedpubkey
next: pubkey
bottom: sig
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments