Crate commonware_cryptography

Source
Expand description

Generate keys, sign arbitrary messages, and deterministically verify signatures.

§Status

commonware-cryptography is ALPHA software and is not yet recommended for production use. Developers should expect breaking changes and occasional instability.

Re-exports§

pub use bls12381::Bls12381;
pub use ed25519::Ed25519;
pub use ed25519::Ed25519Batch;
pub use sha256::hash;
pub use sha256::Sha256;
pub use secp256r1::Secp256r1;

Modules§

bls12381
Distributed Key Generation (DKG), Resharing, Signatures, and Threshold Signatures over the BLS12-381 curve.
ed25519
Ed25519 implementation of the Scheme trait.
secp256r1
Secp256r1 implementation of the Scheme trait.
sha256
SHA-256 implementation of the Hasher trait.

Enums§

Error
Errors that can occur when interacting with cryptographic primitives.

Traits§

BatchScheme
Implementation that can indicate whether all Signatures are correct or that some Signature is incorrect.
Digest
Specializes the commonware_utils::Array trait with the Copy trait for cryptographic digests (which should be cheap to clone).
Digestible
An object that can generate a digest.
Hasher
Interface that commonware crates rely on for hashing.
Scheme
Implementation that can both sign and verify messages.
Signer
Implementation that can sign a message with a PrivateKey.
Specification
Any implementation of a cryptographic primitive must specify a PublicKey and Signature.
Verifier
Implementation that can verify that a PublicKey produced a valid Signature.