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
Schemetrait. - secp256r1
- Secp256r1 implementation of the
Schemetrait. - sha256
- SHA-256 implementation of the
Hashertrait.
Traits§
- Batch
Scheme - Implementation that can indicate whether all
Signaturesare correct or that someSignatureis 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
PublicKeyandSignature. - Verifier
- Implementation that can verify that a
PublicKeyproduced a validSignature.