pub unsafe extern "C" fn ocrypto_ed25519_verify(
    sig: *const u8,
    m: *const u8,
    m_len: usize,
    pk: *const u8
) -> c_int
Expand description

Ed25519 signature verification.

The signature * sig - of the input message * m - is verified using the signer’s public key * pk - .

  • sig - Input signature.
  • m - Input message.
  • m_len - Length of * m - .
  • pk - Signer’s public key.

Returns 0 If the signature is valid. Returns -1 Otherwise.