pub struct EdDsa;Expand description
Namespace wrapper for the Edwards-curve signature construction.
Implementations§
Source§impl EdDsa
impl EdDsa
Sourcepub fn generate<R: Csprng>(
curve: TwistedEdwardsCurve,
rng: &mut R,
) -> (EdDsaPublicKey, EdDsaPrivateKey)
pub fn generate<R: Csprng>( curve: TwistedEdwardsCurve, rng: &mut R, ) -> (EdDsaPublicKey, EdDsaPrivateKey)
Generate a random key pair (public, private) for the chosen curve.
Sourcepub fn from_secret_scalar(
curve: TwistedEdwardsCurve,
secret: &BigUint,
) -> Option<(EdDsaPublicKey, EdDsaPrivateKey)>
pub fn from_secret_scalar( curve: TwistedEdwardsCurve, secret: &BigUint, ) -> Option<(EdDsaPublicKey, EdDsaPrivateKey)>
Derive a key pair from an explicit secret scalar.
Auto Trait Implementations§
impl Freeze for EdDsa
impl RefUnwindSafe for EdDsa
impl Send for EdDsa
impl Sync for EdDsa
impl Unpin for EdDsa
impl UnsafeUnpin for EdDsa
impl UnwindSafe for EdDsa
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