pub struct Es256SigningKey(/* private fields */);Expand description
An ES256 private key. Its debug form never includes key material.
Implementations§
Source§impl Es256SigningKey
impl Es256SigningKey
Sourcepub fn from_pkcs8_pem(pem: &str) -> Result<Self, IdentityError>
pub fn from_pkcs8_pem(pem: &str) -> Result<Self, IdentityError>
Read an unencrypted PKCS #8 PEM private key.
Sourcepub fn verifying_key(&self) -> Es256VerifyingKey
pub fn verifying_key(&self) -> Es256VerifyingKey
The public key corresponding to this private key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Es256SigningKey
impl RefUnwindSafe for Es256SigningKey
impl Send for Es256SigningKey
impl Sync for Es256SigningKey
impl Unpin for Es256SigningKey
impl UnsafeUnpin for Es256SigningKey
impl UnwindSafe for Es256SigningKey
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