forked from TrueCloudLab/neoneo-go
zkpbinding: format formulae in Verifier template
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
b7e019e7ef
commit
ca71bd51d3
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,8 @@ var (
|
||||||
// follows the Groth-16 proving system and is taken from the
|
// follows the Groth-16 proving system and is taken from the
|
||||||
// https://github.com/neo-project/neo/issues/2647#issuecomment-1002893109 without
|
// https://github.com/neo-project/neo/issues/2647#issuecomment-1002893109 without
|
||||||
// any changes. Verification process checks the following equality:
|
// any changes. Verification process checks the following equality:
|
||||||
// A*B = alpha*beta + sum(pub_input[i]*(beta*u_i(x)+alpha*v_i(x)+w_i(x))/gamma)*gamma + C*delta
|
//
|
||||||
|
// A * B = alpha * beta + sum(pub_input[i] * (beta * u_i(x) + alpha * v_i(x) + w_i(x)) / gamma) * gamma + C * delta
|
||||||
func VerifyProof(a []byte, b []byte, c []byte, publicInput [][]byte) bool {
|
func VerifyProof(a []byte, b []byte, c []byte, publicInput [][]byte) bool {
|
||||||
alphaPoint := crypto.Bls12381Deserialize(alpha)
|
alphaPoint := crypto.Bls12381Deserialize(alpha)
|
||||||
betaPoint := crypto.Bls12381Deserialize(beta)
|
betaPoint := crypto.Bls12381Deserialize(beta)
|
||||||
|
|
Loading…
Reference in a new issue