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
.