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

BIP32/secp256k1/keyPair preparation #915

Merged
merged 2 commits into from
Oct 30, 2017
Merged

BIP32/secp256k1/keyPair preparation #915

merged 2 commits into from
Oct 30, 2017

Conversation

dcousens
Copy link
Contributor

@dcousens dcousens commented Oct 19, 2017

As we move towards moving HDNode to bip32, and supporting secp256k1, I'm putting this PR up so we can move forward on those API's by liberating the type signature of TransactionBuilder.prototype.sign a little bit.

This would simultaneously allow HDKey to inter-operate with TransactionBuilder, supporting secp256k1 signing operations near-immediately for those who use that module.
And soon-thereafter for our own new HDNode module.

toRSBuffer and fromRSBuffer are conceptually part of #459, for the 4.0.0 API.
That is, with ECSignature removed in 4.0.0, we will only interop on "RSBuffer"s, a-kin to secp256k1, and only need to transcode to a script signature when encoding the Transaction itself.

For now, requesting feedback,

TODO

  • Add TransactionBuilder.prototype.sign tests for new functionality

@dcousens dcousens self-assigned this Oct 19, 2017
@dcousens dcousens changed the title External BIP32 preparation External BIP32/secp256k1/keyPair preparation Oct 19, 2017
@dcousens dcousens changed the title External BIP32/secp256k1/keyPair preparation BIP32/secp256k1/keyPair preparation Oct 19, 2017
@dcousens dcousens force-pushed the bip32400 branch 4 times, most recently from af8b6b0 to f93a9ef Compare October 19, 2017 01:11
@junderw
Copy link
Member

junderw commented Oct 19, 2017

SGTM for now.

@dcousens dcousens merged commit 337e6a7 into master Oct 30, 2017
@dcousens dcousens deleted the bip32400 branch October 30, 2017 01:28
@dcousens
Copy link
Contributor Author

Released as 3.3.0

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

Successfully merging this pull request may close these issues.

2 participants