MultiversX Tracker is Live!

how does the stack execute the unlocking of a segwit lockedscript?

Bitcoin Reddit

More / Bitcoin Reddit 86 Views

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

submitted by /u/Potential_Reach
[link] [comments]
Get BONUS $200 for FREE!

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