Re: [Lightning-dev] Local Reputation to Mitigate Slow Jamming

2023-03-06 Thread Clara Shikhelman
Hi, This is unclear on which criterias the endorsement decision is made > A node endorses an HTLC if and only if it came from a neighbour that has reputation 1 that endorsed it. > Additionally, this is unclear how the available liquidity/slots on a given > outbound channel are initially

Re: [Lightning-dev] Local Reputation to Mitigate Slow Jamming

2023-03-06 Thread Antoine Riard
Hi all, My understanding of the local reputation channel is the following, when Bob receives a HTLC forwarding request from Alice to Caroll: - if Alice has reputation of 1 and Alice endorses the transaction, Bob forwards and endorses the HTLC to Caroll - else if the HTLC amount is under the

Re: [Lightning-dev] Local Reputation to Mitigate Slow Jamming

2023-03-04 Thread Vincenzo Palazzo
Hi all, Sorry if I jump in the middle of the party! > Could you explain the benefits of continuous solutions over binary? This is > something we should definitely understand before going in a more > complicated direction. I completly agree! Why we will not propose an practical definition of the

Re: [Lightning-dev] Local Reputation to Mitigate Slow Jamming

2023-03-03 Thread Clara Shikhelman
> With a binary solution a single attacker can easily fill your quota of > low-confidence HTLCs and then all low-reputation nodes are blocked. But not > all of them are attackers, some of them just don't send you enough traffic > to get a high reputation for instance and you're going to block them

Re: [Lightning-dev] Local Reputation to Mitigate Slow Jamming

2023-03-03 Thread Thomas HUET
The benefit is that you can be more precise when blocking. With a binary solution a single attacker can easily fill your quota of low-confidence HTLCs and then all low-reputation nodes are blocked. But not all of them are attackers, some of them just don't send you enough traffic to get a high

Re: [Lightning-dev] Local Reputation to Mitigate Slow Jamming

2023-03-03 Thread Clara Shikhelman
Could you explain the benefits of continuous solutions over binary? This is something we should definitely understand before going in a more complicated direction. Also, I'm still not sure that the rational behaviour is to report *c* truthfully. On Fri, Mar 3, 2023 at 11:51 AM Thomas HUET

Re: [Lightning-dev] Local Reputation to Mitigate Slow Jamming

2023-03-03 Thread Thomas HUET
By giving a high confidence to HTLCs you increase the chance that they are relayed which should be your goal. Having a high reputation is not a goal in itself, it's just a way to make your HTLCs more likely to be relayed. If you always report confidence 0, then yes you will have a reputation of 1

Re: [Lightning-dev] Local Reputation to Mitigate Slow Jamming

2023-03-03 Thread Clara Shikhelman
Hi Thomas, Thanks for the example. - If c < p then yes it gives it a higher reputation but the reputation is > capped at 1 anyway, so by underestimating the confidence the node doesn't > gain anything. > Is there anything to gain from giving high confidence? By doing this, you risk lowering your

Re: [Lightning-dev] Local Reputation to Mitigate Slow Jamming

2023-03-02 Thread Thomas HUET
To give a very simple example, imagine a node that sends the same confidence c for all HTLCs. We want c to be equal to the probability p that its HTLCs succeed. - If c = p then all is well and we give a reputation of 1 to the node. - If c > p then this node is overconfident or is lying to have its

Re: [Lightning-dev] Local Reputation to Mitigate Slow Jamming

2023-03-02 Thread Clara Shikhelman
Hi Thomas, I really like the idea of taking into consideration the failures. In our proposal, a failure won't benefit your reputation, as the neighbour is trying to reach a fee threshold, but taking it into account instead of ignoring it could be helpful against an adversary trying to manipulate

Re: [Lightning-dev] Local Reputation to Mitigate Slow Jamming

2023-03-02 Thread Thomas HUET
Hello, I think the local reputation is more important than upfront fees and should be worked on first because 1) the most likely attack against the network today is the slow jamming attack against which upfront fees are not very effective (an attacker would only consider fast jamming if the

[Lightning-dev] Local Reputation to Mitigate Slow Jamming

2023-02-16 Thread Clara Shikhelman
Hi List, We’re writing to seek early feedback on a draft for a neighbour reputation setting recommendation as a jamming mitigation. The main idea is that allowing full access to liquidity and slots in a channel can result in jamming. To prevent this, we allow full access only to neighbours that