Skip to content
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

Implement signTypedData across all different wallets/signers #5311

Merged
merged 5 commits into from
Oct 15, 2020

Conversation

bowd
Copy link
Contributor

@bowd bowd commented Oct 13, 2020

Description

While putting together the DevDay3 demo for fee-less onboarding I realised that the signTypedData function of the LocalWallet is using that wrong approach when we created a valid EIP712 hash and then wrapped that in an Ethereum personal message hash. I hacked the fix for the demo but I wanted to come back and revisit this and implement the right hashing pattern across the wallet/signer combos that we support.

I know @AlexBHarley you were looking at parts of this recently, I'm not sure if we want to approach this differently but I took a stab at this draft implementation to start the conversation.

Tested

Haven't added specs yet because I wasn't sure if we're going with a different approach but wanted to start the conv with this PR

Backwards compatibility

💀 The signTypedData backwards compatibility on LocalWallet is broken. We need to figure out what the implications of that are - I couldn't find a usage of this.

@bowd bowd requested review from nambrot and AlexBHarley and removed request for timmoreton, mcortesi, jmrossy and cmcewen October 13, 2020 12:19
@bowd bowd mentioned this pull request Oct 13, 2020
@bowd bowd merged commit b84e108 into master Oct 15, 2020
@aaronmgdr aaronmgdr deleted the bowd/eip712-typed-data-signing branch December 16, 2021 23:17
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