-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consider using bitcore + bitcore-channel #2
Comments
Hey Manuel, Also, as I already implemented most of the payment channel, but left out some parts, I'm interested in if you have a way to handle it: for pushing the transactions to the blockchain, I thought of using chain.com. I see that bitcore has insight API, but I don't want users to run their own bitcoind (it would be better to have a Javascript SPV wallet, but until then chain.com seems the best way to publish a transaction). The harder part is accepting the payment. I don't know how the payment protocol works, but I want to create a transaction with greenaddress (which guarantees not to double spend, thereby allowing instant transactions...I don't know any other instant transaction provider, although the greenaddress API is not the simplest), and after the refund transaction is signed by the server, I want the user to sign the original transaction. Do you know an elegant way to implement this? Or are you planning to create an API for this as well? |
Here's the updated Regarding publishing the tx to the network, you can use https://github.com/bitpay/bitcore-explorers, and you don't need to configure anything. It'll just work using bitpays' public insight server (https://insight.bitpay.com/), no need to setup Bitcoin Core or insight locally. For accepting payments, you can also use Regarding instant payments, we still don't have any open-source solution there. We're working on http://impulse.is/, but it's still early in development. Final comment: You might want to check the code in https://github.com/streamium/paystream, which uses |
Thanks, it sounds great! It's hard to see which library is the best until I use it. |
We have a payment channels implementation in
bitcore
: https://github.com/bitpay/bitcore-channelBitcore also provides some built-in and well-tested functionality I see you are implementing. For example, creating multisig scripts:
https://github.com/bitcoin-torrent/bitcoin-torrent/blob/master/bitcointorrent.js#L160
our version:
https://github.com/bitpay/bitcore/blob/master/lib/script/script.js#L541
Let us know if you're interested and we'd be happy to help in anything possible :)
The text was updated successfully, but these errors were encountered: