Commit Graph

33 Commits

Author SHA1 Message Date
e5a79cca90
Support commonjs as well
Full compare: https://github.com/tornadocash/websnark/compare/phase2...tornadocontrib:websnark:master
2024-12-21 21:16:25 +00:00
Micah Zoltu
73700809f2 Adds esbuild & Dockerfile, skips a failing test.
* Adds esbuild as a bundler.
* Adds Dockerfile for deterministic building of the bundle.

Important Note:
The failing groth16 test fails on upstream, which means it is failing on the version used in Tornado Classic UI.
This is unfortunate, but if it is a critical bug at least it isn't an escalation compared to current state of things.
2024-12-21 20:21:07 +08:00
Micah Zoltu
f3a23e3a39 Removes most dependencies and switches to @noble/hashes.
* Browserify is incredibly high dependency count, so it was removed (esbuild will be added in future commit).
* NodeJS now comes with built-in support for testing, so mocha and chai are no longer required, removing most dependencies from this project.
* eslint isn't necessary for an unmaintained project, and can be used on a per-developer basis.
* package is only used to get version, which is useless and an unnecessary security risk.
* yargs brings in 16 dependencies and can be replaced with minimist which is just 1.
* normalized transitive dependencies of big-integer to all the same version.

These changes get us down to 5 dependencies total, with only one being relevant at runtime.

Also removes usage of `assert` and `Buffer`, which are NodeJS things.

Fixes a minor bug in `stringifybigint` that was incorrectly checking if something was a native `bigint`.
2024-12-02 15:33:24 +08:00
poma
86a526718c
fix dependency 2020-08-19 01:42:23 +03:00
poma
b1afda63af
update package lock 2020-05-21 20:12:38 +03:00
poma
4c0af6a8b6
pin snarkjs version 2020-04-13 20:40:49 +03:00
Kobi Gurkan
ffade701ba
matches h exps to latest phase2 code
(cherry picked from commit 1fea8e0ef042d0e68e88e271fb7e79949a884a51)
2020-01-09 14:15:51 +07:00
poma
fba855ab74
phase2 2019-12-29 21:29:59 +07:00
Alexey
c9df6beaed init fix 2019-11-14 13:06:21 +03:00
Alexey
d46185ec35 🛠backwards compatibility fix 2019-11-14 12:52:44 +03:00
poma
c254b59622 change toSolidityInput to return single byte buffer for proof vars, remove fromSolidityInput 2019-11-08 01:07:49 +03:00
poma
966eafc47d change fromSolidityInput and toSolidityInput so single array proof format 2019-10-04 16:14:25 +03:00
Alexey
ed6a4d8a6f backward compatibility fix 2019-08-01 12:16:20 +03:00
Alexey
cc4646b2e7 configurable wasm memory allocation 2019-07-26 18:31:27 +03:00
poma
271c74a76f add fromSolidityInput to utils 2019-07-15 17:42:45 +03:00
poma
5907841378 Add witness calculation 2019-07-15 16:56:47 +03:00
poma
236664f194 avoid iterating already unstringified bigint's properties 2019-07-15 16:54:50 +03:00
Jordi Baylina
3b6cf0c77e
0.0.4 2019-06-25 15:53:12 +02:00
Jordi Baylina
a23f042c36
Merge branch 'master' of github.com:iden3/websnark 2019-06-25 15:52:53 +02:00
Jordi Baylina
44f11945f1
Montgomery multiplication optimized 2019-06-25 15:51:30 +02:00
Jordi Baylina
5328cbcc44
Merge pull request #7 from kobigurk/master
Fix memory requirement to not crash chrome
2019-06-25 11:17:46 +02:00
Kobi Gurkan
749f4edc5a Builds websnark with fixed memory requirement 2019-06-25 12:16:55 +03:00
Kobi Gurkan
86e4250a23 Fix memory requirement to not crash chrome 2019-06-25 12:15:19 +03:00
Jordi Baylina
4e6f320667
Optimization of the int_mul code 2019-06-25 11:08:40 +02:00
Jordi Baylina
6c5cf8d4e5
Fix memory requirement 2019-06-23 00:09:04 +02:00
Jordi Baylina
e40bd0b701
Merge pull request #3 from kobigurk/master
Make memory grow on overflowing allocation
2019-05-15 10:11:11 +02:00
Kobi Gurkan
30a4b3d7fb Make memory grow on overflowing allocation 2019-05-14 09:53:56 +03:00
Jordi Baylina
bbab2e4c7e
0.0.3 2019-04-27 07:09:49 +02:00
Jordi Baylina
0c19558260
Improvement in multiexp 2019-04-27 07:09:17 +02:00
Jordi Baylina
cd5cb59ecd
0.0.2 2019-04-17 21:51:22 +02:00
Jordi Baylina
8b3e63c2d4
FIX: fromMontgomery to domainsize in h 2019-04-17 21:51:12 +02:00
Jordi Baylina
0cefcd2d7f
Improve instructions in readme 2019-04-12 05:03:34 -07:00
Jordi Baylina
a0680804a5
Initial commit 2019-04-09 12:37:39 -07:00