ApeWorX / ape-ledger

Ledger Nano S and X account plugin for the Ape Framework
https://www.apeworx.io/
Apache License 2.0
6 stars 7 forks source link

fix: issue with 'v' byte when signing messages #29

Closed antazoey closed 2 years ago

antazoey commented 2 years ago

What I did

Parity bit calculation is not necessary when signing messages it turns out. That is only for certain types of transactions. Thus, it was causing errors. This PR fixes that as well as fixes the CLI helper methods.

How I did it

Delete parity bit calculation for signing messages

How to verify it

Sign messages using various networks

Checklist

antazoey commented 2 years ago

issue happened when using multiple ledger accounts in same script. a8de44c fixes it!

fubuloubu commented 2 years ago

Verified this by signing a message and sending a (mainnet fork) transaction w/ Ledger Nano X