Registry / crypto / bp-consensus

bp-consensus

JSON →
library0.12.0rscratesunverified

Bitcoin protocol consensus library.

# Cargo.toml [dependencies] bp-consensus = "0.12.0"
INSTALL
IMPORT
SIG · BP-CONSENSUS
B
bp-consensus
cryptorustv0.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Consensus
use bp_consensus::Consensus;

Gets the mainnet consensus parameters

use bp_consensus::Consensus; fn main() { let consensus = Consensus::mainnet(); println!("Magic number: {}", consensus.magic()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Amazon
1
Resources
bp-consensus — cargo add bp-consensus · libregistry