Expand description
Consensus validation surfaces for bitcoin-rs.
The kernel feature enables a bitcoinkernel-backed authority path. With the
feature off, the crate builds a portable Rust validation path that delegates
script execution to bitcoin-rs-script and keeps consensus-facing rule checks
in small, testable modules.
Re-exports§
pub use bip9::DeploymentContext;pub use bip9::DeploymentParams;pub use bip9::DeploymentState;pub use bip9::compute_state;pub use connect_block::connect_block_dual_path;pub use rust_path::BlockState;pub use rust_path::RustValidator;pub use rust_path::TipState;pub use rust_path::UtxoView;pub use verify_block::BlockRuleContext;pub use verify_block::verify_block_rules;pub use verify_block::verify_block_rules_borrowed;pub use verify_block::verify_block_rules_borrowed_contextual;pub use verify_block::verify_block_rules_contextual;pub use verify_tx::is_final_tx;pub use verify_tx::verify_coinbase_script_sig_size;pub use verify_tx::verify_transaction;pub use verify_tx::verify_transaction_borrowed;pub use verify_tx::verify_transaction_borrowed_non_script_with_mtp;pub use verify_tx::verify_transaction_borrowed_with_mtp;pub use verify_tx::verify_transaction_with_mtp;
Modules§
- bip9
- BIP9 versionbits checks.
- bip30
- BIP30 duplicate-transaction checks.
- bip34
- BIP34 coinbase height checks.
- bip65
- BIP65 locktime checks.
- bip66
- BIP66 DER-signature checks.
- bip68
- BIP68 relative-locktime checks.
- bip112
- BIP112 sequence-lock checks.
- bip113
- BIP113 median-time-past checks.
- bip141
- BIP141 segwit checks.
- bip143
- BIP143 segwit-v0 sighash checks.
- bip341
- BIP341 taproot checks.
- bip342
- BIP342 tapscript checks.
- connect_
block - Dual-path block connection.
- kernel
- Feature-gated bitcoinkernel wrapper.
- rust_
path - Portable Rust validator.
- verify_
block - Block rule checks.
- verify_
tx - Transaction rule checks.
Enums§
- Consensus
Error - Consensus validation error.
Constants§
- MAX_
BLOCK_ SIGOPS_ COST - Maximum block sigop cost after segwit scaling.
- MAX_
MONEY - Maximum valid money supply in satoshis.