Skip to main content

Crate bsv_spv

Crate bsv_spv 

Source
Expand description

BSV Blockchain SDK - SPV verification.

Provides Simplified Payment Verification (SPV) types including Merkle paths (BUMP format), BEEF transaction containers, chain tracking traits, and broadcaster interfaces.

Ported from the Go BSV SDK’s transaction/merklepath.go, transaction/beef.go, transaction/chaintracker/, and transaction/broadcaster.go.

Re-exports§

pub use beef::Beef;
pub use beef::BeefTx;
pub use beef::DataFormat;
pub use beef::ATOMIC_BEEF;
pub use beef::BEEF_V1;
pub use beef::BEEF_V2;
pub use broadcaster::BroadcastFailure;
pub use broadcaster::BroadcastSuccess;
pub use broadcaster::Broadcaster;
pub use chain_tracker::ChainTracker;
pub use error::SpvError;
pub use merkle_path::MerklePath;
pub use merkle_path::PathElement;
pub use merkle_tree_parent::merkle_tree_parent;
pub use merkle_tree_parent::merkle_tree_parent_bytes;
pub use merkle_tree_parent::merkle_tree_parent_str;

Modules§

beef
BEEF (Background Evaluation Extended Format) transaction container (BRC-64/95/96). BEEF (Background Evaluation Extended Format) transaction container.
broadcaster
Transaction broadcasting interfaces. Transaction broadcasting interfaces.
chain_tracker
Chain tracker trait for verifying Merkle roots against block headers. Chain tracker trait for SPV verification.
error
Error types for SPV operations.
merkle_path
Merkle path (BUMP) types and verification (BRC-74). Merkle path (BUMP) types and verification.
merkle_tree_parent
Merkle tree parent hash computation utilities. Merkle tree parent computation.