arnaucube
arnaucube/gnark-plonky2-verifierPublic Self-hosted repository
rename
Jacob Jackson jacob@as-MacBook-Air.local
Tue, 04 Oct 2022 19:43:22 +0000
commit

39247e8a1231c96a83f56cccb253c5337747b031

parent

61568028c3016a2f5cf6e0e63cb691dc9e36114b

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M sha512/pysha512.go → sha512/sha512.go

@@ -15,7 +15,7 @@ }

return result } -func PySha512(api frontend.API, in [] frontend.Variable) ([512] frontend.Variable) { +func Sha512(api frontend.API, in [] frontend.Variable) ([512] frontend.Variable) { _not := func(x [64]frontend.Variable) [64]frontend.Variable { return not(api, x) }
M sha512/sha_test.go → sha512/sha_test.go

@@ -15,7 +15,7 @@ out []frontend.Variable `gnark:"out"`

} func (circuit *Sha512Circuit) Define(api frontend.API) error { - res := PySha512(api, circuit.in) + res := Sha512(api, circuit.in) if len(res) != 512 { panic("bad length") } for i := 0; i < 512; i++ { api.AssertIsEqual(res[i], circuit.out[i])