Build with Node
First, you need to install the library.
fhevmjs
uses ESM format for web version and commonjs for node version. You need to set the type to "commonjs" in your package.json to load the correct version of fhevmjs. If your node project use "type": "module"
, you can force the loading of the Node version by using import { createInstance } from 'fhevmjs/node';
Create an instance
You can now use your instance to encrypt parameters or do a reencryption.
Last updated