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