Struct blake3_lamport_signatures::merkle::PrivateKey
source · pub struct PrivateKey(_, _, _);
Expand description
A private key consists of a Merkle tree committing to a sequence of Lamport public keys, one for each message you plan to sign.
Implementations§
source§impl PrivateKey
impl PrivateKey
pub fn inner_keys(&self) -> &Vec<PrivateKey>
pub fn current_index(&self) -> usize
pub fn public_key(&self) -> PublicKey
pub fn generate(n: usize) -> Result<PrivateKey, Error>
pub fn sign<A: AsRef<[u8]>>(&mut self, message: A) -> Option<Signature>
Trait Implementations§
source§impl From<(Vec<PrivateKey, Global>, usize)> for PrivateKey
impl From<(Vec<PrivateKey, Global>, usize)> for PrivateKey
Auto Trait Implementations§
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
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