Research/Bitcoin Dev Archive / lightning-dev list
Payment and Refund Stuck
4 messages, Mar 16 to 21, 2016. Started by Anthony Towns.
Anthony Towns, Rusty Russell, Joseph Poon, Mats Jerratsch
Hello lightning implementors!
(Posted to lightning-dev as well, hopefully that's fine with everyone)
Matsjj set up a repo a while ago for collaborating on documenting the lightning protocol and gave a bunch of us admin access:
- https://github.com/lightning-core/lightning
"""I think it is a very good idea to carry all the different
implementations to one spot. I think such a repository is best suited
for it."""
- https://github.com/lightning-core/lightning/pull/4#issuecomment-151778273
I think the layout is a bit too nested (which makes sense coming from the Java implementor, I guess? :) and I think it'd be good to have a simple way to decide how to move ideas into/through the repo, without making it a place where there's any point trying to politicise proposals. (It's kind of telling that something's wrong when even matsjj hasn't been able to get his pull requests accepted :)
Anyway I've taken Rusty's couple of BOLT proposals as well as the shachain design txt and rearranged them in a way I think makes sense:
- https://github.com/ajtowns/lightning-core/tree/rusty
What do you guys think?
I hear there's totally going to be released code out by northern-hemisphere summer, so documenting the protocols/standards is only going to get more pressing...
My inclination is to add:
- matsjj's pull requests [0] - the anonymous "R", via private key reveal stuff [1] - Joseph's 2-of-3 Instant Escrow [2]
as additional "early drafts". Probably things from Rusty's "Deployable Lightning" paper (like the HTLC scripts), or the "elkrem" scheme, or Nicholas Dorier's "backward deterministic [revocation] Value" stuff would be good too...
Cheers, aj
[0] thunsync: https://github.com/lightning-core/lightning/pull/2/files thunenc: https://github.com/lightning-core/lightning/pull/3/files thungoss: https://github.com/lightning-core/lightning/pull/4
[1] rprivkey:
https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2015/better-privacy-with-snarks#m-195e00d3
https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2015/better-privacy-with-snarks#m-b54ec279
[2] escrow23: https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2016/2-of-3-instant-escrow-or-how-to-do-2-of-3-multisig-contract-equivalent-on#m-75503a0b
Anthony Towns <aj at erisian.com.au> writes:
Quoted text (43 lines)
> Hello lightning implementors! > > (Posted to lightning-dev as well, hopefully that's fine with everyone) > > Matsjj set up a repo a while ago for collaborating on documenting the > lightning protocol and gave a bunch of us admin access: > > - https://github.com/lightning-core/lightning > > """I think it is a very good idea to carry all the different > implementations to one spot. I think such a repository is best suited > for it.""" > > - https://github.com/lightning-core/lightning/pull/4#issuecomment-151778273 > > I think the layout is a bit too nested (which makes sense coming from > the Java implementor, I guess? :) and I think it'd be good to have a > simple way to decide how to move ideas into/through the repo, without > making it a place where there's any point trying to politicise proposals. > (It's kind of telling that something's wrong when even matsjj hasn't > been able to get his pull requests accepted :) > > Anyway I've taken Rusty's couple of BOLT proposals as well as the shachain > design txt and rearranged them in a way I think makes sense: > > - https://github.com/ajtowns/lightning-core/tree/rusty > > What do you guys think? > > I hear there's totally going to be released code out by > northern-hemisphere summer, so documenting the protocols/standards is > only going to get more pressing... > > My inclination is to add: > > - matsjj's pull requests [0] > - the anonymous "R", via private key reveal stuff [1] > - Joseph's 2-of-3 Instant Escrow [2] > > as additional "early drafts". Probably things from Rusty's "Deployable > Lightning" paper (like the HTLC scripts), or the "elkrem" scheme, or > Nicholas Dorier's "backward deterministic [revocation] Value" stuff > would be good too...
FWIW, my rough plan was BOLT #3 was going to be the transaction formats, and BOLT #4 the onion and failure message formats (as portended in BOLT #2's references).
Cheers, Rusty.
Hi Anthony,
On Wed, Mar 16, 2016 at 07:27:44PM +1000, Anthony Towns wrote:
Quoted text (1 line)
> What do you guys think?
Looks interesting, thanks for writing this and documenting -- I think it will be very helpful going forward. I think there's some differences with how our code works right now, it'll be good aligning designs going forward. We will be putting up our specs in a couple weeks.
Quoted text (6 lines)
> I think the layout is a bit too nested (which makes sense coming from > the Java implementor, I guess? :) and I think it'd be good to have a > simple way to decide how to move ideas into/through the repo, without > making it a place where there's any point trying to politicise proposals. > (It's kind of telling that something's wrong when even matsjj hasn't > been able to get his pull requests accepted :)
Hehe I was waiting for you guys to merge those, as I don’t consider this ‘my repository’ but rather the specification of the protocol eventually. I do agree that the format isn’t perfect yet. I still like these nested packages, because it separates the different parts of the application (and I don’t see why plain numbers are any better than an actual structure? ;) ). When I started the repository, my goal was to (1) bring together all the different implementations (2) agree on a common denominator.
We have to finish (1) first before we actually can concentrate on (2) though.
I suppose it makes sense to have the different parts of the application and have the different implementations side-by-side within that package. Then we can decide how we compose the ‘final’ specifications of that part.
While we still work on the very 1.0 specifications, isn’t it favourable to stick to named proposals, instead of throwing around with numbers? (even though I like the “BOLT” names…)
Cheers