Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
56ef11a
Witness implementation using tetratelabs/wazero
olomix Apr 17, 2023
1eb454a
fix lint errors
olomix Apr 17, 2023
ee09503
Update wazero to v1.0.3
OBrezhniev Apr 25, 2023
066c851
Removed unused constructor parameter sanityCheck from NewCircom2Witne…
olomix Apr 27, 2023
1c6b8e7
Rename test_files directory to testdata. It's more goish.
olomix Apr 27, 2023
1f2c2b6
Make witness calculator pluggable with wasm engine
olomix Apr 27, 2023
15340ba
Merge branch 'main' into wazero_witness
OBrezhniev Apr 28, 2023
b0b9377
Merge fixes
OBrezhniev Apr 28, 2023
dc1c5bd
Upgrade wazero dependency to v1.1.0
olomix May 3, 2023
d1cc6a8
Upgrade wazero dependency to v1.1.0
olomix May 3, 2023
eac5b12
Merge branch 'main' into wazero_witness
olomix May 3, 2023
20c1e5d
merged base branch
olomix May 3, 2023
5f0104a
Merge branch 'main' into pluggable_witness_calc
OBrezhniev May 16, 2023
9be75d1
Put different wasm implementations into different modules
olomix May 18, 2023
103878e
add linter and tests for witness calc
olomix May 18, 2023
7d3d51b
fix test commands
olomix May 18, 2023
b548f2f
rename lint and test ci jobs
olomix May 18, 2023
68eb2c8
Increate timeout for testing witness
olomix May 18, 2023
431fa89
Simplify interface for witness calculator implamentation. Do all seri…
olomix May 22, 2023
b106fd5
go mod tidy
olomix May 22, 2023
6515ad7
Update dependencies
olomix May 23, 2023
d92296c
upgrade dependencies
olomix May 23, 2023
060a2d3
refactor names
olomix May 23, 2023
860eea2
upgrade dependencies
olomix May 23, 2023
c22d4d3
go mod tidy
olomix May 23, 2023
fcfab25
Dump v2 for witness
olomix May 23, 2023
f25cd59
dump wasmer/wazero versions to v2
olomix May 23, 2023
2c28846
fix wazero/wasmer versions
olomix May 23, 2023
eae4f03
Merge pull request #15 from iden3/pluggable_witness_calc_2
olomix May 24, 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
36 changes: 36 additions & 0 deletions .github/workflows/lint-witness.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: lint-witness

on:
push:
branches:
- master
pull_request:

jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.20.4
- name: lint witness
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
working-directory: witness
- name: lint witness/wazero
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
working-directory: witness/wazero
- name: lint witness/wasmer
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
working-directory: witness/wasmer
- name: lint witness/test_wasm_impls
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
working-directory: witness/test_wasm_impls
32 changes: 32 additions & 0 deletions .github/workflows/test-witness.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: test-witness

on:
push:
branches:
- master
pull_request:

jobs:
test:
strategy:
matrix:
containers:
- 1.18.10-bullseye
- 1.19.9-bullseye
- 1.20.4-bullseye
runs-on: ubuntu-20.04
container: golang:${{matrix.containers}}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: cd witness && go test -race -timeout=60s -v ./...
- run: cd witness/wazero && go test -race -timeout=60s -v ./...
- run: cd witness/wasmer && go test -race -timeout=60s -v ./...
- run: cd witness/test_wasm_impls && go test -race -timeout=300s -v ./...
2 changes: 1 addition & 1 deletion witness/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Calculates witness, that can be passed to a prover ([snarkjs](https://github.com
## Installation

```
go get github.com/iden3/go-rapidsnark/witness
go get github.com/iden3/go-rapidsnark/witness/v2
```

## Dependencies
Expand Down
129 changes: 0 additions & 129 deletions witness/circom2witnesscalc_test.go

This file was deleted.

189 changes: 0 additions & 189 deletions witness/circom2witnesscalc_wazero_test.go

This file was deleted.

Loading