Early Bird Sessions: Programming Lightning
A workshop that teaches developers how lightning works and how to build a node using LDK. This is a condensed version of a longer, multi-day course. At btc++ we’ll focus on "Intro to Payment Channels". This workshop walks developers through how to build a Lightning channel. We start with the concept of simply sending off-chain transactions to a peer via email or text, and then we work our way towards adding components one-by-one (ex: multi-sig, spending paths, timelocks, revocation keys). With each step, we discuss the shortcomings of channel constructions that don't work well, and we'll eventually make our way to a robust Lightning Channel. The entire workshop is in Replit, so students will build funding, commitment, and HTLC transactions and broadcast them themselves into a regtest environment running in the background.