balance-io / balance-wallet

A mobile wallet for dapps & tokens.
https://balance.io
GNU General Public License v3.0
94 stars 38 forks source link

🔛 Connext State Channel Integration #64

Open ricburton opened 6 years ago

ricburton commented 6 years ago

We want to make it possible for people to send payments to each other instantly and for free. State channel hubs can help this. I do not understand state channel hubs but the folks at Connext do.

Useful links: https://medium.com/spankchain/a-state-channels-adventure-with-counterfactual-rick-part-1-ce68e16252ea https://github.com/ConnextProject/connext-client https://github.com/SpankChain/SpankCard

dguloylwsaalf_r

ArjunBhuptani commented 6 years ago

So I think there's two main tasks/value props here:

  1. Using Balance as a wallet to use dApps that have Connext Hubs. This means Balance users will have ultra-simple UX for interacting with Connext channels (they probably don't even need to know that they're using channels). Example: check out spankcard

This step would use our open source Connext Client which we can work on turning into a proper wallet SDK with your help.

  1. Setting up Balance as a Connext Hub so that Balance users can easily pay each other for free. A Balance Hub would have more extensive requirements than just integrating the Connext Client. This would include you guys having to lock up collateral in your Hub equal to the volume that is transacted by your users, in order to guarantee that your users could be paid out in byzantine cases (this is how it stays trustless). We also plan to charge a licensing fee for Hubs, though we're still figuring out how to do this in the lowest friction way.

Also leaving this here: https://docs.connext.network

Note, once we're further along with setting up Hubs, we can also do step 3: connecting a Balance Hub with other Connext Hubs. This would mean that users could deposit money into a "checking account" in your wallet, and then pay for any other service that uses Connext completely for free.

ArjunBhuptani commented 6 years ago
  1. Can be made simpler if we just integrate upstream with WalletConnect. Are you guys using that in your stack?
hthillman commented 5 years ago

Update from the Connext team:

We've finished up local and testnet deployments of our Hubs and would love to talk about how an integration with Balance might look. Dropping some links below:

Updated docs: https://docs.connext.network/ Hub setup: https://github.com/ConnextProject/indra Sample implementation: https://github.com/ConnextProject/payment-starter-kit