pub struct KeyPair {
pub pub_key: String,
pub priv_key: String,
pub epub_key: Option<String>,
pub epriv_key: Option<String>,
}Expand description
Key pair for signing and encryption
Fields§
§pub_key: StringPublic key for signing (ECDSA, P-256) in x.y base64 format
priv_key: StringPrivate key for signing (ECDSA, P-256) base64 encoded scalar
epub_key: Option<String>Public key for encryption (ECDH, P-256) in x.y base64 format
epriv_key: Option<String>Private key for encryption (ECDH, P-256) base64 encoded scalar
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