Crate plume_rustcrypto

source ·
Expand description

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());

Modules§

Structs§

Constants§

  • The domain separation tag used for hashing to the secp256k1 curve

Traits§

  • Re-exports the CryptoRngCore trait from the rand_core crate. This allows it to be used from the current module. An extension trait that is automatically implemented for any type implementing RngCore and CryptoRng.
  • Provides the ability to serialize and deserialize data using the Serde library. The Serialize and Deserialize traits from the Serde library are re-exported for convenience. A data structure that can be deserialized from any data format supported by Serde.
  • Provides the ability to serialize and deserialize data using the Serde library. The Serialize and Deserialize traits from the Serde library are re-exported for convenience. A data structure that can be serialized into any data format supported by Serde.

Type Aliases§

Derive Macros§

  • Provides the ability to serialize and deserialize data using the Serde library. The Serialize and Deserialize traits from the Serde library are re-exported for convenience.
  • Provides the ability to serialize and deserialize data using the Serde library. The Serialize and Deserialize traits from the Serde library are re-exported for convenience.