rename
Jacob Jackson jacob@as-MacBook-Air.local
Tue, 04 Oct 2022 19:43:22 +0000
2 files changed,
2 insertions(+),
2 deletions(-)
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])