pub struct CoseKeyPair {
pub public: CoseKey,
pub private: CoseKey,
}Expand description
A COSE key pair, containing both the public and private keys.
Fields§
§public: CoseKeyThe public key.
private: CoseKeyThe private key.
Implementations§
Source§impl CoseKeyPair
impl CoseKeyPair
Sourcepub fn from_secret_key(private_key: &SecretKey, algorithm: Algorithm) -> Self
pub fn from_secret_key(private_key: &SecretKey, algorithm: Algorithm) -> Self
Create a new COSE key pair from a secret key and algorithm.
Auto Trait Implementations§
impl Freeze for CoseKeyPair
impl RefUnwindSafe for CoseKeyPair
impl Send for CoseKeyPair
impl Sync for CoseKeyPair
impl Unpin for CoseKeyPair
impl UnwindSafe for CoseKeyPair
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