Struct hypercore::crypto::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]
impl Signaturepub fn to_bytes(&self) -> [u8; 64][src]
pub fn to_bytes(&self) -> [u8; 64]Convert this Signature to a byte array.
pub fn from_bytes(bytes: &[u8]) -> Result<Signature, DecodingError>[src]
pub fn from_bytes(bytes: &[u8]) -> Result<Signature, DecodingError>Construct a Signature from a slice of bytes.
Trait Implementations
impl Copy for Signature[src]
impl Copy for Signatureimpl Debug for Signature[src]
impl Debug for Signaturefn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Clone for Signature[src]
impl Clone for Signaturefn clone(&self) -> Signature[src]
fn clone(&self) -> SignatureReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq<Signature> for Signature[src]
impl PartialEq<Signature> for Signaturefn eq(&self, other: &Signature) -> bool[src]
fn eq(&self, other: &Signature) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Signature[src]
impl Eq for Signature