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 sha256::hash;
pub use sha256::CoreSha256;
pub use sha256::Sha256;

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§

BatchVerifier
Verifies whether all Signatures are correct or that some Signature is incorrect.
Committable
An object that can produce a commitment of itself.
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.
PrivateKey
A Signer that can be serialized/deserialized.
PrivateKeyExt
A PrivateKey that can be generated from a seed or RNG.
PublicKey
A PublicKey, able to verify Signatures.
Signature
A Signature over a message.
Signer
Produces Signatures over messages that can be verified with a corresponding PublicKey.
Verifier
Verifies Signatures over messages.