Struct tor_llcrypto::pk::ed25519::ValidatableEd25519Signature
source · pub struct ValidatableEd25519Signature { /* private fields */ }
Expand description
An ed25519 signature, plus the document that it signs and its public key.
Implementations§
Trait Implementations§
source§impl Clone for ValidatableEd25519Signature
impl Clone for ValidatableEd25519Signature
source§fn clone(&self) -> ValidatableEd25519Signature
fn clone(&self) -> ValidatableEd25519Signature
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 ValidatableEd25519Signature
impl Debug for ValidatableEd25519Signature
source§impl ValidatableSignature for ValidatableEd25519Signature
impl ValidatableSignature for ValidatableEd25519Signature
source§fn is_valid(&self) -> bool
fn is_valid(&self) -> bool
Check whether this signature is a correct signature for the document.
source§fn as_ed25519(&self) -> Option<&ValidatableEd25519Signature>
fn as_ed25519(&self) -> Option<&ValidatableEd25519Signature>
Return this value as a validatable Ed25519 signature, if it is one.
Auto Trait Implementations§
impl Freeze for ValidatableEd25519Signature
impl RefUnwindSafe for ValidatableEd25519Signature
impl Send for ValidatableEd25519Signature
impl Sync for ValidatableEd25519Signature
impl Unpin for ValidatableEd25519Signature
impl UnwindSafe for ValidatableEd25519Signature
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> 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