pub enum SignatureMode<T> {
Raw(T),
Prehashed(T),
}Expand description
Fully resolved signature input contract; raw never silently becomes prehash.
Variants§
Raw(T)
Original logical message octets, as required by PureEdDSA (RFC8419 §3).
Prehashed(T)
One finalized digest with a typed, fully resolved identity.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SignatureMode<T>where
T: Freeze,
impl<T> RefUnwindSafe for SignatureMode<T>where
T: RefUnwindSafe,
impl<T> Send for SignatureMode<T>where
T: Send,
impl<T> Sync for SignatureMode<T>where
T: Sync,
impl<T> Unpin for SignatureMode<T>where
T: Unpin,
impl<T> UnsafeUnpin for SignatureMode<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SignatureMode<T>where
T: UnwindSafe,
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