News for hackers. Stuff that matters.
Re:Bitcoin has a huge scaling problem–Lightning could be the... by lalaland1125 on Sunday February 04, 2018 @12:07PM (#16303554)
Do you happen to know where I can find the code or white paper for the current, working, routing algorithm?
Re:Bitcoin has a huge scaling problem–Lightning could be the... by kbody on Sunday February 04, 2018 @01:03PM (#16303883)
Sure.

- Onion Routing Protocol: https://github.com/lightningnetwork/lightning-rfc/blob/maste...

- P2P Node and Channel Discovery https://github.com/lightningnetwork/lightning-rfc/blob/maste...

This repo contains specs for a lot of parts of the LN, although probably there may be changes I imagine.

As for code, one of the implementations, LND (Go): https://github.com/lightningnetwork/lnd/tree/master/routing but there are at least 3 other implementations in the works.

https://github.com/ElementsProject/lightning (clang) https://github.com/ACINQ/eclair (Scala) https://github.com/mit-dci/lit (Go)