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

rm ecdsa, switch out ECPair secp256k1 impl. #1070

Merged
merged 2 commits into from
May 30, 2018
Merged

rm ecdsa, switch out ECPair secp256k1 impl. #1070

merged 2 commits into from
May 30, 2018

Conversation

dcousens
Copy link
Contributor

@dcousens dcousens commented May 14, 2018

Related to #1045, #1049

@dcousens
Copy link
Contributor Author

Rebased on #1085

@dcousens dcousens force-pushed the tinyec branch 6 times, most recently from 1307a37 to c2662dd Compare May 30, 2018 03:09

assert.strictEqual(keyPair.d.toString(), f.d)
assert.strictEqual(keyPair.privateKey.toString('hex'), f.d)
Copy link

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?

Copy link
Contributor Author

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.

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

Successfully merging this pull request may close these issues.

3 participants