Commando-spark plugin
This will help spark wallet to fetch custom commands remotely. Inspired by @rustyrussell 's commando plugin.
Tried running it on a regtest node and got the following error:
$ l1-cli enable-spark
[258176:258176:0100/000000.836425:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
{
"code": -4,
"message": "Plugin terminated before replying to RPC call."
}
@adi2011 It did produce a qrcode and it opened it in my web browser. Is opening it in a web browser the intended behavior? I would recommend outputting the file location as well as a text string of the rune/access_key in a json output. This would allow more flexibility to work with scripts and other plugins. I would much prefer to use jq to pipe it in to sxiv or something, rather than having a bloated web browser open every time I want to generate a rune. Maybe that is what happens if the error doesn't occur, I'm not sure.
@PestToast thank you for trying it out, the intended behaviour is that you scan it in the spark wallet (not yet added) and then the spark wallet will be able to control the node(through read-only or fully). I'll definitely print the path string to the rune on the cli thank you for the suggestion.
@adi2011 Thank you for working on this! I hope to get it running soon. Is it working currently on mainnet? My concern is that if I'm running this on a remote server that I ssh into, trying to open it in a web browser will do no good, but if I can pipe the image output somewhere, then I could do whatever I want with it (including opening it in a web browser). Maybe I can find some free time this weekend to look at it closer. I'm not really a developer, but hopefully I'll be able to navigate it enough to figure it out.