Skip to content

Commit

Permalink
XXX: dummy groth16 commitment for tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokub committed Feb 16, 2023
1 parent 435ff80 commit 4b056e1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/cs/r1cs/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,12 @@ func (builder *builder) getCommittedVariables(i *constraint.Commitment) []fronte
return res
}

func bsb22CommitmentComputePlaceholder(*big.Int, []*big.Int, []*big.Int) error {
return fmt.Errorf("placeholder function: to be replaced by commitment computation")
func bsb22CommitmentComputePlaceholder(_ *big.Int, _ []*big.Int, output []*big.Int) error {
output[0].SetInt64(0)
return nil
// return fmt.Errorf("placeholder function: to be replaced by commitment computation")
}

func init() {
hint.Register(bsb22CommitmentComputePlaceholder)
}

0 comments on commit 4b056e1

Please sign in to comment.