Type Alias cosmian_crypto_core::Ed25519PrivateKey

source ·
pub type Ed25519PrivateKey = Curve25519Secret;

Aliased Type§

struct Ed25519PrivateKey(/* private fields */);

Trait Implementations§

source§

impl Signer<Signature> for Ed25519PrivateKey

Signer implementation for Ed25519.

This direct implementation involves a manipulations of the private key and is therefore slower than the CachedSigner cached implementation when signing multiple messages with the same key.

source§

fn try_sign(&self, message: &[u8]) -> Result<Signature, Error>

Attempt to sign the given message, returning a digital signature on success, or an error if something went wrong. Read more
source§

fn sign(&self, msg: &[u8]) -> S

Sign the given message and return a digital signature