Registry / crypto / sp-core-hashing

sp-core-hashing

JSON →
library16.0.0rscratesunverified

Hashing primitives for Substrate (deprecated: use sp-crypto-hashing for new applications).

# Cargo.toml [dependencies] sp-core-hashing = "16.0.0"
INSTALL
IMPORT
SIG · SP-CORE-HASHING
S
sp-core-hashing
cryptorustv16.0.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.

blake2_256
use sp_core_hashing::blake2_256;

Computes a Blake2-256 hash.

use sp_core_hashing::blake2_256; fn main() { let hash = blake2_256(b"hello"); println!("Hash: {:?}", hash); }
Debug
Known issues
breakingThis crate is deprecated; use sp-crypto-hashing instead.
fix
Replace sp-core-hashing with sp-crypto-hashing in your Cargo.toml.
affects: >=16.0.0
Upgrade
Version history
16.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
sp-core-hashing — cargo add sp-core-hashing · libregistry