Skip to content

Commit

Permalink
Fixed V3a Backend (#297)
Browse files Browse the repository at this point in the history
* refactor: removed contracts in V3

* fix: backend for V3; removed Summa contract and relateds; updated README

* fix: gh workflow

* fix: update README for fixed SRS files for hyperplonk backend

* refactor: verifier generate verifier params with SRS in the summa solvency flow example
  • Loading branch information
sifnoc committed Jul 26, 2024
1 parent 9dca5da commit cf179ed
Show file tree
Hide file tree
Showing 62 changed files with 906 additions and 59,585 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/benchmark.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/contracts.yml

This file was deleted.

58 changes: 17 additions & 41 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,53 +14,29 @@ env:
CARGO_TERM_COLOR: always

jobs:
wakeup:
test-zk-prover:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v3
- name: Test Zk Prover
run: |
cd prover
cargo test --release --features dev-graph -- --nocapture
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::490752553772:role/summa-solvency-ec2-slc
role-duration-seconds: 900
aws-region: us-west-2

- name: Wakeup runner
run: .github/scripts/wakeup.sh

build:
runs-on: [summa-solvency-runner]
needs: [wakeup]

test-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set Environment
run: echo "PATH=/home/ubuntu/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >> "$GITHUB_ENV"

- name: Install solc
run: (hash svm 2>/dev/null || cargo install --version 0.2.23 svm-rs) && svm install 0.8.20 && solc --version

- name: Test Prover
- name: Test backend
run: |
cd prover
cd backend
cargo test --release -- --nocapture
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

# TODO restore workflow
# - name: Test backend
# run: |
# cd backend
# cargo test --release -- --nocapture

# - name: Test example
# run: |
# cd backend
# cargo run --release --example summa_solvency_flow
test-backend-examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test backend example
run: |
cd backend
cargo run --release --example summa_solvency_flow
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ A monorepo for Summa, zk proof of solvency protocol

### Subdirectories

- `prover`: Halo2 based zk prover and KZG polynomial interpolation for Summa
- `contracts`: Solidity smart contracts for Summa
- `backend` : Rust API to interact with Summa
- `prover`: HyperPlonk based ZK prover and Multilinear KZG for Summa
- `backend` : Rust API to interact with Summa prover and verifier

## License

Expand Down
2 changes: 1 addition & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# will have compiled files and executables
/target
.env
*_proof.json
*.json
Loading

0 comments on commit cf179ed

Please sign in to comment.