constant codes
const ED25519_PUBKEY_LENGTH: u64 = 32;
const ED25519_SIG_LENGTH: u64 = 64;
built-in functions
public fun public_key_length(): u64
public fun signature_length(): u64
@param signature: 32-byte signature that is a point on the Ed25519 elliptic curve. @param public_key: 32-byte signature that is a point on the Ed25519 elliptic curve. @param msg: The message that we test the signature against.
If the signature is a valid Ed25519 signature of the message and public key, return true. Otherwise, return false.