@me2em/crypto
    Preparing search index...

    Function verifyRaw

    • Verifies a raw Ed25519 signature.

      Returns false on ANY error (malformed signature, wrong key length, cryptographic mismatch) — this is a total function.

      Parameters

      • publicKey: Uint8Array

        32-byte Ed25519 public key.

      • message: Uint8Array

        The original message bytes.

      • signature: Uint8Array

        The 64-byte signature to verify.

      Returns boolean

      true if valid, false otherwise (never throws).

      if (verifyRaw(pubKey, message, sig)) {
      // authentic
      }