* @param {u64} k - 32-byte public key\r
*/\r
export function verify (mlen: i32): void {\r
- if (mlen < 0 || mlen > 32768) throw new Error()\r
+ if (mlen < 0 || mlen > 32768) throw new Error('invalid message length')\r
const s = verify_s\r
const m = MESSAGE_BUFFER\r
const k = verify_k\r
file >>>= 0
row >>>= 0
col >>>= 0
- const message = 'nano25519/async wasm abort'
- console.error(message, getString(msg), getString(file), { msg, file, row, col })
+ const message = `Nano25519WasmError: ${getString(msg)}, ${getString(file)}, row ${row}, col ${col}`
throw new Error(message)
},
"performance.now" () {