Registry / crypto / bitcoin-sha256

bitcoin-sha256

JSON →
library0.1.20rscratesunverified

SHA-256 and SHA-512 hash functions computed with eight 32-bit and 64-bit words, respectively, as used in Bitcoin.

# Cargo.toml [dependencies] bitcoin-sha256 = "0.1.20"
INSTALL
IMPORT
SIG · BITCOIN-SHA256
B
bitcoin-sha256
cryptorustv0.1.20
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.

Sha256
use bitcoin_sha256::Sha256;

Computing a SHA-256 hash

use bitcoin_sha256::Sha256; fn main() { let hash = Sha256::hash(b"hello"); println!("Hash: {:x}", hash); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.20latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
Resources
bitcoin-sha256 — cargo add bitcoin-sha256 · libregistry