Commit Graph

50 Commits

Author SHA1 Message Date
Micah Zoltu
2c964b3fe6 Removes most dependencies and switches to @noble/hashes.
* @noble/hashes is a widely used and audited cryptography library that is pure JavaScript with no transitive dependencies and no dependencies on NodeJS.
* NodeJS now comes with built-in support for testing, so mocha and chai are no longer required, removing most dependencies from this project.

Between these two changes, almost all dependencies were removed and now there are only 2, including transitive.
2024-11-28 18:34:47 +08:00
Jordi Baylina
2fa9503ad6
better info in runtime constraint assertion 2019-09-15 10:49:19 +02:00
Jordi Baylina
3cbc29caf1
pow and abs in the bigInt wrapper 2019-09-05 17:11:31 +02:00
Alexey
30ad8a5db2 bigInt instanceof fix 2019-08-08 22:16:05 +03:00
Jordi Baylina
85c08cfe7a
small fixes 2019-08-02 00:09:30 +02:00
Jordi Baylina
f8ba7cbfa7
Fix brackets in the in field check 2019-07-26 14:19:26 +02:00
Jordi Baylina
406ec9fd62
log functions 2019-06-16 00:12:50 +02:00
Jordi Baylina
ff5b1760c2
Small fixes and optimizations 2019-04-09 14:55:59 +02:00
Jordi Baylina
eeba050585
Merge pull request #14 from stanislasdrg/master
Removed useless commas
2019-02-14 23:59:59 +01:00
Jordi
9360dd121f Ensure JS compatibility on browser environments 2019-02-14 23:18:53 +01:00
stanislasdrg@gmail.com
d5d2aa8599 Removed useless commas 2019-02-07 22:04:47 +00:00
Jordi Baylina
71c66408f5
Fix CVE-2019-7167 2019-02-05 20:28:51 +01:00
Jordi Baylina
76f6e70633
remove log 2018-12-23 00:00:08 +01:00
Jordi Baylina
8a594dc942
Small changes 2018-12-22 23:51:10 +01:00
Jordi Baylina
8a97534ff5
Small fixes 2018-11-28 10:25:24 +01:00
Jordi Baylina
ceb9a7f58e
sqrt added in ZqField 2018-11-11 19:48:02 +01:00
Jordi Baylina
448dc345ad
Groth protocol imlemented 2018-11-10 14:43:37 +01:00
Jordi Baylina
bd48938152
Merge branch 'master' of github.com:iden3/snarkjs 2018-11-09 10:20:24 +01:00
Jordi Baylina
79743dd7c7
Small Fix: Print name of identifier 2018-11-09 10:20:06 +01:00
arnaucube
0e9f632c46 small fix bn128.js/_preparePairing/loopCount.neg() 2018-11-01 20:23:57 +01:00
Jordi Baylina
f122fa202f
Fix 0x parser in old versions of node 2018-10-25 09:42:49 +02:00
Jordi Baylina
5c514a897b
info and print constraints added 2018-10-22 08:34:49 +02:00
Jordi Baylina
76f4da3d0b
License fix and remove gig test 2018-10-21 19:41:44 +02:00
Jordi Baylina
54a4be447f
Rename to snarkjs, cli and some fixes 2018-10-21 18:24:49 +02:00
Jordi Baylina
36c1e2098f
Add ra, rb, d1, d2, d3 coefficients 2018-09-24 12:32:33 +02:00
Jordi Baylina
16ff407765
Important optimization for the trusted setup 2018-09-23 09:20:01 +02:00
Jordi Baylina
3343981187
Extend eq and neq in bigint 2018-09-14 07:08:56 +02:00
bellesmarta
95a09e5d8a Changes README, copyright and typos 2018-09-10 11:53:09 +02:00
Jordi Baylina
6068572655
Optimize Lagrange calculation and recalculate H powers length 2018-09-09 22:17:30 +02:00
Jordi Baylina
035ea22122
uppercase conflict 2018-09-09 14:07:28 +02:00
Jordi Baylina
5177e17037
Spelling fixed 2018-09-09 14:04:22 +02:00
Jordi Baylina
7a9bdf5961
Add extra point in lagrange to avoid constant polinomials 2018-09-06 04:43:38 +02:00
Jordi Baylina
ef1ea14f1e
Fix Variables and test example 2018-09-06 04:40:26 +02:00
Jordi Baylina
2834d5cfc6
circuit in test 2018-09-05 20:40:59 +02:00
Jordi Baylina
544161c399
Prepare license 2018-09-05 04:56:49 +02:00
Jordi Baylina
2cf2803019
Use ruffini for calculatig lagrange polinomials 2018-09-04 07:13:24 +02:00
Jordi Baylina
2910b7cf7d
zkSnarks working 2018-08-25 00:16:12 +02:00
Jordi Baylina
0270ceada6
Polynomial division done 2018-08-18 14:11:51 +02:00
Jordi Baylina
8bc1bb610b
Fix pairing calc 2018-08-15 15:13:21 +02:00
Jordi Baylina
62a1dcfde1
Superoptimized 2018-08-15 14:49:08 +02:00
Jordi Baylina
a7ac0b5d18
Refactor 2018-08-15 11:05:17 +02:00
Jordi Baylina
f7ac040b3b
Use BigInt if available 2018-08-15 09:59:18 +02:00
Jordi Baylina
5c64be0755
mul_by_024 optimized 2018-08-14 22:58:21 +02:00
Jordi Baylina
a878d8ff59
Pairing working 2018-08-14 09:06:00 +02:00
Jordi Baylina
143654c8d6
g1 and g2 tests works 2018-08-12 22:11:42 +02:00
Jordi Baylina
89173c3e63
refactor curve and add tests 2018-08-12 20:37:43 +02:00
Jordi Baylina
91fbc8ea2d
g1 curve done 2018-08-10 23:57:35 +02:00
Jordi Baylina
6a02f83d41
Force 1 in the verifier 2018-08-09 18:59:39 +02:00
Jordi Baylina
c0312e5d83
snarks part done 2018-08-09 15:31:16 +02:00
Jordi Baylina
3f2f303b94
Skeleton 2018-08-09 08:16:34 +02:00