Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Circom stuff to the Runtime #330

Merged
merged 32 commits into from
Jun 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c0756d7
add cargo-nextest
shekohex Jun 12, 2023
facde1a
Fix deps
shekohex Jun 12, 2023
b108248
Make it compile
shekohex Jun 12, 2023
850a9e5
Add Circom things to the runtime
shekohex Jun 12, 2023
a68ba17
Add wasmer back
shekohex Jun 12, 2023
338e3f5
revert all changes to the runtime
shekohex Jun 13, 2023
a792e04
make it configurable using feature flags and make circom the defualt
shekohex Jun 13, 2023
3affadf
add test between js and rust ext data encoding
shekohex Jun 13, 2023
0473f5d
fix the ordering of the params
shekohex Jun 13, 2023
33fec89
add logging to the runtime
shekohex Jun 13, 2023
e5370c1
update test
shekohex Jun 13, 2023
cc00626
correctly encode the extData
shekohex Jun 13, 2023
f778a1f
remove the useless tests
shekohex Jun 13, 2023
552f334
improve the logging for debugging
shekohex Jun 13, 2023
49662ae
an attemp to workaround snarkjs->arkworks
shekohex Jun 13, 2023
3017838
fmt
shekohex Jun 13, 2023
3586d52
working on fixing the verification
shekohex Jun 14, 2023
d7b68cb
update fixtures
shekohex Jun 14, 2023
69ad6e2
update fixtures paths
shekohex Jun 14, 2023
cac3b99
fix fetch fixtures script
shekohex Jun 15, 2023
9925479
fix dvc repo
shekohex Jun 15, 2023
a6d199c
skip dvc pull on shellinit
shekohex Jun 15, 2023
c36dcfe
Fix paring in x & y in G2
shekohex Jun 15, 2023
4f58a04
fixing dvc pull
shekohex Jun 15, 2023
af81799
fmt
shekohex Jun 15, 2023
e8c7574
fix fixture paths
shekohex Jun 15, 2023
5fced83
skip the anonmity-mining-claims test until we update the fixtures
shekohex Jun 15, 2023
ca6e504
add retry logic to the fetch fixture step
shekohex Jun 15, 2023
2abbd11
handle errors and remove unwraps
shekohex Jun 15, 2023
3eee34d
fix ci files
shekohex Jun 15, 2023
09cdd4a
add ext data hash check
shekohex Jun 16, 2023
c27c499
Update features of ark-groth16 crate
shekohex Jun 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dvc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/config.local
/tmp
/cache
Empty file added .dvc/config
Empty file.
3 changes: 3 additions & 0 deletions .dvcignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add patterns of files dvc should ignore, which could improve
# the performance. Learn more at
# https://dvc.org/doc/user-guide/dvcignore
35 changes: 17 additions & 18 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ jobs:
- name: Setup DVC
uses: iterative/setup-dvc@v1
- name: Fetch Fixtures
run: ./scripts/fetch-fixtures.sh
uses: nick-fields/retry@v2
with:
max_attempts: 10
timeout_minutes: 30
command: dvc pull -v
- name: Check Format
run: |
SKIP_WASM_BUILD=1 cargo fmt --all -- --check
Expand All @@ -47,7 +51,11 @@ jobs:
- name: Setup DVC
uses: iterative/setup-dvc@v1
- name: Fetch Fixtures
run: ./scripts/fetch-fixtures.sh
uses: nick-fields/retry@v2
with:
max_attempts: 10
timeout_minutes: 30
command: dvc pull -v
- name: Check Build
run: |
SKIP_WASM_BUILD=1 cargo build --release -Z sparse-registry
Expand All @@ -65,7 +73,11 @@ jobs:
- name: Setup DVC
uses: iterative/setup-dvc@v1
- name: Fetch Fixtures
run: ./scripts/fetch-fixtures.sh
uses: nick-fields/retry@v2
with:
max_attempts: 10
timeout_minutes: 30
command: dvc pull -v
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
Expand Down Expand Up @@ -96,18 +108,5 @@ jobs:
needs: [check-format, check-build, test]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set-Up
run: sudo apt install -y cmake pkg-config libssl-dev git build-essential clang libclang-dev curl protobuf-compiler
- name: Setup DVC
uses: iterative/setup-dvc@v1
- name: Fetch Fixtures
run: ./scripts/fetch-fixtures.sh
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
- name: Install cargo-nextest
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-nextest
- name: All Done
run: echo "All Done"
9 changes: 6 additions & 3 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,18 @@ jobs:
uses: iterative/setup-dvc@v1

- name: Fetch Fixtures
run: ./scripts/fetch-fixtures.sh
uses: nick-fields/retry@v2
with:
max_attempts: 10
timeout_minutes: 30
command: dvc pull -v

- name: Install apt dependencies
run: |
sudo apt-get update && \
sudo apt-get install -y clang libssl-dev llvm libudev-dev libgmp3-dev protobuf-compiler && \
sudo rm -rf /var/lib/apt/lists/*



- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0

Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,4 @@
**/node_modules
types/build
types/ts-types
.dvc/
solidity-fixtures
.direnv
9 changes: 0 additions & 9 deletions .gitmodules

This file was deleted.

Loading