Enum libpijul::signature::Signature
[−]
[src]
pub enum Signature { Ed25519 { publickey: [u8; 32], signature: SignatureBytes, }, }
Variants
Ed25519
Fields of Ed25519
publickey: [u8; 32] | |
signature: SignatureBytes |
Methods
impl Signature
[src]
fn public_key(&self) -> &[u8]
Public key corresponding to the secret key used to sign.
fn verify<S: AsRef<[u8]>>(&self, msg: S) -> Result<(), Error>
Verify the signature for the given message.
fn len(&self) -> usize
Length of that signature in bytes, once serialized to bincode.
Trait Implementations
impl Debug for Signature
[src]
impl Clone for Signature
[src]
fn clone(&self) -> Signature
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more