Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/lint-witness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test-linux-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
go-version: [ 1.18.x ]
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Install Go
if: success()
Expand All @@ -29,4 +29,3 @@ jobs:
run: cat /proc/cpuinfo
- name: Run tests
run: cd tests && go test -v -covermode=count

2 changes: 1 addition & 1 deletion .github/workflows/test-linux-noasm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
go-version: [ 1.18.x ]
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Install Go
if: success()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-witness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- 1.21.13
- 1.22.7
- 1.23.1
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
container: golang:${{matrix.containers}}
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions prover/rapidsnark.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !prover_disabled

package prover

/*
Expand Down
19 changes: 19 additions & 0 deletions prover/rapidsnark_mock.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//go:build prover_disabled

package prover

import (
"errors"

"github.com/iden3/go-rapidsnark/types"
)

// Groth16Prover generates proof and returns proof and pubsignals as types.ZKProof
func Groth16Prover(zkey []byte, witness []byte) (proof *types.ZKProof, err error) {
return nil, errors.New("prover disabled: 'prover_disabled' build flag was passed")
}

// Groth16ProverRaw generates proof and returns proof and pubsignals as json string
func Groth16ProverRaw(zkey []byte, witness []byte) (proof string, publicInputs string, err error) {
return "", "", errors.New("prover disabled: 'prover_disabled' build flag was passed")
}
Loading