Enum miden_client::auth::AuthSecretKey
source · #[repr(u8)]pub enum AuthSecretKey {
RpoFalcon512(SecretKey),
}Expand description
Types of secret keys used for signing messages
Variants§
Implementations§
source§impl AuthSecretKey
impl AuthSecretKey
sourcepub fn auth_scheme_id(&self) -> u8
pub fn auth_scheme_id(&self) -> u8
Identifier for the type of authentication key
Trait Implementations§
source§impl Clone for AuthSecretKey
impl Clone for AuthSecretKey
source§fn clone(&self) -> AuthSecretKey
fn clone(&self) -> AuthSecretKey
Returns a copy of the value. Read more
1.0.0 · 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 AuthSecretKey
impl Debug for AuthSecretKey
source§impl Deserializable for AuthSecretKey
impl Deserializable for AuthSecretKey
source§fn read_from<R>(source: &mut R) -> Result<AuthSecretKey, DeserializationError>where
R: ByteReader,
fn read_from<R>(source: &mut R) -> Result<AuthSecretKey, DeserializationError>where
R: ByteReader,
Reads a sequence of bytes from the provided
source, attempts to deserialize these bytes
into Self, and returns the result. Read moresource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
source§impl Serializable for AuthSecretKey
impl Serializable for AuthSecretKey
source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes
self into bytes and writes these bytes into the target.source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
Auto Trait Implementations§
impl Freeze for AuthSecretKey
impl RefUnwindSafe for AuthSecretKey
impl Send for AuthSecretKey
impl Sync for AuthSecretKey
impl Unpin for AuthSecretKey
impl UnwindSafe for AuthSecretKey
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)