Registry / crypto / bitcoin-primitives

bitcoin-primitives

JSON →
library0.102.0rscratesunverified

Primitive types used by the rust-bitcoin ecosystem, such as addresses, transactions, and blocks.

# Cargo.toml [dependencies] bitcoin-primitives = "0.102.0"
INSTALL
IMPORT
SIG · BITCOIN-PRIMITIVES
B
bitcoin-primitives
cryptorustv0.102.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.

Address
use bitcoin_primitives::Address;

Parses a Bitcoin address from a string.

use bitcoin_primitives::Address; use std::str::FromStr; fn main() { let addr = Address::from_str("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa").unwrap(); println!("{}", addr); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.102.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
30
Meta
1
Resources
bitcoin-primitives — cargo add bitcoin-primitives · libregistry