Struct recrypt::api_480::Ed25519 [−]
pub struct Ed25519;
Trait Implementations
impl Ed25519Signing for Ed25519
impl Ed25519Signing for Ed25519
fn sign<T: Hashable>(
&self,
t: &T,
signing_key: &SigningKeypair
) -> Ed25519Signature
fn sign<T: Hashable>(
&self,
t: &T,
signing_key: &SigningKeypair
) -> Ed25519Signature
Create a signature by signing over the bytes produced by the hashable instance of t
. Read more
fn verify<T: Hashable>(
&self,
t: &T,
signature: &Ed25519Signature,
public_key: &PublicSigningKey
) -> bool
fn verify<T: Hashable>(
&self,
t: &T,
signature: &Ed25519Signature,
public_key: &PublicSigningKey
) -> bool
Use the public_key to verify that the signature was signed by its private key over the hashable bytes of t. Returns true if all the values are valid and the signature can be verified. Read more