-
Notifications
You must be signed in to change notification settings - Fork 236
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
[Feature] Implement dynamic EIP-712 typed data signing #202
Comments
Hi @DaniPopes, I'd like to take this on. Do you have any suggestions for unit test cases? |
Sure, you can update the alloy/crates/signer/src/wallet/private_key.rs Line 338 in 42213c0
|
WIP branch. When I pass the It looks like there is a mismatch in how the data is being serialized for the When I remove that |
|
you'll want to modify
|
|
Closed in #235 |
Component
signers
Describe the feature you would like
Currently signing EIP-712 typed data can only be done via
sign_typed_data
, which uses aSolStruct
generic type. This method cannot be used if the signer is notSized
, e.g.dyn Signer
.An additional method can be added to both
Signer
s, possibly calledsign_dynamic_typed_data
, which accepts aalloy_dyn_abi::eip712::TypedData
and by default delegates tosign_hash
with the result ofeip712_signing_hash
.This method should be feature-gated to
"eip712"
, just like the existing one.Additional context
No response
The text was updated successfully, but these errors were encountered: