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§
- Provides the
RandomizedSigner
trait implementation overPlumeSignature
.
Structs§
- Exports types from the
k256
crate: - Struct holding signature data for a PLUME signature.
- Nested struct holding additional signature data used in variant 1 of the protocol.
Constants§
- The domain separation tag used for hashing to the
secp256k1
curve
Traits§
- Re-exports the
CryptoRngCore
trait from therand_core
crate. This allows it to be used from the current module. An extension trait that is automatically implemented for any type implementingRngCore
andCryptoRng
. - Provides the ability to serialize and deserialize data using the Serde library. The
Serialize
andDeserialize
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
andDeserialize
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§
- Exports types from the
k256
crate: - Exports types from the
k256
crate:
Derive Macros§
- Provides the ability to serialize and deserialize data using the Serde library. The
Serialize
andDeserialize
traits from the Serde library are re-exported for convenience. - Provides the ability to serialize and deserialize data using the Serde library. The
Serialize
andDeserialize
traits from the Serde library are re-exported for convenience.