pub struct Ed25519;Expand description
Ed25519 signature scheme.
Implementations§
Source§impl Ed25519
impl Ed25519
pub fn derive_public_from_secret( secret_key: &Ed25519SecretKey, ) -> ApiResult<Ed25519PublicKey>
Trait Implementations§
Source§impl Signature for Ed25519
impl Signature for Ed25519
Source§fn keypair<R: CryptoRng + RngCore>(rng: &mut R) -> ApiResult<Self::KeyPair>
fn keypair<R: CryptoRng + RngCore>(rng: &mut R) -> ApiResult<Self::KeyPair>
Generate a key from caller-provided cryptographic randomness.
Source§type PublicKey = Ed25519PublicKey
type PublicKey = Ed25519PublicKey
Public key type for this algorithm
Source§type SecretKey = Ed25519SecretKey
type SecretKey = Ed25519SecretKey
Secret key type - must be zeroizable but not byte-accessible Read more
Source§type SignatureData = Ed25519Signature
type SignatureData = Ed25519Signature
Signature data type
Source§type KeyPair = (<Ed25519 as Signature>::PublicKey, <Ed25519 as Signature>::SecretKey)
type KeyPair = (<Ed25519 as Signature>::PublicKey, <Ed25519 as Signature>::SecretKey)
Key pair type (typically a tuple of public and secret keys)
Source§fn public_key(keypair: &Self::KeyPair) -> Self::PublicKey
fn public_key(keypair: &Self::KeyPair) -> Self::PublicKey
Extract the public key from a key pair
Source§fn secret_key(keypair: &Self::KeyPair) -> Self::SecretKey
fn secret_key(keypair: &Self::KeyPair) -> Self::SecretKey
Extract the secret key from a key pair
Auto Trait Implementations§
impl Freeze for Ed25519
impl RefUnwindSafe for Ed25519
impl Send for Ed25519
impl Sync for Ed25519
impl Unpin for Ed25519
impl UnsafeUnpin for Ed25519
impl UnwindSafe for Ed25519
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