Skip to main content

Module wallet

Module wallet 

Source

Structs§

PutBlocksRows
The note commitment data accumulated by put_blocks_rows across a sequence of scanned blocks: exactly the input that the note commitment tree stage of put_blocks consumes.

Enums§

PutBlocksError

Constants§

SPEND_MAP_RETENTION_BLOCKS
The number of trailing blocks in a batch whose spend-map entries are always retained, even when put_blocks_rows can prove that insertion is skippable. This keeps the maps’ contents aligned with a LowLevelWalletWrite::prune_tracked_spends pruning depth of the same value, and comfortably exceeds the maximum reorg depth the wallet tolerates.

Traits§

PutBlocksDbTtransparent-inputs
A trait alias capturing the database capabilities required by put_blocks.
PutBlocksRowsDbTtransparent-inputs
A trait alias capturing the database capabilities required by put_blocks_rows.
StoreDecryptedTxDbTtransparent-inputs
A trait alias capturing the database capabilities required by store_decrypted_tx.

Functions§

batch_ensure_heightsorchard
Given the checkpoint heights present in each of the three shielded pools’ note commitment trees, in the order (Sapling, Orchard, Ironwood), returns for each pool the complete set of checkpoint heights it must ensure for a batch of scanned blocks covering range.
build_subtrees
Creates subtrees from note commitments in parallel.
checkpoint_positionsorchard
Produces an overall set of checkpoints from a list of subtrees.
cross_pool_ensure_heightsorchard
Given the checkpoint heights present in each of the three shielded pools’ note commitment trees, in the order (Sapling, Orchard, Ironwood), returns for each pool the set of checkpoint heights it must ensure so that every pool ends up checkpointed at every height that is checkpointed in any pool.
ensure_checkpointsorchard
Produces the checkpoints that must be added to a pool’s note commitment tree so that it gains a checkpoint at each of the requested heights, drawing position information from the existing checkpoint positions (or from the provided frontier when no preceding checkpoint exists). Heights at which a checkpoint already exists are skipped.
generate_transparent_gap_addressestransparent-inputs
Generates transparent gap addresses for a given account and key scope.
put_blocks
Adds information about a sequence of scanned blocks to the provided data store.
put_blocks_rows
Persists the row-level (non-tree) data for a sequence of scanned blocks: block metadata, transaction and note rows, spent-note marking, nullifier tracking and pruning, and — when the transparent-inputs feature is enabled — transparent gap address maintenance for the involved accounts.
store_decrypted_tx
Persists a decrypted transaction to the wallet database.
update_tree
Updates the given note commitment tree with all newly read note commitments starting at the block frontier_height + 1.