-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Add dynamic domain separator hash generation based on ERC-5267 #5908
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
base: master
Are you sure you want to change the base?
Add dynamic domain separator hash generation based on ERC-5267 #5908
Conversation
|
Reviewer's GuideIntroduces a dynamic EIP-712 domain separator generator that reads an Class diagram for updated MessageHashUtils libraryclassDiagram
class MessageHashUtils {
+toDomainSeparator(eip712Domain: function) bytes32
-_buildDynamicTypeHash(ptr: bytes32, fields: bytes1) (typePtr: bytes32, hash: bytes32)
-_buildDynamicDomainSeparatorHash(ptr: bytes32, typePtr: bytes32, typeHash: bytes32, fields: bytes1, name: string, version: string, chainId: uint256, verifyingContract: address, salt: bytes32, extensions: uint256[]) bytes32
}
MessageHashUtils ..> Memory : uses
MessageHashUtils ..> Strings : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Fixes #4318
PR Checklist
npx changeset add
)Summary by Sourcery
Add support for dynamic EIP-712 domain separator generation using ERC-5267 bit flags
New Features: