pub struct Signature<D: DomainTag> { /* private fields */ }Expand description
An Ed25519 signature carrying its domain at the type level.
A Signature<D> can only be verified against a message using the same
domain D, making cross-domain misuse a compile error rather than a
runtime failure.
Trait Implementations§
impl<D: DomainTag> Copy for Signature<D>
impl<D: DomainTag> Eq for Signature<D>
Auto Trait Implementations§
impl<D> Freeze for Signature<D>
impl<D> RefUnwindSafe for Signature<D>
impl<D> Send for Signature<D>
impl<D> Sync for Signature<D>
impl<D> Unpin for Signature<D>
impl<D> UnsafeUnpin for Signature<D>
impl<D> UnwindSafe for Signature<D>
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<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more