Struct nanocurrency_types::Signature
[−]
[src]
#[repr(C)]pub struct Signature { /* fields omitted */ }
An EdDSA signature.
Note
These signatures, unlike the ed25519 signature reference implementation, are "detached"—that is, they do not include a copy of the message which has been signed.
Methods
impl Signature
[src]
pub fn to_bytes(&self) -> [u8; 64]
[src]
Convert this Signature
to a byte array.
pub fn from_bytes(bytes: &[u8]) -> Result<Signature, DecodingError>
[src]
Construct a Signature
from a slice of bytes.
Trait Implementations
impl PartialEq<Signature> for Signature
[src]
fn eq(&self, other: &Signature) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Signature
[src]
impl Copy for Signature
[src]
impl Debug for Signature
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more