Skip to content

Conversation

blmalone
Copy link
Contributor

@blmalone blmalone commented Jun 24, 2025

TL;DR

Add support for EIP-712 structured data signing for Safe transactions, allowing signers to use tools that support typed data signing.

What changed?

  • Added a new environment variable EIP712_ENCODED_DATA_TO_SIGN to control whether to use EIP-712 typed data JSON for signing or just the domain and message hashes (default)
  • Implemented encodeEIP712Json to generate properly formatted EIP-712 JSON for Safe transactions
  • Renamed and enhanced getDomainAndMessageHashFromEncodedTransactionData to getDomainAndMessageHashFromDataToSign to handle both formats
  • Updated the MultisigTask to support both signing methods while ensuring they produce the same hashes
  • Added comprehensive tests for the new EIP-712 JSON signing functionality

@blmalone
Copy link
Contributor Author

No immediate need to introduce this functionality, closing for now.

@blmalone blmalone closed this Aug 12, 2025
@blmalone blmalone reopened this Sep 23, 2025
@blmalone blmalone closed this Sep 23, 2025
@blmalone blmalone reopened this Sep 28, 2025
@blmalone blmalone changed the base branch from main to graphite-base/1101 September 29, 2025 18:33
@blmalone blmalone changed the base branch from graphite-base/1101 to bm/add-trezor-support September 29, 2025 18:33
Copy link
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@blmalone blmalone mentioned this pull request Sep 29, 2025
10 tasks
@blmalone blmalone requested a review from Ethnical September 29, 2025 20:13
@blmalone blmalone changed the title feat(eip712): Migrate to cast wallet sign for sigining eip712 data feat(eip712): enable eip712 typed data to be provided to eip712sign lib Oct 1, 2025
@Ethnical
Copy link
Contributor

Ethnical commented Oct 6, 2025

I am taking the lead back on this.
Thank for the work here @blmalone :)

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