A simple, straight-forward Micropayment Channel library in Javascript.
It was difficult understanding what was going on in other libraries. Too much abstraction and reliance on other libraries. Some where just plain difficult to setup at the first place.
-
Simplicity
This repo is really dedicated to solely payment channels, nothing fancy is added to it. However some assumptions had to be made. It is assumed that there does not exist a Wallet out there that could run Payment Channels. So you'll have to fund a "Temporary Client Wallet" to initiate the Payment Channels. Ideas to work around this is welcomed!
-
Down to Bitcoin Basics & Minimalism
A lot of libraries out there do a lot of abstraction for you which is great and all but it is horribly difficult to work if left unmaintained. One such example is Bitcore's Payment Channel JS Library. I've intentionally only stuck to "bitcoinjs-lib" only just for my own sanity's sake and yours if you'd like to know what is going on under the hood.
-
Learning the Basics
I also wrote this so I could learn the fundamentals and it was good practice. That being said, comments are welcomed.
- bitcoinjs-lib
- Request
- Async
- Mocha.js
Given what is said above, I strongly insist that this runs only on "testnet". Even so, please make an effort to not "accidentally" destroy any testnet coins!