bitcoinjs / ecpair

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

Add modular method of injecting the needed ecc interfaces #3

Closed motorina0 closed 2 years ago

motorina0 commented 2 years ago

Related to comment here: https://github.com/bitcoinjs/bitcoinjs-lib/pull/1742#issuecomment-960578505

Just checking if:

junderw commented 2 years ago

Yes. Go ahead. I tried a couple times but couldn't really find a way that felt good.

Feel free to mess around with the interface / returning something other than the class itself. (ie. bip32 returns an object with methods to get a BIP32 instance, but not the class itself.)

motorina0 commented 2 years ago

PR open. If the changes in the PR are approved then I would also like to update bitcoinjs-message (for selfish reasons). Would that be OK?

junderw commented 2 years ago

Sure. modular ecc is fine, but we can't add schnorr to bitcoinjs-message in any way, since there's no standard for message signing.