Registry / crypto / schnorrkel

schnorrkel

JSON →
library0.11.5rscratesunverified

Schnorr VRF, signatures, and related cryptographic operations using the Ristretto group.

# Cargo.toml [dependencies] schnorrkel = "0.11.5"
INSTALL
IMPORT
SIG · SCHNORRKEL
S
schnorrkel
cryptorustv0.11.5
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.

Keypair
use schnorrkel::Keypair;

Generate a Schnorr keypair and sign a message

use schnorrkel::{Keypair, SigningContext, Signature}; fn main() { let keypair = Keypair::generate(); let context = SigningContext::new(b"my-app"); let msg = b"hello"; let sig = keypair.sign(&context, msg); println!("Signature: {:?}", sig); }
Debug
Known issues
gotchaUses Ristretto group, not compatible with standard Ed25519
fix
Use schnorrkel types consistently; do not mix with ed25519-dalek
affects: >= 0.9.0
Upgrade
Version history
0.11.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
schnorrkel — cargo add schnorrkel · libregistry