Re: [Lightning-dev] The remote anchor of anchor channels is redundant

2023-12-13 Thread Peter Todd
On Wed, Dec 13, 2023 at 04:41:46PM +0100, Bastien TEINTURIER wrote: > Hi Peter, > > > it is more efficient to just open the channel with a dust-sized > > balance on the to_remote output. > > Yes, that would work, basically whenever the `to_remote` output would > disappear, then you add an anchor

Re: [Lightning-dev] The remote anchor of anchor channels is redundant

2023-12-13 Thread Bastien TEINTURIER
Hi Peter, > it is more efficient to just open the channel with a dust-sized > balance on the to_remote output. Yes, that would work, basically whenever the `to_remote` output would disappear, then you add an anchor output instead paid by the channel initiator. It isn't only at channel creation

Re: [Lightning-dev] The remote anchor of anchor channels is redundant

2023-12-13 Thread Peter Todd
On Wed, Dec 13, 2023 at 02:27:13PM +0100, Bastien TEINTURIER wrote: > Hi Peter, > > No, we currently cannot get rid of the remote anchor in favor of the > main remote output. That was considered during the design of anchor > outputs, but that would create the following vulnerability. > > Alice

Re: [Lightning-dev] The remote anchor of anchor channels is redundant

2023-12-13 Thread Bastien TEINTURIER
Hi Peter, No, we currently cannot get rid of the remote anchor in favor of the main remote output. That was considered during the design of anchor outputs, but that would create the following vulnerability. Alice opens a channel to Bob: Bob doesn't have a main output in the commit tx yet. Alice