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

feat(world-chain-builder): Enable PBH support for 4337 UserOps #67

Open
1 task done
0xKitsune opened this issue Nov 21, 2024 · 0 comments
Open
1 task done

feat(world-chain-builder): Enable PBH support for 4337 UserOps #67

0xKitsune opened this issue Nov 21, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@0xKitsune
Copy link
Contributor

0xKitsune commented Nov 21, 2024

Currently, the World Chain Builder enables priority blockspace for humans via the PBH Tx envelope, allowing users to provide a World ID proof, setting the signal of the proof as the transaction hash.

While this mechanism enables any user with a valid World ID to create a priority transaction, this requires that a user has Eth in their account to pay for gas. PBH validation should also be extended to support 4337 UserOps, allowing a third party to submit a single UserOp with top of block priority on behalf of a World ID user.

4337 PBH Validation

A valid PBH UserOp needs to adhere to the following:

  • The signal of the proof must be the hash of all 4337 UserOp fields concatenated together
  • The to address of the transaction must be the Entrypoint contract
  • The UserOp signature should be validated to ensure the proper sender and nonce is specified.
  • The transaction calldata can only specify a single UserOp. Transactions that bundle multiple UserOps should not be provided priority blockspace

Tasks

@0xOsiris 0xOsiris self-assigned this Nov 21, 2024
@0xOsiris 0xOsiris added the enhancement New feature or request label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants