Struct ring_compat::signature::ecdsa::SigningKey [−][src]
pub struct SigningKey<C> where
C: Curve + CurveAlg + Order,
SignatureSize<C>: ArrayLength<u8>, { /* fields omitted */ }
This is supported on crate feature
signature
only.ECDSA signing key. Generic over elliptic curves.
Implementations
impl<C> SigningKey<C> where
C: Curve + CurveAlg + Order,
SignatureSize<C>: ArrayLength<u8>,
[src]
impl<C> SigningKey<C> where
C: Curve + CurveAlg + Order,
SignatureSize<C>: ArrayLength<u8>,
[src]pub fn from_pkcs8(pkcs8_key: &[u8]) -> Result<Self, Error>
[src]
Initialize a SigningKey
from a PKCS#8-encoded private key
pub fn from_keypair_bytes(
signing_key: &[u8],
verify_key: &[u8]
) -> Result<Self, Error>
[src]
signing_key: &[u8],
verify_key: &[u8]
) -> Result<Self, Error>
Initialize a SigningKey
from a raw keypair
pub fn verify_key(&self) -> VerifyingKey<C> where
UntaggedPointSize<C>: Add<U1> + ArrayLength<u8>,
UncompressedPointSize<C>: ArrayLength<u8>,
[src]
UntaggedPointSize<C>: Add<U1> + ArrayLength<u8>,
UncompressedPointSize<C>: ArrayLength<u8>,
Get the VerifyingKey
for this SigningKey
Trait Implementations
Auto Trait Implementations
impl<C> RefUnwindSafe for SigningKey<C> where
C: RefUnwindSafe,
impl<C> RefUnwindSafe for SigningKey<C> where
C: RefUnwindSafe,
impl<C> Send for SigningKey<C>
impl<C> Send for SigningKey<C>
impl<C> Sync for SigningKey<C>
impl<C> Sync for SigningKey<C>
impl<C> Unpin for SigningKey<C> where
C: Unpin,
impl<C> Unpin for SigningKey<C> where
C: Unpin,
impl<C> UnwindSafe for SigningKey<C> where
C: UnwindSafe,
impl<C> UnwindSafe for SigningKey<C> where
C: UnwindSafe,