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.

Traits§

BatchScheme
Implementation that can indicate whether all Signatures are correct or that some Signature is incorrect.
Committable
An object that shares a (commitment) Digest with other, related values.
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 be uniquely represented as 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.