Skip to content

Conversation

MozirDmitriy
Copy link

Update Flashbots signing to use EIP-191 over the 32-byte keccak256 hash of the JSON request body instead of signing the ASCII hex string. This aligns with Flashbots relay expectations (equivalent to signMessage(arrayify(keccak256(body))) in ethers), improves compatibility, and avoids signatures being rejected by the relay. No behavior changes elsewhere. Lints pass.

@dancoombs
Copy link
Collaborator

Is this fix in response to a particular bug? Did something change in the Flashbots signature expectation? I believe this code has generally worked in the past.

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