You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now this hash function is defined and initialized in operator.go, where it is being used for different kind of things, i.e., once you want to handle multiple transaction, where you sign/verify multiple transactions while also updating the state (e.g. in a loop where you create a transaction sign it and then update the state), the hash function will have input from previous (operator) operations and throw errors.
My workaround
I fixed this issue by defining another hash function in transfer.go and using that instead of hfunc.
Or was hfunc being used there for a reason? If so, please do enlighten me.
The text was updated successfully, but these errors were encountered:
Engeloid
changed the title
(Rollup example) Hash function used in multiple locations but not Reset properly
bug: (Rollup example) Hash function used in multiple locations but not Reset properly
Jan 22, 2024
Below it can be seen, that
hfunc
is used in theSign()
andVerify()
function in transfer.go from the rollup example.gnark/examples/rollup/transfer.go
Line 73 in 3d7377b
Now this hash function is defined and initialized in operator.go, where it is being used for different kind of things, i.e., once you want to handle multiple transaction, where you sign/verify multiple transactions while also updating the state (e.g. in a loop where you create a transaction sign it and then update the state), the hash function will have input from previous (operator) operations and throw errors.
My workaround
I fixed this issue by defining another hash function in transfer.go and using that instead of
hfunc
.Or was
hfunc
being used there for a reason? If so, please do enlighten me.The text was updated successfully, but these errors were encountered: