Skip to content

Conversation

@Sjors
Copy link
Contributor

@Sjors Sjors commented Feb 23, 2015

Currently you can only construct an HD node using either a private key or an ECPoint. When using an ECPoint it is turned into an ECPubKey. This pull request makes it possible to use an ECPubKey directly.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 97.89% when pulling 8a38a24 on Sjors:hdnode into f87ac58 on bitcoinjs:master.

@dcousens
Copy link
Contributor

This is already covered in 2.0.0, however, it is useful and for those pre 2.0.0, it'll benefit.
I'll add it in as 1.4.6 1.5.0.

dcousens added a commit that referenced this pull request Feb 24, 2015
Allow constructing HDNode from an ECPubKey.
@dcousens dcousens merged commit 49050f9 into bitcoinjs:master Feb 24, 2015
@dcousens
Copy link
Contributor

Will be adding tests and an assertion that the public key is compressed, post-merge.

dcousens added a commit that referenced this pull request Feb 24, 2015
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.

3 participants