Skip to main content

Crate keep_bitcoin

Crate keep_bitcoin 

Source

Re-exports§

pub use chain_view::validate_prevout_amounts_against_chain;
pub use chain_view::ChainView;
pub use chain_view::ChainViewError;
pub use chain_view::KEEP_CHAIN_URL_ENV;
pub use key_proof::build_key_proof_psbt;
pub use key_proof::sign_key_proof;
pub use key_proof::verify_key_proof;
pub use psbt::PsbtAnalysis;
pub use psbt::PsbtSigner;
pub use recovery::PolicyInput;
pub use recovery::PolicyTierInput;
pub use recovery::RecoveryConfig;
pub use recovery::RecoveryOutput;
pub use recovery::RecoveryTier;
pub use recovery::SpendingTier;
pub use recovery_tx::merge_tap_script_sig;
pub use recovery_tx::script_spend_sighashes;
pub use recovery_tx::verify_all_script_spend_input_bindings;
pub use recovery_tx::verify_script_spend_input_binding;
pub use recovery_tx::RecoveryTxBuilder;
pub use recovery_tx::ScriptSpendSighash;
pub use recovery_tx::SweepUtxo;
pub use recovery_tx::TAPROOT_DUST_LIMIT_SATS;
pub use bitcoin;

Modules§

chain_view
Chain-view abstraction for responder-side prevout validation (#502).
frost_bip32
BIP-32 unhardened child-key primitives for FROST group keys (#487).
key_proof
psbt
recovery
recovery_tx

Structs§

AddressDerivation
BitcoinSigner
DerivedAddress
DescriptorExport

Enums§

BitcoinError
Network
The cryptocurrency network to act on.

Functions§

change_script_at_index
Derive the change (internal, /1/*) script_pubkey at index from a BIP-86 external descriptor (.../0/*), applying the same /0/* -> /1/* rewrite as DescriptorExport::internal_descriptor.
descriptor_address
Derive the address for a definite (non-ranged) descriptor string on network. Used to pick the sweep destination from a finalized FROST wallet descriptor, which is definite (tr(<xonly>,<tree>), no wildcard).
descriptor_address_at_index
Resolve a ranged OR definite descriptor at a concrete derivation index and return its address on network. Unlike descriptor_address, this accepts a ranged descriptor (.../0/*) by resolving it at index rather than rejecting it. Used to pick the single deterministic migration-sweep destination for a successor FROST wallet descriptor: index 0 is the first external /0/0 receive address, which both proposer and responder derive identically from the same persisted descriptor.
descriptor_script_pubkey
Derive the script_pubkey for a definite (non-ranged) descriptor string. Used to bind a supplied crate::RecoveryOutput to the descriptor identified by a canonical hash before sweeping its coins. A recovery output is by definition a single, non-ranged output, so a ranged descriptor is rejected rather than silently resolved at an arbitrary index.
multipath_from_external
Build a BIP-389 multipath descriptor from a single-path external descriptor.
xpub_to_x_only

Type Aliases§

Result