pub struct AuthenticationKeyPreimage(/* private fields */);Expand description
A value that can be hashed to produce an authentication key
Implementations§
Source§impl AuthenticationKeyPreimage
impl AuthenticationKeyPreimage
Sourcepub fn ed25519(public_key: &Ed25519PublicKey) -> AuthenticationKeyPreimage
pub fn ed25519(public_key: &Ed25519PublicKey) -> AuthenticationKeyPreimage
Construct a preimage from an Ed25519 public key
Sourcepub fn multi_ed25519(
public_key: &MultiEd25519PublicKey,
) -> AuthenticationKeyPreimage
pub fn multi_ed25519( public_key: &MultiEd25519PublicKey, ) -> AuthenticationKeyPreimage
Construct a preimage from a MultiEd25519 public key
Auto Trait Implementations§
impl Freeze for AuthenticationKeyPreimage
impl RefUnwindSafe for AuthenticationKeyPreimage
impl Send for AuthenticationKeyPreimage
impl Sync for AuthenticationKeyPreimage
impl Unpin for AuthenticationKeyPreimage
impl UnsafeUnpin for AuthenticationKeyPreimage
impl UnwindSafe for AuthenticationKeyPreimage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more