Skip to content

Latest commit

 

History

History
78 lines (34 loc) · 1.75 KB

ed25519.md

File metadata and controls

78 lines (34 loc) · 1.75 KB

Module 0x3::ed25519

Constants

constant codes

const ED25519_PUBKEY_LENGTH: u64 = 32;

const ED25519_SIG_LENGTH: u64 = 64;

Function public_key_length

built-in functions

public fun public_key_length(): u64

Function signature_length

public fun signature_length(): u64

Function verify

@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.

public fun verify(signature: &vector<u8>, public_key: &vector<u8>, msg: &vector<u8>): bool