{"type":"rich","version":"1.0","title":"William Casarin [ARCHIVE] wrote","author_name":"William Casarin [ARCHIVE] (npub1d7…93exj)","author_url":"https://yabu.me/npub1d7e068ud72v0au6xf53qvek44eccfhlgnhzuclf6za6hnxrvx89sc93exj","provider_name":"njump","provider_url":"https://yabu.me","html":"📅 Original date posted:2022-01-18\n📝 Original message:\nHey Christian,\n\nI noticed you are doing RPC stuff... I'm looking to do RPC over\nlightning itself. I started a C library called lnsocket[1], scrounged\nfrom clightning parts, so that I can send messages from iOS to control\nmy lightning node.\n\nI've got to the point with lnsocket where I can send TLVs to my node,\nand now I'm starting to think about what format the RPC commands should\nbe.\n\nI noticed the commando c-lightning plugin just uses the JSON-RPC\npayload, but perhaps something more compact and rpc-friendly like grpc\nwould be better... which is why this cln-grpc PR peaked my curiosity.\n\nI think the end goal of an RPC bolt would be super powerful, so that\nlnsocket could talk to any lightning node, but that could be further\ndown the line. Choosing the right data format seemed like an important\nstep in that direction. Would love to hear your thoughts on this!\n\nI've cc'd clightning/lightning-dev as well to see if anyone else is\nworking on this or thinking about this stuff right now.\n\nCheers,\nWill\n\n[1] http://git.jb55.com/lnsocket\n\nOn Tue, Jan 18, 2022 at 06:01:46AM -0800, Christian Decker wrote:\n\u003eThis is the final PR in the cln-* series. It uses all the primitives we\n\u003ebuilt in the previous 3 PRs and uses them to expose the JSON-RPC over\n\u003egrpc, with mTLS authentication builtin. You can view, comment on, or\n\u003emerge this pull request online at:\n\u003e\n\u003e  https://github.com/ElementsProject/lightning/pull/5013\n\u003e\n\u003e-- Commit Summary --\n\u003e\n\u003e  * cln-grpc-plugin: Add scaffolding for the cln-grpc-plugin\n\u003e  * make: Add a hook for us to depend on generated files for tests\n\u003e  * make: Generate grpc bindings if we want to test with rust enabled"}
