3 unstable releases
0.2.1 | Apr 27, 2024 |
---|---|
0.2.0 | Apr 17, 2024 |
0.1.0 | Feb 12, 2024 |
#34 in #ecdsa
171 downloads per month
16KB
216 lines
https://github.com/plume-sig/zk-nullifier-sig/blob/main/README.md
lib.rs
:
A library for generating and verifying PLUME signatures.
See https://blog.aayushg.com/nullifier for more information.
Examples
If you want more control or to be more generic on traits use
PlumeSigner
from randomizedsigner
use plume_rustcrypto::{PlumeSignature, SecretKey};
use rand_core::OsRng;
let sig_v1 = PlumeSignature::sign_v1(
&sk, b"ZK nullifier signature", &mut OsRng
);
assert!(sig_v1.verify());
let sig_v2 = PlumeSignature::sign_v2(
&sk, b"ZK nullifier signature", &mut OsRng
);
assert!(sig_v2.verify());
Dependencies
~4MB
~87K SLoC