Skip to content
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

AA-398: Standardize 'preVerificationGas' verification & create 'debug_bundler_setConfiguration' #228

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

forshtat
Copy link
Contributor

No description provided.

/**
* The size of the dummy 'signature' parameter to be used during estimation.
*/
readonly estimationSignatureSize: number
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should estimate signature size at all: there shouldn't be a "standard" sig size. The wallet should fill it in.
Same for paymaster: if there isn't a pmd, we should estimate based on no pmd, not provide a "hint" that there is a "suggested" value for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not make sense to me. There absolutely is no "standard" sig size and this configuration parameter is exactly the result of that. In order to estimate the preVerificationGas we must know what the size of the signature will be in the future.
When the wallet comes to a point where it needs to estimate the amount of preVerificationGas, if it did not take into account the signature size or the paymasterData size, it would calculate a lower than necessary preVerificationGas and its UserOps would be rejected.

NOTE that the "validation" step absolutely does not rely on estimation-related configuration parameters and relies on the real value.

If you still disagree please elaborate how you expect preVerificationGas to work alternatively.
Thanks.

@forshtat forshtat changed the title AA-398: (WIP) Standardize 'preVerificationGas' verification AA-398: Standardize 'preVerificationGas' verification & create 'debug_bundler_setConfiguration' Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants