pub struct PrivateKey<C>(/* private fields */);Implementations§
Source§impl<C: Curve> PrivateKey<C>
impl<C: Curve> PrivateKey<C>
pub fn new(n: Num) -> Result<Self, InvalidPrivateKey>
Sourcepub fn derive(&self) -> PublicKey<C>
pub fn derive(&self) -> PublicKey<C>
Derive the public key from a private key.
This is done by simply multiplying the private key with the generator point.
Trait Implementations§
Source§impl<C> Clone for PrivateKey<C>
impl<C> Clone for PrivateKey<C>
Source§impl<C: Debug> Debug for PrivateKey<C>
impl<C: Debug> Debug for PrivateKey<C>
impl<C> Copy for PrivateKey<C>
Auto Trait Implementations§
impl<C> Freeze for PrivateKey<C>
impl<C> RefUnwindSafe for PrivateKey<C>where
C: RefUnwindSafe,
impl<C> Send for PrivateKey<C>where
C: Send,
impl<C> Sync for PrivateKey<C>where
C: Sync,
impl<C> Unpin for PrivateKey<C>where
C: Unpin,
impl<C> UnwindSafe for PrivateKey<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