-
Notifications
You must be signed in to change notification settings - Fork 538
feat(network): use FullSigner in EthereumWallet to sign data
#2523
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
Conversation
network): use FullSigner in EthereumWallet to sign hashesnetwork): use FullSigner in EthereumWallet to sign typed data
network): use FullSigner in EthereumWallet to sign typed datanetwork): use FullSigner in EthereumWallet to sign data
mattsse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes sense,
some nits, can we also send a patch pr to foundry to make sure this doesn't break anything major?
mattsse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
marking this a blocked for now because breaking, but def something we want to do
Motivation
Currently, the
EthereumWalletencapsulates adyn TxSignerwhich only gives access to transaction signing capabilities and NOT message / hash signing e.g signing eip712 typed data.Solution
FullSignergives access to both tx sign and message signing.FullSignerin dedicated typeArcFullSignerto disambiguate function calls on the signer that are equivalent but from different traits - e.g the.address(..)exists on bothTxSignerandSignerrequiring fully qualified syntax at callsite by the user, usingArcFullSignertype removes the need for that.ArcFullSignerinEthereumWalletsign_hash_withmethodPR Checklist