#signature-scheme #ecdsa #zero-knowledge #zk #plume #nullifier

plume_rustcrypto

Implementation of PLUME: nullifier friendly signature scheme on ECDSA; using the k256 library

3 unstable releases

0.2.1 Apr 27, 2024
0.2.0 Apr 17, 2024
0.1.0 Feb 12, 2024

#34 in #ecdsa

Download history

171 downloads per month

MIT license

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