[−]Trait recrypt::api_480::Ed25519Signing
Required methods
fn sign<T: Hashable>(
&self,
t: &T,
signing_key: &SigningKeypair
) -> Ed25519Signature
&self,
t: &T,
signing_key: &SigningKeypair
) -> Ed25519Signature
Create a signature by signing over the bytes produced by the hashable instance of t
.
fn verify<T: Hashable>(
&self,
t: &T,
signature: &Ed25519Signature,
public_key: &PublicSigningKey
) -> bool
&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.
Implementors
impl Ed25519Signing for Ed25519
fn sign<T: Hashable>(
&self,
t: &T,
signing_key: &SigningKeypair
) -> Ed25519Signature
&self,
t: &T,
signing_key: &SigningKeypair
) -> Ed25519Signature
fn verify<T: Hashable>(
&self,
t: &T,
signature: &Ed25519Signature,
public_key: &PublicSigningKey
) -> bool
&self,
t: &T,
signature: &Ed25519Signature,
public_key: &PublicSigningKey
) -> bool