Skip to content

Commit

Permalink
feat: add RecursiveVerifierGeneration (#117)
Browse files Browse the repository at this point in the history
* bump toolchain to 1.55

* refactor: move recursive types to dependence

* export recursive verifier and serielize proof

* Merge branch 'feat/contracts/recursion' of github.com:fluidex/plonkit

* clean up

* better import

* better

* update

* fix

* fix individual_vk_idxs

* add num_input when outputing verifier

* minor changes in recursive mod

* trivial corrections, clippy and fmt

* update dependency of solidity_recursive_plonk_verifier

* update CI's toolchain spec

* Update integration-test.yml

* Update integration-test.yml

Co-authored-by: Ho <[email protected]>
  • Loading branch information
0xmountaintop and Ho authored Oct 19, 2021
1 parent 9b0e6c0 commit 764014b
Show file tree
Hide file tree
Showing 32 changed files with 9,131 additions and 144 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
strategy:
matrix:
rust:
- 1.50.0
- 1.55.0

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install 1.50.0 toolchain
- name: Install 1.55.0 toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.50.0
toolchain: 1.55.0
override: true
components: rustfmt, clippy

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
strategy:
matrix:
rust:
- 1.50.0
- 1.55.0

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install rust 1.50.0 toolchain
- name: Install rust 1.55.0 toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.50.0
toolchain: 1.55.0
override: true
components: rustfmt, clippy

Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
strategy:
matrix:
rust:
- 1.50.0
- 1.55.0

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install rust 1.50.0 toolchain
- name: Install rust 1.55.0 toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.50.0
toolchain: 1.55.0
override: true
components: rustfmt, clippy

Expand Down Expand Up @@ -136,19 +136,19 @@ jobs:
id: test_contract_npm_cache
uses: actions/cache@v2
with:
path: test/contract/node_modules
key: test_contract_node_modules-${{ hashFiles('test/contract/yarn.lock') }}
path: test/contract/single/node_modules
key: test_contract_node_modules-${{ hashFiles('test/contract/single/yarn.lock') }}

- name: yarn install for test/contract
if: steps.test_contract_npm_cache.outputs.cache-hit != 'true'
run: |
cd test/contract
cd test/contract/single
yarn install
- name: Verify via smart contract
run: |
cp test/circuits/poseidon/public.json test/contract/test/data/public.json
cp test/circuits/poseidon/proof.json test/contract/test/data/proof.json
cp test/circuits/poseidon/verifier.sol test/contract/contracts/verifier.sol
cd test/contract
cp test/circuits/poseidon/public.json test/contract/single/test/data/public.json
cp test/circuits/poseidon/proof.json test/contract/single/test/data/proof.json
cp test/circuits/poseidon/verifier.sol test/contract/single/contracts/verifier.sol
cd test/contract/single
npx hardhat test
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ jobs:
strategy:
matrix:
rust:
- 1.50.0
- 1.55.0

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install 1.50.0 toolchain
- name: Install 1.55.0 toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.50.0
toolchain: 1.55.0
override: true
components: rustfmt, clippy

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ jobs:
strategy:
matrix:
rust:
- 1.50.0
- 1.55.0

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install 1.50.0 toolchain
- name: Install 1.55.0 toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.50.0
toolchain: 1.55.0
override: true
components: rustfmt, clippy

Expand Down
Loading

0 comments on commit 764014b

Please sign in to comment.