Module state

Source
Expand description

VTXO state tracking.

This module defines the state machine used to track the lifecycle of each individual Vtxo managed by the wallet. A Vtxo can be:

Two layers of state are provided:

  • VtxoStateKind: a compact, serialization-friendly discriminator intended for storage, logs, and wire formats. It maps to stable string identifiers via as_str().
  • VtxoState: A richer state that might include metadata

WalletVtxo pairs a concrete Vtxo with its current VtxoState, providing the primary representation used by persistence and higher-level wallet logic.

Structs§

UNSPENT_STATES
WalletVtxo
A wallet-owned Vtxo paired with its current tracked state.

Enums§

VtxoState
Rich Vtxo state carrying additional context needed at runtime.
VtxoStateKind
A compact, serialization-friendly representation of a VTXO’s state.