pub struct PrivateKey { /* private fields */ }
Implementations§
Source§impl PrivateKey
impl PrivateKey
pub fn public_key(&self) -> &PublicKey
pub fn new_uncheck(pk: PublicKey, d: &BigInt) -> Self
Trait Implementations§
Source§impl Clone for PrivateKey
impl Clone for PrivateKey
Source§impl Debug for PrivateKey
impl Debug for PrivateKey
Source§impl Display for PrivateKey
impl Display for PrivateKey
Source§impl From<PrivateKey> for KeyPair
impl From<PrivateKey> for KeyPair
Source§fn from(pk: PrivateKey) -> Self
fn from(pk: PrivateKey) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrivateKey
impl !RefUnwindSafe for PrivateKey
impl !Send for PrivateKey
impl !Sync for PrivateKey
impl Unpin for PrivateKey
impl !UnwindSafe for PrivateKey
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