Registry / crypto / dusk-poseidon

dusk-poseidon

JSON →
library0.41.0rscratesunverified

Implementation of Poseidon hash algorithm over the Bls12-381 Scalar field.

# Cargo.toml [dependencies] dusk-poseidon = "0.41.0"
INSTALL
IMPORT
SIG · DUSK-POSEIDON
D
dusk-poseidon
cryptorustv0.41.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.

hash
✓ use dusk_poseidon::sponge::hash;

Compute Poseidon hash over Bls12-381 scalars.

use dusk_poseidon::sponge::hash; fn main() { let input = vec![dusk_bls12_381::BlsScalar::from(1u64)]; let result = hash(&input); println!("Hash: {:?}", result); }
Debug
Known issues
gotchaRequires `dusk-bls12-381` crate for scalar types
fix
Add `dusk-bls12-381` as a dependency
affects: >=0.41.0
Upgrade
Version history
0.41.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Resources
dusk-poseidon — cargo add dusk-poseidon · libregistry