Expand description
Transparent transfer serialization formats for finalized data.
§Correctness
crate::constants::state_database_format_version_in_code()
must be incremented
each time the database format (column, serialization, etc) changes.
Modules§
- arbitrary 🔒
- Randomised data generation for disk format property tests.
Structs§
- Address
Balance Location - Data which Zebra indexes for each
transparent::Address
. - Address
Transaction - A single transaction sent to a
transparent::Address
. - Address
Unspent Output - A single unspent output for a
transparent::Address
. - Output
Index - A transparent output’s index in its transaction.
- Output
Location - A transparent output’s location in the chain, by block height and transaction index.
Constants§
- BALANCE_
DISK_ BYTES - Transparent balances are stored as an 8 byte integer on disk.
- MAX_
ON_ DISK_ OUTPUT_ INDEX - The maximum value of an on-disk serialized
OutputIndex
. - OUTPUT_
INDEX_ DISK_ BYTES OutputIndex
es are stored as 3 bytes on disk.- OUTPUT_
LOCATION_ DISK_ BYTES OutputLocation
s are stored as a 3 byte height, 2 byte transaction index, and 3 byte output index on disk.
Functions§
- address_
variant 🔒 - Returns a byte representing the
transparent::Address
variant.
Type Aliases§
- Address
Location - The location of the first
transparent::Output
sent to an address.