Registry / crypto / ckb-hash

ckb-hash

JSON →
library1.1.0rscratesunverified

Default hash function for the Nervos CKB blockchain, based on blake2b.

# Cargo.toml [dependencies] ckb-hash = "1.1.0"
INSTALL
IMPORT
SIG · CKB-HASH
C
ckb-hash
cryptorustv1.1.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.

blake2b_256
use ckb_hash::blake2b_256;

Computes the blake2b-256 hash of a byte slice.

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

No known issues recorded.

Upgrade
Version history
1.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
Amazon
1
Resources
ckb-hash — cargo add ckb-hash · libregistry