supercop.ts

cross-compiled javascript implementation of ed25519 based on supercop-ref10
git clone git://git.finwo.net/lib/supercop.ts
Log | Files | Refs | README | LICENSE

commit 9dcb4ea4f22dfc2f77fc6b06632875b20403d449
parent a4c9c0cf30b9b6aee5b7b88b8adebc392aac957c
Author: finwo <finwo@pm.me>
Date:   Thu, 23 May 2024 21:42:00 +0200

DEBUG - logging bufferSource to see what's going on

Diffstat:
Msrc/index.ts | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/index.ts b/src/index.ts @@ -1,4 +1,5 @@ import { binary } from './supercop.wasm'; +import { readFileSync } from 'fs'; const Module = (async () => { const memory = new WebAssembly.Memory({initial: 4}); @@ -8,6 +9,8 @@ const Module = (async () => { imports.env.__heap_base = new WebAssembly.Global({value: 'i32', mutable: true}); } + console.log({ bufferSource: binary }); + console.log(readFileSync('./supercop.wasm.ts').toString('utf-8')); const program = await WebAssembly.instantiate(binary, imports); return {