Skip to content

Commit

Permalink
Add build tag no_jwz to get rid of dependency on librapidsnark.a if y…
Browse files Browse the repository at this point in the history
…ou don't need it. (#51)
  • Loading branch information
olomix authored May 24, 2024
1 parent 4241566 commit 338ad2f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as below, without any additional terms or conditions.

## Build constraints

### no_jwz

If you do not use the JWZ functionality and do not need to run prover on
JWZ packed messages, you can build the library with the `no_jwz` build tag.
This build tag would prevent the dependency on the `librapidsnark.a` library

## License

© 2023 0kims Association
Expand Down
2 changes: 2 additions & 0 deletions mock/proving.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !no_jwz

// Package mock defines mocks for protocol testing
package mock

Expand Down
2 changes: 2 additions & 0 deletions packers/zkp.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !no_jwz

package packers

import (
Expand Down

0 comments on commit 338ad2f

Please sign in to comment.