pub enum SeedCode {
Ed25519Seed,
ECDSA256k1Seed,
Ed448Seed,
ECDSA256r1Seed,
}Available on crate feature
core only.Expand description
CESR codes for supported private key (seed) types.
Variants§
Ed25519Seed
Ed25519 32-byte private key seed.
ECDSA256k1Seed
secp256k1 (ECDSA) 32-byte private key seed.
Ed448Seed
Ed448 56-byte private key seed.
ECDSA256r1Seed
secp256r1 / P-256 (ECDSA) 32-byte private key seed.
Implementations§
Source§impl SeedCode
impl SeedCode
Sourcepub const fn verkey_code(&self) -> VerKeyCode
pub const fn verkey_code(&self) -> VerKeyCode
Returns the corresponding VerKeyCode for the public key derived from this seed.
Trait Implementations§
Source§impl CesrCode for SeedCode
impl CesrCode for SeedCode
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 moreimpl Copy for SeedCode
impl Eq for SeedCode
Source§impl From<SeedCode> for MatterCode
impl From<SeedCode> for MatterCode
impl StructuralPartialEq for SeedCode
Source§impl TryFrom<MatterCode> for SeedCode
impl TryFrom<MatterCode> for SeedCode
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for SeedCode
impl RefUnwindSafe for SeedCode
impl Send for SeedCode
impl Sync for SeedCode
impl Unpin for SeedCode
impl UnsafeUnpin for SeedCode
impl UnwindSafe for SeedCode
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