Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do you happen to know where I can find the code or white paper for the current, working, routing algorithm?



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)




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: