649 Commits

Author SHA1 Message Date
0xmad
0aea419a89 chore: update with upstream 2023-10-19 14:28:39 -05:00
0xmad
3a6b571e76 fix: cli templates 2023-10-19 13:58:51 -05:00
isk
303a92f6b4 fix: convert to @cryptkeeperzk/ejs 2023-10-19 13:58:08 -05:00
isk
41f5895ef0 fix: replacing ffjavascript with forked @cryptkeeperzk/ffjavascript package 2023-10-19 13:57:31 -05:00
dependabot[bot]
f6e3bf7bb2 chore: Bump eslint from 8.50.0 to 8.51.0 (#433)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-09 20:41:14 -07:00
dependabot[bot]
bef560e894 chore: Bump eslint from 8.49.0 to 8.50.0 (#429)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-27 12:15:17 -07:00
Jordi Baylina
918b4ad3e2 0.7.1 2023-09-19 17:12:29 +02:00
dependabot[bot]
33c753b1c5 chore: Bump eslint from 8.48.0 to 8.49.0 (#426)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 21:59:52 -07:00
dependabot[bot]
694ffab541 chore: Bump eslint from 8.47.0 to 8.48.0 (#420)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-03 16:57:01 -07:00
Blaine Bublitz
53ef3ea2c5 chore: Limit published files to reduce package size (#415) 2023-08-19 18:25:56 -07:00
dependabot[bot]
cc4bcd2664 chore: Bump circom_runtime from 0.1.23 to 0.1.24 (#414)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-19 14:54:17 -07:00
dependabot[bot]
c5a603cab7 chore: Bump r1csfile from 0.0.46 to 0.0.47 (#413)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-19 14:52:57 -07:00
dependabot[bot]
a1888165af chore: Bump ffjavascript from 0.2.59 to 0.2.60 (#407)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-19 14:26:16 -07:00
dependabot[bot]
51a1464794 chore: Bump eslint from 8.46.0 to 8.47.0 (#408)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-14 21:20:24 -07:00
Blaine Bublitz
f5bc353115 fix: Return 0 exit code when import succeeds (#391)
chore: Rebuild cli
2023-08-06 12:57:06 -07:00
dependabot[bot]
4c6679185c chore: Bump eslint from 8.44.0 to 8.46.0 (#403)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-06 12:48:28 -07:00
dependabot[bot]
0461c449f8 chore: Bump eslint from 8.43.0 to 8.44.0 (#394)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-04 14:56:02 -07:00
dependabot[bot]
978d1fcab2 chore: Bump eslint from 8.42.0 to 8.43.0 (#386)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-25 14:54:12 -07:00
dependabot[bot]
fb144555d8 chore: Bump circom_runtime from 0.1.22 to 0.1.23 (#374)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10 13:04:37 -07:00
dependabot[bot]
ebf8ba5b1e chore: Bump r1csfile from 0.0.45 to 0.0.46 (#375)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10 13:04:22 -07:00
dependabot[bot]
9ec8d8ae6c chore: Bump eslint from 8.41.0 to 8.42.0 (#379)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10 13:00:51 -07:00
Jordi Baylina
793ead1dae 0.7.0 2023-05-24 12:23:51 +02:00
Jordi Baylina
aeda0aad78 Fix circular reference and build 2023-05-24 12:23:35 +02:00
dependabot[bot]
b793222e0b chore: Bump eslint from 8.40.0 to 8.41.0 (#373)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-22 19:41:44 -07:00
Xavier Pinsach
a6dcd89a15 Refactor groth16 smart contract (#372)
* Plonk refactored with new clsses and working

* change logger.in -> logger.debug

* update protocol to last version

* Refactor Fiat-Shamir adding preprocessed circuit dependent values

* Add check functions in js and sc

* refactor groth16 smart contract to assembly code

* fix calldata types and test passing

* fix errors. working

* wip

* add debug function

* remove console.log import

* Plonk smart contracte refactored.

* Added test with circuits using +1 inputs

* Added cricuits tests with +1 inputs

* mod package.json

* Plonk refactored with new clsses and working

* change logger.in -> logger.debug

* update protocol to last version

* Refactor Fiat-Shamir adding preprocessed circuit dependent values

* fix errors. working

* wip

* add debug function

* Plonk smart contracte refactored.

* Added cricuits tests with +1 inputs

* mod package.json

* update ffjavascript to 0.2.59

* Add check functions in js and sc

* refactor groth16 smart contract to assembly code

* fix calldata types and test passing

* remove console.log import

* add scalar import

* Add check functions in js and sc

* refactor groth16 smart contract to assembly code

* fix calldata types and test passing

* remove console.log import

* add scalar import

* remove hardhat import

---------

Co-authored-by: Jordi Baylina <jordi@baylina.cat>
2023-05-18 19:13:36 +02:00
Xavier Pinsach
274e1eef6a Plonk refactor (#371)
* Plonk refactored with new clsses and working

* change logger.in -> logger.debug

* update protocol to last version

* Refactor Fiat-Shamir adding preprocessed circuit dependent values

* fix errors. working

* wip

* add debug function

* Plonk smart contracte refactored.

* Added test with circuits using +1 inputs

* Added cricuits tests with +1 inputs

* mod package.json

* Plonk refactored with new clsses and working

* change logger.in -> logger.debug

* update protocol to last version

* Refactor Fiat-Shamir adding preprocessed circuit dependent values

* fix errors. working

* wip

* add debug function

* Plonk smart contracte refactored.

* Added cricuits tests with +1 inputs

* mod package.json

* update ffjavascript to 0.2.59
2023-05-18 19:10:11 +02:00
Roger Taulé Buxadera
e70271b30a Feat lagrange verifier (#368)
* update fflonk SC change memory->calldata

* Optimizing Lagrange calculation

* Fixing Fflonk when having multiple public inputs

---------

Co-authored-by: Xavi Pinsach <10213118+xavi-pinsach@users.noreply.github.com>
2023-05-18 17:02:13 +02:00
Blaine Bublitz
2eef5d17d5 chore(ci): Add browser testing (#365) 2023-05-17 21:11:20 -07:00
Blaine Bublitz
e094f553c0 feat: Use WebCrypto if available (#364)
chore: Increase eslint ecmaVersion to 2022
chore: Lint cleanup
2023-05-17 20:53:45 -07:00
Blaine Bublitz
2f9def43f7 fix(cli): Correctly return status codes instead of values (#369) 2023-05-17 20:53:11 -07:00
Jordi Baylina
46066cd375 0.6.11 2023-05-07 10:33:42 +02:00
Jordi Baylina
3185f8a294 build 2023-05-07 10:33:26 +02:00
dependabot[bot]
19be14fa41 chore: Bump eslint from 8.38.0 to 8.40.0 (#361)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-06 16:02:43 -07:00
Blaine Bublitz
570cb07805 fix: Remove bfj & fs calls from core logic (#356) 2023-05-06 16:02:26 -07:00
Blaine Bublitz
40f51368df chore(ci): Workaround hardhat + node bug (#360) 2023-05-06 15:43:26 -07:00
Blaine Bublitz
e113aecbc5 chore: Move smart contract tests into subdirectory (#355) 2023-05-04 23:09:30 -07:00
dependabot[bot]
b59c535c69 chore: Bump eslint from 8.36.0 to 8.38.0 (#346)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-15 17:22:37 -07:00
Xavier Pinsach
96b7d2786d Refactor fflonk test (#336)
* fflonk files test moved

* fflonk SC verification added to test suite

* add again length proof check to smart contract

* fix tests.yml for continous integration

* add hardhat dependencies to github action

* add more options to launch.json file

* remove hardhat-toolbox

* add missed packages

* skip smart contract testing in node version < 14

* fix smart contract tests

* fix typo and move variables inside function

* add plonk&groth16 smart contract tests

* add setup and prove on smart contracts tests
2023-03-22 08:21:27 +01:00
Jordi Baylina
614c35079d 0.6.10 2023-03-21 00:06:20 +01:00
Jordi Baylina
20937c0218 build 2023-03-21 00:06:12 +01:00
Xavier Pinsach
7164ec8779 Witness check cmd (#337)
* add wtns check tool

* add more info when checking

* remove false test

* add + detailed messages

* add check witness test & tutorial test workflow

* remove witness in tutorial.yml
2023-03-21 00:04:43 +01:00
Jordi Baylina
782894ab72 0.6.9 2023-03-15 05:49:45 +01:00
Jordi Baylina
d26326a110 build 2023-03-15 05:49:21 +01:00
Xavier Pinsach
8a2e4f30e4 add check G1 proof points belong to elliptic curve (#334) 2023-03-15 05:45:59 +01:00
dependabot[bot]
d8ac6bdddf chore: Bump eslint from 8.35.0 to 8.36.0 (#328)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-13 16:40:30 -07:00
Jordi Baylina
fa00080538 0.6.8 2023-03-10 11:24:44 +01:00
Jordi Baylina
8042ab83d8 build 2023-03-10 11:24:31 +01:00
Bhagi.eth
6995a118ca Update README.md (#327)
* Update README.md

* Update README.md
2023-03-10 11:22:04 +01:00
Xavier Pinsach
2e436d7f43 Fflonk refactor zk (#325)
* zk refactored

* removed unnecessary import MulZ from fflonk_prove.js

* add #blinding factors in domain size calc

* fix typo

* remove unnecessary omega

* remove unnecessary C0 evaluations from zkey
2023-03-10 11:20:59 +01:00
Jordi Baylina
28cda564d3 0.6.7 2023-03-01 03:52:11 -07:00