pub enum SecretKey {
P256(SecretKey),
P384(SecretKey),
P521(SecretKey),
Secp256k1(SecretKey),
Unsupported {
x: Mpi,
curve: ECCCurve,
},
}
Variants§
Trait Implementations§
Source§impl Signer for SecretKey
impl Signer for SecretKey
fn sign( &self, hash: HashAlgorithm, digest: &[u8], pub_params: &PublicParams, ) -> Result<Vec<Vec<u8>>>
impl Eq for SecretKey
impl StructuralPartialEq for SecretKey
Auto Trait Implementations§
impl Freeze for SecretKey
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnwindSafe for SecretKey
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