pub struct GeneratedKeypair {
pub public_key: Vec<u8>,
pub secret_key: Zeroizing<Vec<u8>>,
pub public_key_multikey: String,
}Expand description
A generated keypair together with the multikey-encoded public key.
Fields§
§public_key: Vec<u8>Raw public key bytes.
secret_key: Zeroizing<Vec<u8>>Secret half of the keypair; zeroized when the struct is dropped.
public_key_multikey: StringThe public key encoded as a z-prefixed multikey string.
Auto Trait Implementations§
impl Freeze for GeneratedKeypair
impl RefUnwindSafe for GeneratedKeypair
impl Send for GeneratedKeypair
impl Sync for GeneratedKeypair
impl Unpin for GeneratedKeypair
impl UnsafeUnpin for GeneratedKeypair
impl UnwindSafe for GeneratedKeypair
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