Re: [Lightning-dev] [1.1] Proposed `funding_cancelled` message

2018-01-19 Thread ZmnSCPxj via Lightning-dev
As mentioned in the text, this is imposed  by you on each peer that connects to 
you. The point is to prevent a single peer from consuming all your memory and 
CPU and prevent you from servicing legitimate peers- i.e. it prevents denial of 
service using a single peer and forces attackers to use a *distributed* denial 
of service.

Regards,
ZmnSCPxj

Sent with [ProtonMail](https://protonmail.com) Secure Email.

 Original Message 
On January 18, 2018 7:03 PM, <7ri...@gmail.com> wrote:

>
>
>> You impose this 25 channels per peer. I start opening a channel to
>> you. Because I did not check mempool or because my fee-estimation algo is
>> bad, I pay too low a fee. I become impatient and bump it up, which you
>> perceive as another open (so it is now 2/25 channels).
>
> It seems, to me, that this example could be pretty easily extended to 1000, 
> or 2000, or -- pretty much anything. In fact, this brings up an important'ish 
> point, possibly. If every channel I "try to open," and then fail to, counts 
> as resources of any kind on the receiver, we've just added a perfect attack 
> surface for a denial of service. However this is arranged, it needs to be 
> arranged in a way that does not have (or at least has a minimal number of) 
> fixed pool of resources/magic numbers of any kind that can be exhausted, 
> after which things "no longer work." To do otherwise is to practically invite 
> someone taking the entire network down with a well-planned/executed process 
> that exhausts this resource across a large number of critical nodes (and 
> there will be critical nodes -- it's just a part of graph theory that this 
> will happen).
>
>  /r___
Lightning-dev mailing list
Lightning-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev


Re: [Lightning-dev] How to use LN

2018-01-19 Thread v e
Thanks christian,

Will do as you suggested. one another question, when you say customers do
you mean end clients who are buying goods and services?

Also i am building an server-client model where i am trying to host
multiple merchants who can accepts payments from end customers.
Does that mean i need to have (bitcoins node, c-lightning + charge) node
per merchant?


On Fri, Jan 19, 2018 at 3:31 AM, Christian Decker <
decker.christ...@gmail.com> wrote:

> Hi v e,
>
> in order to use Lightning Charge you will need the following:
>
>  - A full bitcoind node sync'd with the network
>  - A c-lightning node
>  - npm + lightgning-charge running to give you access to the REST API
>
> We currently do not have (and may never have) bindings for bitcoinj.
>
> Re invoices: the invoices are tracked by c-lightning and you can store a
> reference to them in your store using the `payment_hash`. Customers will
> need to have their own Lightning client and some channels open to the
> network in order to send payments.
>
> Cheers,
> Christian
>
> v e  writes:
> > Hi,
> >
> > I am building merchant app and consumer wallet app using
> > https://bitcoinj.github.io APIs for wallet creation. Now I want to use
> LN
> > built by your team. I am looking at this API
> > https://github.com/ElementsProject/lightning-charge
> >
> > and have few questions:
> >
> > * Do i need to run bitcoin core node?
> > * I see invoice apis, I assume that the invoice is generated at the
> > merchant wallet app. How do i tie the merchant wallet to the invoice?
> >
> > * similarly how do i send coins from consumer wallet to the created
> invoice?
> >
> > Sorry I am very new to this and apologize my assumptions.
> >
> > Any help is highly appreciated.
> > ___
> > Lightning-dev mailing list
> > Lightning-dev@lists.linuxfoundation.org
> > https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev
>
___
Lightning-dev mailing list
Lightning-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev


Re: [Lightning-dev] How to use LN

2018-01-19 Thread Christian Decker
Hi v e,

in order to use Lightning Charge you will need the following:

 - A full bitcoind node sync'd with the network
 - A c-lightning node
 - npm + lightgning-charge running to give you access to the REST API

We currently do not have (and may never have) bindings for bitcoinj.

Re invoices: the invoices are tracked by c-lightning and you can store a
reference to them in your store using the `payment_hash`. Customers will
need to have their own Lightning client and some channels open to the
network in order to send payments.

Cheers,
Christian

v e  writes:
> Hi,
>
> I am building merchant app and consumer wallet app using
> https://bitcoinj.github.io APIs for wallet creation. Now I want to use LN
> built by your team. I am looking at this API
> https://github.com/ElementsProject/lightning-charge
>
> and have few questions:
>
> * Do i need to run bitcoin core node?
> * I see invoice apis, I assume that the invoice is generated at the
> merchant wallet app. How do i tie the merchant wallet to the invoice?
>
> * similarly how do i send coins from consumer wallet to the created invoice?
>
> Sorry I am very new to this and apologize my assumptions.
>
> Any help is highly appreciated.
> ___
> Lightning-dev mailing list
> Lightning-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev
___
Lightning-dev mailing list
Lightning-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev