-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signing with nonce #96
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make sure to bound more nonce updates for all proposals necessary including this one?
function transferOwnershipWithSignature(address newOwner, bytes memory sig) public { | ||
function transferOwnershipWithSignature(address newOwner, uint32 nonce, bytes memory sig) public { | ||
require(refreshNonce < nonce, "Invalid nonce"); | ||
require(nonce <= refreshNonce + 1, "Nonce must increment by 1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add checks that nonce doesn't increase tremendously (causing overflow attack).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops I had it backwards. This looks good.
What does hound more nonce updates mean? I didn't understand. |
Bound* |
Ah ok cool. |
Signing
hash(nonce, publicKey)