Expand description
Serializes and deserializes transparent data.
Constants§
- GENESIS_
COINBASE_ DATA - The coinbase data for a genesis block.
- MAX_
COINBASE_ DATA_ LEN - The maximum length of the coinbase data.
- MAX_
COINBASE_ HEIGHT_ DATA_ LEN - The maximum length of the encoded coinbase height.
- MIN_
COINBASE_ DATA_ LEN - The minimum length of the coinbase data.
Functions§
- parse_
coinbase_ 🔒height - Split
data
into a block height and remaining miner-controlled coinbase data. - write_
coinbase_ 🔒height - Encode
height
into a block height, as a prefix of the coinbase data. Does not writecoinbase_data
.