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
RandomizedSignertrait implementation overPlumeSignature.
Structs§
- Affine
Point - Exports types from the
k256crate: - Plume
Signature - Struct holding signature data for a PLUME signature.
- Plume
Signature V1Fields - Nested struct holding additional signature data used in variant 1 of the protocol.
Constants§
- DST
- The domain separation tag used for hashing to the
secp256k1curve
Traits§
- Crypto
RngCore - Re-exports the
CryptoRngCoretrait from therand_corecrate. This allows it to be used from the current module. An extension trait that is automatically implemented for any type implementingRngCoreandCryptoRng. - Deserialize
- Provides the ability to serialize and deserialize data using the Serde library.
The
SerializeandDeserializetraits 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
SerializeandDeserializetraits 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§
- NonZero
Scalar - Exports types from the
k256crate: - Secret
Key - Exports types from the
k256crate:
Derive Macros§
- Deserialize
- Provides the ability to serialize and deserialize data using the Serde library.
The
SerializeandDeserializetraits from the Serde library are re-exported for convenience. - Serialize
- Provides the ability to serialize and deserialize data using the Serde library.
The
SerializeandDeserializetraits from the Serde library are re-exported for convenience.