Interledger.js Ledger Plugin for Bitcoin using CLTV Payment Channels
- Node.js >=v7.10.0
- Bitcoin Cored Node
git clone https://github.com/interledgerjs/ilp-plugin-bitcoin-paychan.git cd ilp-plugin-bitcoin-paychan npm install
How It Works
ilp-plugin-bitcoin-paychan uses simple unidirectional Bitcoin payment channels implemented with CHECKLOCKTIMEVERIFY (CLTV). While the underlying channel is not conditional (i.e. does not use hashlocks), the plugin only sends updates to the channel when it receives the fulfillment from the other party. This means that payments that there is some risk for payments that are in flight. However, the Interledger Protocol isolates participants from risk from indirect peers.
By implementing all of the functions required by the Ledger Plugin Interface, this allows Bitcoin to be used by standard Interledger.js components.
For more information about how Interledger works, see IL-RFC 1: Interledger Architecture.