verifyEd25519Signature function

bool verifyEd25519Signature(
  1. Ed25519Key publicKey,
  2. Ed25519Signature signature,
  3. Uint8List message
)

Verifies Ed25519 signature on message with private key matching publicKey.

Implementation

bool verifyEd25519Signature(
        Ed25519Key publicKey, Ed25519Signature signature, Uint8List message) =>
    tweetnacl.Signature(publicKey.key, null)
        .detached_verify(message, signature.sig);