pub enum SigningAlgorithm {
Ed25519,
P256,
P384,
Hybrid,
}Expand description
Enumerates the signature algorithms Chio knows how to produce and verify.
Ed25519 is always available. P256 and P384 require the fips
Cargo feature on chio-core-types and route through aws-lc-rs.
Hybrid combines one classical signature with ML-DSA-65 and requires
the pq feature to produce or verify cryptographically.
This enum serializes as a short lowercase identifier:
"ed25519", "p256", "p384", or "hybrid". When absent from an
artifact’s envelope, consumers MUST treat the algorithm as
SigningAlgorithm::Ed25519 (the default algorithm).
Variants§
Ed25519
Edwards-curve signature on Curve25519. Default, non-FIPS.
P256
ECDSA on NIST P-256 / secp256r1 with SHA-256. Requires fips feature.
P384
ECDSA on NIST P-384 / secp384r1 with SHA-384. Requires fips feature.
Hybrid
Classical signature plus ML-DSA-65. Requires pq feature.
Implementations§
Source§impl SigningAlgorithm
impl SigningAlgorithm
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Returns true when this algorithm is the default (Ed25519).
Useful for #[serde(skip_serializing_if)] helpers that keep Ed25519
artifacts byte-identical to the bare-hex wire format.
Trait Implementations§
Source§impl Clone for SigningAlgorithm
impl Clone for SigningAlgorithm
Source§fn clone(&self) -> SigningAlgorithm
fn clone(&self) -> SigningAlgorithm
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more