Module zebra_state::service::finalized_state::disk_format::transparent
source · 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§
- Randomised data generation for disk format property tests.
Structs§
- Data which Zebra indexes for each
transparent::Address
. - A single transaction sent to a
transparent::Address
. - A single unspent output for a
transparent::Address
. - A transparent output’s index in its transaction.
- A transparent output’s location in the chain, by block height and transaction index.
Constants§
- Transparent balances are stored as an 8 byte integer on disk.
- The maximum value of an on-disk serialized
OutputIndex
. OutputIndex
es are stored as 3 bytes on disk.OutputLocation
s are stored as a 3 byte height, 2 byte transaction index, and 3 byte output index on disk.
Functions§
- Returns a byte representing the
transparent::Address
variant.
Type Aliases§
- The location of the first
transparent::Output
sent to an address.