CLN Hooks and BOLT11
CLN hooks are amazing! They allow plugins to modify lightningd
behavior. And they are going to be the topic of the biweekly live
coding session #6:
We'll write a plugin that limits the amount a node can send (using the
builtin pay
command) to a BOLT11 invoice. Really, really cool.
I hope to see you there.
To prepare that live I had to read more in detail the BOLT11 about invoices. Maybe you'd like to take a look at it too (half of the document are examples):
https://github.com/lightning/bolts/blob/master/11-payment-encoding.md
Core Lightning is implemented in C and it might be a stop for you if you have no previous experience with the C language. I would like to say that C is just another programming language and if you already know how to program with other languages, you can also learn C. You just need a bit of motivation, a bit of time and some good resources to get you started. Talking about resources, I found that Jack Sorber does a really great job at making C accessible:
https://www.youtube.com/@JacobSorber
My favorite video so far is Understanding the Pipe System Call (popen3 example in C).
Give it a try!
In the last newsletter, I mentionned Torq node management software developed by Torq. Besides working on Torq, they also provide LN education with tweet threads like this one about Channel Factories that "could slash Lightning Network’s onchain fees by over 90%".
You might be interested by some of their content.
I hope you're having great time programming, See you in the next newsletter, Tony Aldon https://lnroom.live