MultiversX Tracker is Live!

How big is the input of a P2PKH transaction?

Bitcoin Stack Exchange

Bitcoin News / Bitcoin Stack Exchange 166 Views

The first number does not include the prevout, sequence number, or the length byte for the scriptSig. It also uses 65 bytes for the public key (which is correct if it is uncompressed, but compressed keys of 33 bytes are more common now). Correcting it gives 139 + 36 + 4 + 1 + (33 - 65) = 148.

The developer in the third case forgot to include the sequence number, making the result 147 or 148.

The guys at Princeton clearly know best.

So to summarize:

PREVOUT: hash (32 bytes) index (4 bytes)
SCRIPTSIG: length (1 byte) CONTENTS: push opcode (1 byte) signature (71 or 72 bytes) push opcode (1 byte) pubkey (33 bytes for compressed, 65 for uncompressed)
sequence (4 bytes)

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