pub struct SigningKey<C>{ /* private fields */ }
Available on crate feature
signature
only.Expand description
ECDSA signing key. Generic over elliptic curves.
Implementations§
Source§impl<C> SigningKey<C>
impl<C> SigningKey<C>
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>
impl<C> DecodePrivateKey for SigningKey<C>
Source§impl<C> Keypair for SigningKey<C>
impl<C> Keypair for SigningKey<C>
Source§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>
impl<C> Signer<Signature<C>> for SigningKey<C>
Auto Trait Implementations§
impl<C> Freeze for SigningKey<C>
impl<C> RefUnwindSafe for SigningKey<C>
impl<C> Send for SigningKey<C>
impl<C> Sync for SigningKey<C>
impl<C> Unpin for SigningKey<C>
impl<C> UnwindSafe for SigningKey<C>
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