pub struct DeterministicEcdsaKey { /* private fields */ }Expand description
A signing key whose ECDSA signatures follow RFC 6979; see deterministic_ecdsa.
Trait Implementations§
Source§impl SigningKey for DeterministicEcdsaKey
impl SigningKey for DeterministicEcdsaKey
Source§fn supports(&self, scheme: SignatureScheme) -> bool
fn supports(&self, scheme: SignatureScheme) -> bool
Reports whether this key can sign with
scheme.Source§fn public_key(&self) -> PublicKey<'_>
fn public_key(&self) -> PublicKey<'_>
Returns the public key with explicit encoding.
Source§fn sign(
&self,
scheme: SignatureScheme,
message: &[u8],
) -> Result<Vec<u8>, CryptoError>
fn sign( &self, scheme: SignatureScheme, message: &[u8], ) -> Result<Vec<u8>, CryptoError>
Signs
message.Source§fn to_pkcs8_der(&self) -> Result<Option<SecretVec>, CryptoError>
fn to_pkcs8_der(&self) -> Result<Option<SecretVec>, CryptoError>
Exports PKCS#8 when supported.
Ok(None) means the key is non-exportable.Auto Trait Implementations§
impl !RefUnwindSafe for DeterministicEcdsaKey
impl !UnwindSafe for DeterministicEcdsaKey
impl Forget for DeterministicEcdsaKey
impl Freeze for DeterministicEcdsaKeywhere
*const ArcInner<dyn SigningKey> is !null: Freeze,
PhantomData<ArcInner<dyn SigningKey>>: Freeze,
Scalar: Freeze,
AffinePoint<NistP256>: Freeze,
Scalar: Freeze,
AffinePoint<NistP384>: Freeze,
impl Move for DeterministicEcdsaKey
impl Send for DeterministicEcdsaKeywhere
Arc<dyn SigningKey>: Send,
Scalar: Send,
AffinePoint<NistP256>: Send,
Scalar: Send,
AffinePoint<NistP384>: Send,
impl Sync for DeterministicEcdsaKeywhere
Arc<dyn SigningKey>: Sync,
Scalar: Sync,
AffinePoint<NistP256>: Sync,
Scalar: Sync,
AffinePoint<NistP384>: Sync,
impl Unpin for DeterministicEcdsaKeywhere
Arc<dyn SigningKey>: Unpin,
Scalar: Unpin,
AffinePoint<NistP256>: Unpin,
Scalar: Unpin,
AffinePoint<NistP384>: Unpin,
impl UnsafeUnpin for DeterministicEcdsaKeywhere
*const ArcInner<dyn SigningKey> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SigningKey>>: UnsafeUnpin,
Scalar: UnsafeUnpin,
AffinePoint<NistP256>: UnsafeUnpin,
Scalar: UnsafeUnpin,
AffinePoint<NistP384>: UnsafeUnpin,
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