pub enum SignatureType {
Ed25519,
MetamorphicHybrid,
}Expand description
A note signature algorithm, identified by its C2SP signed-note type
identifier (one or more bytes).
SignatureType::Ed25519 (0x01) is the classical, witness-compatible
algorithm. SignatureType::MetamorphicHybrid (the 0xff-escaped
HYBRID_SIG_IDENTIFIER) is the additive post-quantum composite. Other
assigned bytes (ECDSA 0x02, the cosignature types, etc.) are recognized as
unknown and their lines are ignored by verifiers.
Variants§
Ed25519
0x01 — Ed25519 over the note text (RFC 8032).
MetamorphicHybrid
HYBRID_SIG_IDENTIFIER — the metamorphic-crypto ML-DSA + classical
composite (strict-AND), over the note text under HYBRID_SIG_CONTEXT.
Implementations§
Source§impl SignatureType
impl SignatureType
Sourcepub fn type_identifier(self) -> &'static [u8] ⓘ
pub fn type_identifier(self) -> &'static [u8] ⓘ
The on-the-wire type identifier (one byte for Ed25519, the multi-byte
0xff-escaped label for the hybrid composite).
Trait Implementations§
Source§impl Clone for SignatureType
impl Clone for SignatureType
Source§fn clone(&self) -> SignatureType
fn clone(&self) -> SignatureType
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 moreimpl Copy for SignatureType
Source§impl Debug for SignatureType
impl Debug for SignatureType
impl Eq for SignatureType
Source§impl Hash for SignatureType
impl Hash for SignatureType
Source§impl PartialEq for SignatureType
impl PartialEq for SignatureType
Source§fn eq(&self, other: &SignatureType) -> bool
fn eq(&self, other: &SignatureType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SignatureType
Auto Trait Implementations§
impl Freeze for SignatureType
impl RefUnwindSafe for SignatureType
impl Send for SignatureType
impl Sync for SignatureType
impl Unpin for SignatureType
impl UnsafeUnpin for SignatureType
impl UnwindSafe for SignatureType
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