Crate plume_rustcrypto

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§

randomizedsigner
Provides the RandomizedSigner trait implementation over PlumeSignature.

Structs§

AffinePoint
Exports types from the k256 crate:
PlumeSignature
Struct holding signature data for a PLUME signature.
PlumeSignatureV1Fields
Nested struct holding additional signature data used in variant 1 of the protocol.

Constants§

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

Traits§

CryptoRngCore
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.
Deserialize
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.
Serialize
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§

NonZeroScalar
Exports types from the k256 crate:
SecretKey
Exports types from the k256 crate:

Derive Macros§

Deserialize
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.
Serialize
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.