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.
Structs§
- Address
Balance Location - Data which Zebra indexes for each
transparent::Address. - Address
Balance Location Change - Represents a change in the
AddressBalanceLocationof a transparent address in the finalized state. - Address
Balance Location Inner - The inner type of
AddressBalanceLocationandAddressBalanceLocationChange. - Address
Transaction - A single transaction sent to a
transparent::Address. - Address
Unspent Output - A single unspent output for a
transparent::Address. - 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 OutputIndexes are stored as 3 bytes on disk.- OUTPUT_
LOCATION_ DISK_ BYTES OutputLocations 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::Addressvariant.
Type Aliases§
- Address
Location - The location of the first
transparent::Outputsent to an address.