Module 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§

arbitrary 🔒
Randomised data generation for disk format property tests.

Structs§

AddressBalanceLocation
Data which Zebra indexes for each transparent::Address.
AddressTransaction
A single transaction sent to a transparent::Address.
AddressUnspentOutput
A single unspent output for a transparent::Address.
OutputIndex
A transparent output’s index in its transaction.
OutputLocation
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::Address variant.

Type Aliases§

AddressLocation
The location of the first transparent::Output sent to an address.