Skip to main content

quorum_crypto_core/
lib.rs

1//! # quorum-crypto-core
2//!
3//! Cryptographic primitives and traits for agent signing and verification.
4//!
5//! - [`AuditSigner`] — sign messages (Ed25519, Secp256k1)
6//! - [`AuditVerifier`] — verify signatures from unknown agents
7//! - [`VerifierRegistry`] — route algorithm strings to verifier implementations
8//! - [`AuditEnvelope`] — multi-signature chained envelope for any serializable payload
9//! - [`ChainHasher`] — pluggable hash function for commitment chains
10//!
11//! Downstream crates can extend this surface with post-quantum signing
12//! (e.g. ML-DSA-65), Poseidon-style hashing, commitment chains, and
13//! settlement provers without changing the core trait shapes here.
14
15pub mod canonical;
16pub mod chain;
17pub mod envelope;
18pub mod error;
19pub mod signer;
20pub mod verifier;
21
22pub use canonical::canonical_bytes;
23pub use chain::ChainHasher;
24pub use envelope::{AuditEnvelope, SignatureStatus};
25pub use error::CryptoError;
26pub use signer::AuditSigner;
27pub use verifier::{AuditVerifier, VerifierRegistry};