Skip to content

Commit

Permalink
Merge pull request #101 from zama-ai/update-tfhe-083
Browse files Browse the repository at this point in the history
chore: update tfhe
  • Loading branch information
immortal-tofu authored Oct 11, 2024
2 parents e3768ea + f609bff commit a9ee61c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 22 deletions.
11 changes: 8 additions & 3 deletions config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ import replace from '@rollup/plugin-replace';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import nodePolyfills from 'rollup-plugin-polyfill-node';
import path from 'path';
import fs from 'fs';

const require = createRequire(import.meta.url);

const wasmBindgenRayon = fs.readdirSync(
path.resolve('node_modules/tfhe/snippets'),
)[0];

const nodePlugins = [
json(),
wasm(),
Expand Down Expand Up @@ -56,11 +62,10 @@ export default [
plugins: [...webPlugins],
},
{
input:
'./node_modules/tfhe/snippets/wasm-bindgen-rayon-3e04391371ad0a8e/src/workerHelpers.worker.js',
input: `./node_modules/tfhe/snippets/${wasmBindgenRayon}/src/workerHelpers.worker.js`,
output: {
file: 'lib/workerHelpers.worker.js',
name: 'fhevm',
name: 'worker',
format: 'es',
},
plugins: [...webPlugins],
Expand Down
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fhevmjs",
"version": "0.6.0-1",
"version": "0.6.0-2",
"description": "fhEVM SDK for blockchain using TFHE",
"main": "lib/node.js",
"types": "lib/node/node.d.ts",
Expand Down Expand Up @@ -50,10 +50,10 @@
"bigint-buffer": "^1.1.5",
"commander": "^11.0.0",
"fetch-mock": "^11.1.3",
"node-tfhe": "^0.8.0",
"node-tfhe": "^0.8.3",
"node-tkms": "^0.9.0-rc11",
"sha3": "^2.1.4",
"tfhe": "^0.8.0",
"tfhe": "^0.8.3",
"tkms": "^0.9.0-rc11",
"url": "^0.11.3",
"web3-validator": "^2.0.6"
Expand Down

0 comments on commit a9ee61c

Please sign in to comment.