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)
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