pub struct Ed25519 { /* private fields */ }Expand description
Ed25519 Signer.
Trait Implementations§
Source§impl From<PrivateKey> for Ed25519
impl From<PrivateKey> for Ed25519
Source§fn from(private_key: PrivateKey) -> Self
fn from(private_key: PrivateKey) -> Self
Converts to this type from the input type.
Source§impl Signer for Ed25519
impl Signer for Ed25519
Source§type PrivateKey = PrivateKey
type PrivateKey = PrivateKey
Private key used for signing.
Source§fn private_key(&self) -> PrivateKey
fn private_key(&self) -> PrivateKey
Returns the private key of the signer.
Source§fn public_key(&self) -> PublicKey
fn public_key(&self) -> PublicKey
Returns the public key of the signer.
Source§impl Specification for Ed25519
impl Specification for Ed25519
Auto Trait Implementations§
impl Freeze for Ed25519
impl RefUnwindSafe for Ed25519
impl Send for Ed25519
impl Sync for Ed25519
impl Unpin for Ed25519
impl UnwindSafe for Ed25519
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§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