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:
- created and ready to spend on Ark: VtxoStateKind::Spendable
- owned but not usable because it is locked by subsystem: VtxoStateKind::Locked
- consumed (no longer part of the wallet’s balance): VtxoStateKind::Spent
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 - Wallet
Vtxo - A wallet-owned Vtxo paired with its current tracked state.
Enums§
- Vtxo
State - Rich Vtxo state carrying additional context needed at runtime.
- Vtxo
State Kind - A compact, serialization-friendly representation of a VTXO’s state.