pub struct SigKeypair {
pub public_key: SigPublicKey,
pub secret_key: SigSecretKey,
}
Expand description
Signature keypair with automatic memory zeroization
Fields§
§public_key: SigPublicKey
§secret_key: SigSecretKey
Implementations§
Source§impl SigKeypair
impl SigKeypair
Sourcepub fn public_key(&self) -> &SigPublicKey
pub fn public_key(&self) -> &SigPublicKey
Get the public key
Sourcepub fn secret_key(&self) -> &SigSecretKey
pub fn secret_key(&self) -> &SigSecretKey
Get the secret key (use with caution)
Trait Implementations§
Source§impl Drop for SigKeypair
impl Drop for SigKeypair
Auto Trait Implementations§
impl Freeze for SigKeypair
impl RefUnwindSafe for SigKeypair
impl Send for SigKeypair
impl Sync for SigKeypair
impl Unpin for SigKeypair
impl UnwindSafe for SigKeypair
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