Build a Lightning Node in Rust: Everything Guide From Prerequisites to Payment Requests
If you've spent time in the Bitcoin developer space, you've probably heard of LDK (the Lightning Development Kit). It's a fully modular Rust library that lets you build a Lightning node exactly the way you want. It's powerful and deeply configurable, but honestly a little intimidating if you're just trying to get something running.
I contribute to ldk-node, and what drew me to it is how clear its purpose is: you shouldn't need to understand every layer of the Lightning protocol just to send a payment. LDK Node is LDK with the hard decisions already made for you. It has a small API surface, sensible defaults, and enough structure to be useful in production.
This article walks you through building a working Lightning node from scratch. By the end, you'll have a node that connects to a peer, opens a channel, handles the channel-ready event, receives a BOLT11payment, sends...
Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE