ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.85k stars 902 forks source link

Is it possible to make payment channel by both participants' funding? #2107

Open jiyu3 opened 5 years ago

jiyu3 commented 5 years ago

Is it possible to make payment channel by both participants' funding? For example, I fund 2mBTC, my friend fund 1mBTC, then open channel.

cdecker commented 5 years ago

This is currently being specified by all implementations. One the spec is finalized we can implement it.

ZmnSCPxj commented 5 years ago

In the specific case of connecting with a trusted friend, the friend can pay you 1mBTC onchain, issue you an invoice for 1 mBTC, then you open 3mBTC to your friend and pay back the 1mBTC invoice.

niftynei commented 5 years ago

There's an open PR specifying exactly this kind of behavior on the rfc's repo https://github.com/lightningnetwork/lightning-rfc/pull/524

ZmnSCPxj commented 4 years ago

Xref. #3418