-
Notifications
You must be signed in to change notification settings - Fork 0
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
nonce management issues; nit: missing comment, unusual style merits comments #5
Comments
reading this code more carefully, i think what is supposed to happen is that authorized user invokes this means that a user who invokes is this intended behavior? do we want to allow users to create a proxied transaction but change their mind, so they can throw it away and create another? in this case a way for the caller to specify the comments/documentation would be nice. |
Originally the pattern was used so the contract can submit transactions on behalf of a user while also encrypting the calldata (this is why we had a Since then we've implemented native calldata encryption: oasisprotocol/sapphire-paratime#449 so you can use But yes, there are many problems with |
kmaas/contracts/Account.sol
Line 107 in a4b924c
code taken from https://github.com/oasisprotocol/sapphire-paratime/blob/main/examples/onchain-signer/contracts/Gasless.sol#L23
contains the comment
which is useful. why delete it? a pointer to
kmaas/contracts/Account.sol
Line 117 in a4b924c
that
nonce
is incremented far from its use is bad from a stylistic viewpoint, since it's harder to notice if there are other uses ofproxy
that used a differentnonce
in the EthTx or if a future edit removed incrementingnonce
accidentally, reviewers might not notice.are there issues w/ re-entrancy inif signing two transactions with the same nonce is okay there should be a comment, etc.proxy
'saddr.call
possibly getting back to another invocation ofproxy
within the same transaction and causing the same value ofnonce
to be used? this is unclear, and if re-entrancy is prevented somehow there should be a comment, and if it is impossible for some other reason there should be a comment, andThe text was updated successfully, but these errors were encountered: