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

[Bug]: change in behavior of personal_sign on Ledger, in v10.31.0 #19568

Closed
firnprotocol opened this issue Jun 12, 2023 · 2 comments
Closed

[Bug]: change in behavior of personal_sign on Ledger, in v10.31.0 #19568

firnprotocol opened this issue Jun 12, 2023 · 2 comments

Comments

@firnprotocol
Copy link

Describe the bug

as of v10.31.0, but not for versions strictly before it, there was a change in the output of personal_sign, which takes place only on Ledger devices.

prior to the upgrade, the final v byte of the signature was either 0x00 or 0x01. now, it is either 0x1b or 0x1c.

this appears to bring the behavior on Ledger in line with for regular EOAs, which are either 0x1b or 0x1c both before and after v10.31.0.

can someone please explain this? thank you very much.

Steps to reproduce

go to https://etherscan.io/verifiedSignatures#. click "Sign Message". follow the steps to log in using MetaMask. enter an arbitrary string for your message.

observe the last byte (i.e., last two hexits) of the raw signature output. if you're signing using a Ledger, it will be either 0x00 or 0x01 pre-upgrade, and either 0x1b or 0x1c post. for a non-ledger account, it'll be either 0x1b or 0x1c both pre-and post.

Error messages or log output

No response

Version

v10.31.0

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

Ledger

Additional context

No response

@firnprotocol
Copy link
Author

to clarify, it's not clear that the new behavior is the bug—indeed, perhaps the old behavior was the bug. i would just like an explanation, if possible—i am not able to find anything in the release description.

@plasmacorral
Copy link
Contributor

Apologies that this was missed in the release description. This was addressed in a change to the keyring, you can find more information here: MetaMask/eth-ledger-bridge-keyring#152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants