mirror of
https://github.com/logos-storage/gnark-plonky2-verifier.git
synced 2026-01-07 23:53:08 +00:00
rename
This commit is contained in:
parent
61568028c3
commit
39247e8a12
@ -15,7 +15,7 @@ func _right_rotate(n [64]frontend.Variable, bits int) [64]frontend.Variable {
|
||||
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)
|
||||
}
|
||||
@ -15,7 +15,7 @@ type Sha512Circuit struct {
|
||||
}
|
||||
|
||||
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])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user