Struct lamport_sigs::PublicKey
[−]
[src]
pub struct PublicKey<T: Digest + Clone> { /* fields omitted */ }
A one-time signing public key
Methods
impl<T: Digest + Clone> PublicKey<T>
[src]
fn values(&self) -> (Vec<Vec<u8>>, Vec<Vec<u8>>)
fn to_bytes(&self) -> Vec<u8>
fn verify_signature(&self, signature: &Vec<Vec<u8>>, data: &[u8]) -> bool
Verifies that the signature of the data is correctly signed with the given key
Trait Implementations
impl<T: Clone + Digest + Clone> Clone for PublicKey<T>
[src]
fn clone(&self) -> PublicKey<T>
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