Pages
  • LNROOM newsletter
  • First live coding session [#1]
  • pyln-client and Python decorators [#2]
  • Write tests for CLN plugins and Unix domain sockets [#3]
  • pyln-client implementation and Torq node management software [#4]
  • CLN Hooks and BOLT11 [#5]
  • nostr-control and scaling-lightning [#6]
  • bcli and Securing a $100M Lightning node [#7]
  • LDK Node, Greenlight and Breez SDK [#8]
  • Remote control and L402 [#9]
  • LN summit in NY, splicing and Mutiny [#10]
  • commando, lnsocket and CLN 23.08 rc1 [#11]
  • CLN v23.08, sovereign stack and BOLT #12 [#12]
  • Vincenzo Palazzo, LSPs & renepay plugin [#13]
  • Testing applications & 4 major LN implementations [#14]
  • LSP, VLS and Bitcoin Education [#15]
  • LN limitations, Timeout Trees, Greenlight and River report [#16]
  • 1 year of lnroom.live [#17]
  • BOLT#11, clangd and renepay [#18]
  • BOLT#11, Rusty Russell, Clams and CLN v23.11 [#19]
  • Bech32, Chaincode Labs, Christian Decker and Severin Bühler [#20]
  • PeerSwap, Breez SDK and Mutiny Wallet FAQ [#21]
LNROOM newsletter
  • LNROOM newsletter
  • First live coding session [#1]
  • pyln-client and Python decorators [#2]
  • Write tests for CLN plugins and Unix domain sockets [#3]
  • pyln-client implementation and Torq node management software [#4]
  • CLN Hooks and BOLT11 [#5]
  • nostr-control and scaling-lightning [#6]
  • bcli and Securing a $100M Lightning node [#7]
  • LDK Node, Greenlight and Breez SDK [#8]
  • Remote control and L402 [#9]
  • LN summit in NY, splicing and Mutiny [#10]
  • commando, lnsocket and CLN 23.08 rc1 [#11]
  • CLN v23.08, sovereign stack and BOLT #12 [#12]
  • Vincenzo Palazzo, LSPs & renepay plugin [#13]
  • Testing applications & 4 major LN implementations [#14]
  • LSP, VLS and Bitcoin Education [#15]
  • LN limitations, Timeout Trees, Greenlight and River report [#16]
  • 1 year of lnroom.live [#17]
  • BOLT#11, clangd and renepay [#18]
  • BOLT#11, Rusty Russell, Clams and CLN v23.11 [#19]
  • Bech32, Chaincode Labs, Christian Decker and Severin Bühler [#20]
  • PeerSwap, Breez SDK and Mutiny Wallet FAQ [#21]

CLN Hooks and BOLT11

#5・May 18, 2023

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:

https://community.corelightning.org/c/events/biweekly-live-coding-sessions-core-lightning-rpc_command-hook-pay-command-and-bolt11-invoice

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

PREVRANDOMNEXT