pub struct EcdsaPrivateKey {
pub key: SigningKey,
}
Fields§
§key: SigningKey
Implementations§
Source§impl EcdsaPrivateKey
impl EcdsaPrivateKey
pub fn new() -> Self
pub fn save(&self, path: impl AsRef<Path>) -> Result<()>
pub fn load(path: impl AsRef<Path>) -> Result<Self>
pub fn public_key(&self) -> EcdsaPublicKey
pub fn sign(&self, digest: &Sha256Digest) -> Result<EcdsaRawSignature>
pub fn digest_and_sign(&self, data: &[u8]) -> Result<EcdsaRawSignature>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EcdsaPrivateKey
impl RefUnwindSafe for EcdsaPrivateKey
impl Send for EcdsaPrivateKey
impl Sync for EcdsaPrivateKey
impl Unpin for EcdsaPrivateKey
impl UnwindSafe for EcdsaPrivateKey
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