-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
rm ecdsa, switch out ECPair secp256k1 impl. #1070
Conversation
2666b68
to
efd867f
Compare
07e5b2f
to
f33f20d
Compare
Rebased on #1085 |
1307a37
to
c2662dd
Compare
|
||
assert.strictEqual(keyPair.d.toString(), f.d) | ||
assert.strictEqual(keyPair.privateKey.toString('hex'), f.d) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hex will not be padded so it may contain fewer than 64 characters for some private keys, such as this LTC private key: T34MuTEaRxt3kj6dn2MMHbvSPQHrsBjKrdz6WtwrLe1KzCzYkMup.
Shouldn't it be padded to conform to 64 characters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@woodser .privateKey
is enforced to be 256-bits, or 32-bytes in .length
.
Related to #1045, #1049