pub struct KeyPair<P: ReferenceProfile> {
pub public_key: PublicKey<P>,
pub private_key: PrivateKey<P>,
}Expand description
A generated public/private key pair for one WOTS signing operation.
The private key is non-cloneable and consumed by Wots::sign or a fused
operation. Persisting or reconstructing its raw bytes requires explicit
action and moves one-time-use enforcement outside this API.
Fields§
§public_key: PublicKey<P>Public verification key.
private_key: PrivateKey<P>One-time private signing key.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for KeyPair<P>
impl<P> RefUnwindSafe for KeyPair<P>
impl<P> Send for KeyPair<P>
impl<P> Sync for KeyPair<P>
impl<P> Unpin for KeyPair<P>
impl<P> UnsafeUnpin for KeyPair<P>
impl<P> UnwindSafe for KeyPair<P>
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