pub struct KeyPair {
pub public: PublicKey,
pub secret: SecretKey,
}Expand description
A keypair consisting of an age public key and its corresponding secret key.
This is the main output of build_keypair.
Both fields are public for direct access.
Fields§
§public: PublicKeyThe public key (starts with “age1”).
secret: SecretKeyThe secret key (zeroized on drop).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyPair
impl RefUnwindSafe for KeyPair
impl Send for KeyPair
impl Sync for KeyPair
impl Unpin for KeyPair
impl UnsafeUnpin for KeyPair
impl UnwindSafe for KeyPair
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