pub enum VerKeyCode {
Ed25519,
Ed25519N,
ECDSA256k1,
ECDSA256k1N,
Ed448,
Ed448N,
ECDSA256r1,
ECDSA256r1N,
}Available on crate feature
core only.Expand description
CESR codes for verification (public) keys, both transferable and non-transferable.
Variants§
Ed25519
Ed25519 transferable (rotatable) public key.
Ed25519N
Ed25519 non-transferable (non-rotatable) public key.
ECDSA256k1
secp256k1 (ECDSA) transferable compressed public key.
ECDSA256k1N
secp256k1 (ECDSA) non-transferable compressed public key.
Ed448
Ed448 transferable public key.
Ed448N
Ed448 non-transferable public key.
ECDSA256r1
secp256r1 / P-256 (ECDSA) transferable compressed public key.
ECDSA256r1N
secp256r1 / P-256 (ECDSA) non-transferable compressed public key.
Implementations§
Source§impl VerKeyCode
impl VerKeyCode
Sourcepub const fn is_transferable(&self) -> bool
pub const fn is_transferable(&self) -> bool
Returns true if this key can be rotated (transferable prefix).
Sourcepub const fn is_non_transferable(&self) -> bool
pub const fn is_non_transferable(&self) -> bool
Returns true if this key cannot be rotated (non-transferable prefix).
Trait Implementations§
Source§impl CesrCode for VerKeyCode
impl CesrCode for VerKeyCode
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 VerKeyCode
impl Clone for VerKeyCode
Source§fn clone(&self) -> VerKeyCode
fn clone(&self) -> VerKeyCode
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 VerKeyCode
Source§impl Debug for VerKeyCode
impl Debug for VerKeyCode
impl Eq for VerKeyCode
Source§impl From<VerKeyCode> for MatterCode
impl From<VerKeyCode> for MatterCode
Source§fn from(code: VerKeyCode) -> Self
fn from(code: VerKeyCode) -> Self
Converts to this type from the input type.
Source§impl Hash for VerKeyCode
impl Hash for VerKeyCode
Source§impl PartialEq for VerKeyCode
impl PartialEq for VerKeyCode
impl StructuralPartialEq for VerKeyCode
Source§impl TryFrom<MatterCode> for VerKeyCode
impl TryFrom<MatterCode> for VerKeyCode
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for VerKeyCode
impl RefUnwindSafe for VerKeyCode
impl Send for VerKeyCode
impl Sync for VerKeyCode
impl Unpin for VerKeyCode
impl UnsafeUnpin for VerKeyCode
impl UnwindSafe for VerKeyCode
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