CLI tool not working

even after globally installing fhevmjs the cli tool doesnt seem to work.
The following error is being shown:
C:\Users\A\AppData\Roaming\npm\node_modules\fhevmjs\node_modules\node-tfhe\tfhe.js:9694
const ret = new Error(getStringFromWasm0(arg0, arg1));
^

Error: Io(Kind(UnexpectedEof))
at module.exports.__wbindgen_error_new (C:\Users\A\AppData\Roaming\npm\node_modules\fhevmjs\node_modules\node-tfhe\tfhe.js:9694:17)
at wasm://wasm/002d37f2:wasm-function[422]:0x74605
at TfheCompactPublicKey.deserialize (C:\Users\A\AppData\Roaming\npm\node_modules\fhevmjs\node_modules\node-tfhe\tfhe.js:9161:18)
at C:\Users\A\AppData\Roaming\npm\node_modules\fhevmjs\lib\node.cjs:164:70
at step (C:\Users\A\AppData\Roaming\npm\node_modules\fhevmjs\lib\node.cjs:55:23)
at Object.next (C:\Users\A\AppData\Roaming\npm\node_modules\fhevmjs\lib\node.cjs:36:53)
at fulfilled (C:\Users\A\AppData\Roaming\npm\node_modules\fhevmjs\lib\node.cjs:26:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.10.0

Hello!
Thank you for this feedback. We realized that we didn’t update the way we get the public key from the blockchain in the CLI tool. We just pushed a fix and it’s already available in fhevmjs@0.3.2 https://www.npmjs.com/package/fhevmjs

1 Like