pub enum SignatureCode {
Ed25519Sig,
ECDSA256k1Sig,
ECDSA256r1Sig,
Ed448Sig,
}Available on crate feature
core only.Expand description
CESR codes for supported digital signature algorithms.
Variants§
Ed25519Sig
Ed25519 64-byte signature.
ECDSA256k1Sig
secp256k1 (ECDSA) 64-byte signature (r || s).
ECDSA256r1Sig
secp256r1 / P-256 (ECDSA) 64-byte signature (r || s).
Ed448Sig
Ed448 114-byte signature.
Trait Implementations§
Source§impl CesrCode for SignatureCode
impl CesrCode for SignatureCode
Source§fn to_matter_code(&self) -> MatterCode
fn to_matter_code(&self) -> MatterCode
Converts this typed code to the untyped
MatterCode.Source§fn as_str(&self) -> &'static str
fn as_str(&self) -> &'static str
Returns the canonical Base64 string representation of this code.
Source§fn get_sizage(&self) -> Sizage
fn get_sizage(&self) -> Sizage
Returns the
Sizage descriptor for this code.Source§fn raw_size(&self) -> Result<usize, ValidationError>
fn raw_size(&self) -> Result<usize, ValidationError>
Returns the expected raw byte size for this code. Read more
Source§fn placeholder(&self) -> Result<String, ValidationError>
fn placeholder(&self) -> Result<String, ValidationError>
Available on crate feature
alloc only.Returns a placeholder qb64 string of this code’s full character width,
filled with
DUMMY_CHAR. Read moreSource§impl Clone for SignatureCode
impl Clone for SignatureCode
Source§fn clone(&self) -> SignatureCode
fn clone(&self) -> SignatureCode
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 SignatureCode
Source§impl Debug for SignatureCode
impl Debug for SignatureCode
impl Eq for SignatureCode
Source§impl From<SignatureCode> for MatterCode
impl From<SignatureCode> for MatterCode
Source§fn from(code: SignatureCode) -> Self
fn from(code: SignatureCode) -> Self
Converts to this type from the input type.
Source§impl Hash for SignatureCode
impl Hash for SignatureCode
Source§impl PartialEq for SignatureCode
impl PartialEq for SignatureCode
impl StructuralPartialEq for SignatureCode
Source§impl TryFrom<MatterCode> for SignatureCode
impl TryFrom<MatterCode> for SignatureCode
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for SignatureCode
impl RefUnwindSafe for SignatureCode
impl Send for SignatureCode
impl Sync for SignatureCode
impl Unpin for SignatureCode
impl UnsafeUnpin for SignatureCode
impl UnwindSafe for SignatureCode
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