bitcoinjs / ecpair

The ECPair module for bitcoinjs-lib
MIT License
17 stars 23 forks source link

feat: decouple ecpair from tiny-secp256k1 (allow injecting ecc lib) #4

Closed motorina0 closed 2 years ago

motorina0 commented 2 years ago

Closes: https://github.com/bitcoinjs/ecpair/issues/3

Summary

The changes are split in 4 commits which can be cherry picked if needed.

Further comments

junderw commented 2 years ago

Signer and SignerAsync are interfaces that are being used in bitcoinjs-lib in Psbt etc... so adding more constraints would be a breaking change and we don't want to do that.

Right now, just leave those interfaces alone. Once proper taproot is supported, we will probably add a new interface for schnorr.

junderw commented 2 years ago

linter is failing... (tslint should exclude test files tbh)

motorina0 commented 2 years ago

Updated:

junderw commented 2 years ago

Please remove signSchnorr from Signer as well. And add it to ECPairInterface instead.

motorina0 commented 2 years ago

Please remove signSchnorr from Signer as well. And add it to ECPairInterface instead.

Done!

junderw commented 2 years ago

LGTM other than the README stuff.

motorina0 commented 2 years ago

LGTM other than the README stuff.

Great! README file code sample fixed.

junderw commented 2 years ago

Thanks a ton. Published as 2.0.0