From: Chris Duncan Date: Sat, 29 Aug 2026 04:54:00 +0000 (-0700) Subject: Reset buffer view after calling WASM function. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=b7e4ff71f1f5a4ca2a524d30b1cd6287d38c25d8;p=nano25519.git Reset buffer view after calling WASM function. --- diff --git a/src/lib/verify.ts b/src/lib/verify.ts index 415bb34..b3f4649 100644 --- a/src/lib/verify.ts +++ b/src/lib/verify.ts @@ -69,6 +69,7 @@ export function verify_blocks (pub: unknown, data: unknown): boolean[] { p += BLOCKHASH_BYTELENGTH } exports.verify_blocks(blocks.length) + buffer = new Uint8Array(exports.memory.buffer) for (let i = 0; i < count; i++) { verified[i] = buffer[OUTPUT_VERIFY + i] }