Struct ring_compat::signature::ecdsa::SigningKey
source · pub struct SigningKey<C>where
C: CurveAlg,
SignatureSize<C>: ArrayLength<u8>,{ /* private fields */ }
Available on crate feature
signature
only.Expand description
ECDSA signing key. Generic over elliptic curves.
Implementations§
source§impl<C> SigningKey<C>where
C: CurveAlg,
SignatureSize<C>: ArrayLength<u8>,
impl<C> SigningKey<C>where C: CurveAlg, SignatureSize<C>: ArrayLength<u8>,
sourcepub fn from_keypair_bytes(
signing_key: &[u8],
verifying_key: &[u8]
) -> Result<Self, Error>
pub fn from_keypair_bytes( signing_key: &[u8], verifying_key: &[u8] ) -> Result<Self, Error>
Initialize a SigningKey
from a raw keypair
sourcepub fn verifying_key(&self) -> VerifyingKey<C>where
FieldBytesSize<C>: ModulusSize,
pub fn verifying_key(&self) -> VerifyingKey<C>where FieldBytesSize<C>: ModulusSize,
Get the VerifyingKey
for this SigningKey
Trait Implementations§
source§impl<C> DecodePrivateKey for SigningKey<C>where
C: CurveAlg,
SignatureSize<C>: ArrayLength<u8>,
impl<C> DecodePrivateKey for SigningKey<C>where C: CurveAlg, SignatureSize<C>: ArrayLength<u8>,
source§impl<C> Keypair for SigningKey<C>where
C: CurveAlg,
FieldBytesSize<C>: ModulusSize,
SignatureSize<C>: ArrayLength<u8>,
impl<C> Keypair for SigningKey<C>where C: CurveAlg, FieldBytesSize<C>: ModulusSize, SignatureSize<C>: ArrayLength<u8>,
§type VerifyingKey = VerifyingKey<C>
type VerifyingKey = VerifyingKey<C>
Verifying key type for this keypair.
source§fn verifying_key(&self) -> VerifyingKey<C>
fn verifying_key(&self) -> VerifyingKey<C>
Get the verifying key which can verify signatures produced by the
signing key portion of this keypair.
source§impl<C> Signer<Signature<C>> for SigningKey<C>where
C: CurveAlg,
SignatureSize<C>: ArrayLength<u8>,
impl<C> Signer<Signature<C>> for SigningKey<C>where C: CurveAlg, SignatureSize<C>: ArrayLength<u8>,
Auto Trait Implementations§
impl<C> RefUnwindSafe for SigningKey<C>where C: RefUnwindSafe,
impl<C> Send for SigningKey<C>
impl<C> Sync for SigningKey<C>
impl<C> Unpin for SigningKey<C>where C: Unpin,
impl<C> UnwindSafe for SigningKey<C>where C: UnwindSafe,
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