-
Notifications
You must be signed in to change notification settings - Fork 1k
Eliminates MASP VP's requirement for all debited accounts to sign Tx #3516
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3516 +/- ##
==========================================
- Coverage 53.48% 53.47% -0.02%
==========================================
Files 320 320
Lines 110000 110000
==========================================
- Hits 58832 58819 -13
- Misses 51168 51181 +13 ☔ View full report in Codecov by Sentry. |
|
Is this still required? I think with the new logic we don't need this: in fact, this might require some additional authorizers which are not needed |
I am not sure if the VP is as correct if we remove this insertion code. It might be, but I'm not sure yet. How are you reasoning about this? My thinking is as follows: so currently the overall logic is to validate a What issues come up when integrating this PR with outsourcing? My thinking is that the above insertion is only triggered when a |
I believe your reasoning is correct, never mind. What happened was that in the rebase branch I've removed the commit that returns the debited accounts from Thinking twice about it though, as you say, I'm not sure this is always the case. Actually by running a simple calculation on a case where the shielding is redirected (someone shields on behalf of the original sender) the checks don't run for neither the original sender nor the new one if we remove that line. Now I'm not sure this is needed cause I can't see anyone tampering with a transaction to shield tokens on behalf of someone else and also we usually only requires extra validation for debit but I think keeping it is a safe fallback (also, we still want to prevent any sort of tampering) |
* murisi/reduce-masp-vp-signatures: Added a changelog entry. Stop requiring authorization signatures for non-MASP related balance changes.
Describe your changes
This PR attempts to eliminate the MASP VP's requirement (mentioned in #3372 (comment)) for all debited accounts to sign a
Tx. This is done by requiring only those accounts whose balances are modified by the innerTransactionand whose balances decrease to sign the transaction. The justification for this change is that in the case of accounts not modified by the innerTransaction, other VPs already validate all changes pertaining to the given address.Indicate on which release or other PRs this topic is based on
Namada 0.40.0
Checklist before merging to
draft