pub struct EdDsaSignature { /* private fields */ }Expand description
Signature pair (R, S).
Implementations§
Source§impl EdDsaSignature
impl EdDsaSignature
Sourcepub fn nonce_point(&self) -> &EdwardsPoint
pub fn nonce_point(&self) -> &EdwardsPoint
Return the nonce point R.
Sourcepub fn to_key_blob(&self) -> Vec<u8> ⓘ
pub fn to_key_blob(&self) -> Vec<u8> ⓘ
Encode the signature in the crate-defined binary format.
Field layout: [Rx, Ry, S].
Sourcepub fn from_key_blob(blob: &[u8], curve: &TwistedEdwardsCurve) -> Option<Self>
pub fn from_key_blob(blob: &[u8], curve: &TwistedEdwardsCurve) -> Option<Self>
Decode a signature from the crate-defined binary format.
Trait Implementations§
Source§impl Clone for EdDsaSignature
impl Clone for EdDsaSignature
Source§fn clone(&self) -> EdDsaSignature
fn clone(&self) -> EdDsaSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EdDsaSignature
impl Debug for EdDsaSignature
Source§impl PartialEq for EdDsaSignature
impl PartialEq for EdDsaSignature
Source§fn eq(&self, other: &EdDsaSignature) -> bool
fn eq(&self, other: &EdDsaSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EdDsaSignature
impl StructuralPartialEq for EdDsaSignature
Auto Trait Implementations§
impl Freeze for EdDsaSignature
impl RefUnwindSafe for EdDsaSignature
impl Send for EdDsaSignature
impl Sync for EdDsaSignature
impl Unpin for EdDsaSignature
impl UnsafeUnpin for EdDsaSignature
impl UnwindSafe for EdDsaSignature
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