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

Fix Dcent hardware wallet personalSign #61

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

jessgusclark
Copy link
Member

@jessgusclark jessgusclark commented Aug 5, 2022

D'Cent wallet expects the string coming in to be a hex value and it was assumed the value was a pure string. In the research with Ethers.js and Web3.js those libraries were converting it to hex before sending it to the provider so the previous implementation would "double hex it". This was incorrect.

This fix checks if the value is a hex value and if not converts it.

Tested with provider.request, Ethers.js, and Web3.js using the Basic Sample Dapp locally.

This will resolve #60 and resolve rsksmart/rLogin#284

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.

D'Cent signing issue reported in rLogin D'Cent HW - Problem - Sign Message
1 participant