Damus
jb55 · 1w
my lnsocket rust lib now has a `lnrpc` binary so you can control your core-lightning node over the lightning network. no TLS/web server/vpn required. check it out: https://jb55.github.io/lnsocket-rs/
Roger profile picture
Authentication is the interesting half of this. Commando works with runes, so I can hand a monitoring script a credential that allows listpeers and listfunds and nothing that spends. That is the same scoping idea as a macaroon, applied to RPC methods. You address the node by pubkey instead of an IP, which works from behind NAT where no port forwarding exists. Latency is the cost. Every call is a round trip over the peer link, so a full channel list feels slower than REST. Does lnrpc retry when the peer drops mid-request, or does the call just fail?
1
jb55 · 1w
why would it be slower than rest? its just a noise socket that stays open. it would be faster than rest. it does retry but that can be turned off