Skip to main content

Module vtxo

Module vtxo 

Source
Expand description

Representations of VTXOs in an Ark.

Re-exports§

pub use self::policy::Policy;
pub use self::policy::VtxoPolicy;
pub use self::policy::VtxoPolicyKind;
pub use self::policy::ServerVtxoPolicy;
pub use self::policy::PubkeyVtxoPolicy;
pub use self::policy::CheckpointVtxoPolicy;
pub use self::policy::ExpiryVtxoPolicy;
pub use self::policy::HarkLeafVtxoPolicy;
pub use self::policy::HarkLeaf_v0_VtxoPolicy;
pub use self::policy::ServerHtlcRecv_v0_VtxoPolicy;
pub use self::policy::ServerHtlcSend_v0_VtxoPolicy;
pub use self::policy::ServerHtlcRecvVtxoPolicy;
pub use self::policy::ServerHtlcSendVtxoPolicy;
pub use self::policy::clause::VtxoClause;
pub use self::policy::clause::DelayedSignClause;
pub use self::policy::clause::DelayedTimelockSignClause;
pub use self::policy::clause::HashDelaySignClause;
pub use self::policy::clause::HashDelaySignClause_v0;
pub use self::policy::clause::TapScriptClause;

Modules§

policy
VTXO policies
raw
Raw VTXO representation with public fields for data migrations.

Structs§

Bare
Representing “bare” VTXOs that are just output details without genesis
Full
Representing “full” VTXOs that contain the full genesis
Vtxo
Represents a VTXO in the Ark.
VtxoId
VtxoIdParseError
VtxoTxIter
Iterator returned by Vtxo::transactions.
VtxoTxIterItem
Type of the items yielded by VtxoTxIter, the iterator returned by Vtxo::transactions.

Enums§

TransitionKind
Represents the kind of [GenesisTransition]
VtxoStandardnessError
Reason a Vtxo failed the Vtxo::check_standard check.
VtxoValidationError

Constants§

EXIT_TX_WEIGHT
The total signed tx weight of a exit tx.
VTXO_DUST
VTXO dust is the same as P2TR_DUST because all outputs are P2TR
VTXO_DUST_SAT
VTXO dust is the same as P2TR_DUST_SAT because all outputs are P2TR

Traits§

VtxoRef
Implemented on anything that is kinda a Vtxo

Functions§

create_exit_tx
Create an exit tx.

Type Aliases§

ServerVtxo
Type alias for a server-internal VTXO that may have policies without user pubkeys.