Account Abstraction transaction verification and fee payment #25
Replies: 2 comments
-
One problem that I don't have a solution for, is how to pay fees for the operators for transactions that are executed locally. Perhaps we should be able to wrap these proofs in another transaction, where the outer transaction exists only to pay for the proof inclusion. |
Beta Was this translation helpful? Give feedback.
-
There is probably a bigger discussion here on the overall fee model. I've been trying to delay this - probably even to after the testnet, but in general, there are different types of fees and maybe we'll unify them into a single gas model, but maybe not. These fees apply to different types of transactions differently:
|
Beta Was this translation helpful? Give feedback.
-
This is just a rough outline I'm writing to start talking about the problem.
I believe we want to achieve the following:
Additionally:
One solution for the above is to execute prior to the transaction prologue, code that will 1. call the account's signature verification 2. verify the fee schedule configured by the user can be paid. i.e. the user would provide a vault like structure as part of the transaction, and the code would verify these amounts can be extract from the account's vault. 3. check the provided account hash matches the current account hash (we can do without a nonce in this case, the nonce would only be necessary if we want to support free transactions, to force a change into the account's state). Then as part after the transaction epilogue, the fee schedule vault would be put in a note to transfer the fees to the operator's vault.
Note: This is intentionally hand wavy and I have not thoroughly thought about how to implement this.
Beta Was this translation helpful? Give feedback.
All reactions