#[non_exhaustive]#[repr(u8)]pub enum RuntimeSignatureClass {
None = 0,
Ed25519 = 1,
MlDsa65 = 2,
Hybrid = 3,
}Expand description
Runtime-only wire-format class tag for audit receipts.
Distinct from L0 arkhe_kernel::persist::SignatureClass (which
holds key material). The L0 type is unserializable by design; this type
is the serializable projection.
On-wire tag is the postcard VARIANT INDEX (0..N in declaration order), not
the repr(u8) discriminant — the explicit values are a C-ABI hint, never
the serialized byte.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None = 0
No signature attached.
Ed25519 = 1
Classical Ed25519.
MlDsa65 = 2
Post-quantum ML-DSA-65 (Dilithium, FIPS 204).
Hybrid = 3
Hybrid Ed25519 + ML-DSA-65 dual-sign.
Implementations§
Source§impl RuntimeSignatureClass
impl RuntimeSignatureClass
Sourcepub fn from_manifest_str(s: &str) -> Option<Self>
pub fn from_manifest_str(s: &str) -> Option<Self>
Parse the manifest audit.signature_class token.
Canonical tokens: "none", "ed25519", "ml-dsa-65",
"hybrid". Any other string yields None so the manifest
validator can reject an unknown class with a typed error rather
than silently defaulting.
Trait Implementations§
Source§impl Clone for RuntimeSignatureClass
impl Clone for RuntimeSignatureClass
Source§fn clone(&self) -> RuntimeSignatureClass
fn clone(&self) -> RuntimeSignatureClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeSignatureClass
impl Debug for RuntimeSignatureClass
Source§impl<'de> Deserialize<'de> for RuntimeSignatureClass
impl<'de> Deserialize<'de> for RuntimeSignatureClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RuntimeSignatureClass
impl PartialEq for RuntimeSignatureClass
Source§fn eq(&self, other: &RuntimeSignatureClass) -> bool
fn eq(&self, other: &RuntimeSignatureClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RuntimeSignatureClass
impl Serialize for RuntimeSignatureClass
impl Copy for RuntimeSignatureClass
impl Eq for RuntimeSignatureClass
impl StructuralPartialEq for RuntimeSignatureClass
Auto Trait Implementations§
impl Freeze for RuntimeSignatureClass
impl RefUnwindSafe for RuntimeSignatureClass
impl Send for RuntimeSignatureClass
impl Sync for RuntimeSignatureClass
impl Unpin for RuntimeSignatureClass
impl UnsafeUnpin for RuntimeSignatureClass
impl UnwindSafe for RuntimeSignatureClass
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more