rok::core::crypto::ed25519
Ed25519 (RFC 8032 5.1): pure EdDSA over edwards25519 with SHA-512.
Structs
Ed25519
pub struct Ed25519Ed25519 signatures: 32-byte seeds and public keys, 64-byte signatures.
pub fn public_key(seed: Bytes) throws (ValueError) -> List<u8>pub fn sign(seed: Bytes, msg: Bytes) throws (ValueError) -> List<u8>The signature
R || Sofmsg(deterministic).pub fn verify(public_key: Bytes, msg: Bytes, sig: Bytes) -> boolWhether
sigis a valid signature ofmsgunderpublic_key: canonicalA,S < L, and the encoding of[S]B - [k]Aequal toRbyte for byte (cofactorless, RFC 8032 5.1.7).