MultiversX Tracker is Live!

What is the compact_size function used in BIP341?

Bitcoin Stack Exchange

Bitcoin News / Bitcoin Stack Exchange 160 Views

It refers to the CompactSize encoding frequently used in the Bitcoin P2P protocol for integers (in particular, lengths of vectors). It's also called VarInt in some other protocol descriptions. Since it predates the BIP process (was part of the original 2009 Bitcoin protocol), it is not described in any BIP.

It encodes integers between 0 and 252 as a single byte, though bigger integers as 3, 5, or 9 bytes.

It is not in BIP340 because it has nothing to do with the digital signature scheme.


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