-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace bcoin with bitcoinjs-lib for deposits (#702)
Refs: #695. This PR replaces the `bcoin` library with `bitcoinjs-lib` for deposits. The functions generally works in the same way as before the change. One difference is that UTXOs for funding the transaction and the value of fee are passed into the function as arguments. In the future, we could consider using [coinselect](https://github.com/bitcoinjs/coinselect) for calculating fee and selecting UTXOs. Another difference is that only one type of funding UTXO is allowed (P2WPKH). Other types should be added along with unit tests.
- Loading branch information
Showing
6 changed files
with
197 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.