Registry / crypto / rfc6979

rfc6979

JSON →
library0.5.0rscratesunverified

Pure Rust implementation of RFC6979: Deterministic Usage of the Digital Signature Algorithm (DSA) and Elliptic Curve Digital Signature Algorithm (ECDSA)

# Cargo.toml [dependencies] rfc6979 = "0.5.0"
INSTALL
IMPORT
SIG · RFC6979
R
rfc6979
cryptorustv0.5.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.

generate_k
use rfc6979::generate_k;

Generates a deterministic nonce k for ECDSA signing using RFC6979.

use rfc6979::generate_k; use sha2::Sha256; let q = hex::decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141").unwrap(); let priv_key = hex::decode("0000000000000000000000000000000000000000000000000000000000000001").unwrap(); let hash = b"hello"; let k = generate_k::<Sha256>(&q, &priv_key, hash); println!("k: {:?}", k);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Amazon
1
Resources
rfc6979 — cargo add rfc6979 · libregistry