Crate commonware_cryptography

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::CoreSha256;
pub use sha256::Sha256;
pub use blake3::Blake3;
pub use blake3::CoreBlake3;
pub use bloomfilter::BloomFilter;
pub use lthash::LtHash;

Modules§

blake3
BLAKE3 implementation of the Hasher trait.
bloomfilter
An implementation of a Bloom Filter.
bls12381
Distributed Key Generation (DKG), Resharing, Signatures, and Threshold Signatures over the BLS12-381 curve.
certificate
Cryptographic primitives for generating and verifying certificates.
ed25519
Ed25519 implementation of the crate::Verifier and crate::Signer traits.
handshake
This module provides an authenticated key exchange protocol, or handshake.
lthash
A homomorphic hash function that enables efficient incremental updates.
secp256r1
Secp256r1 implementation of the crate::Verifier and crate::Signer traits.
sha256
SHA-256 implementation of the Hasher trait.
transcript
This module provides a Transcript abstraction.

Macros§

impl_certificate_bls12381_multisig
Generates a BLS12-381 multisig signing scheme wrapper for a specific protocol.
impl_certificate_bls12381_threshold
Generates a BLS12-381 threshold signing scheme wrapper for a specific protocol.
impl_certificate_ed25519
Generates an Ed25519 signing scheme wrapper for a specific protocol.

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.
PublicKey
A PublicKey, able to verify Signatures.
Recoverable
An extension of Signature that supports public key recovery.
Signature
A Signature over a message.
Signer
Produces Signatures over messages that can be verified with a corresponding PublicKey.
Verifier
Verifies Signatures over messages.

Type Aliases§

DigestOf