From: Chris Duncan Date: Sat, 5 Sep 2026 03:36:36 +0000 (-0700) Subject: Fix positive test. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=fa534b3f18ab6b295636bb3a05455675cc4bba65;p=nano25519.git Fix positive test. --- diff --git a/test/node.mjs b/test/node.mjs index f61693a..dfa215c 100644 --- a/test/node.mjs +++ b/test/node.mjs @@ -190,8 +190,8 @@ passes += +test failures += +!test // Check identity signature verifies -result = verify(IDENTITY.signatureBytes, new Uint8Array(32), IDENTITY.publicKeyBytes) -test = result === true +result = verify_blocks(IDENTITY.publicKeyBytes, [{ signature: IDENTITY.signatureBytes, hash: new Uint8Array(32) }]) +test = result[0] === true check(`verify identity signature bytes ${IDENTITY.signature}`, test) passes += +test failures += +!test