plugins
plugins copied to clipboard
Ideas for a plugin
-
A plugin that generates a QR code out of a
newaddrto fundlightningd's wallet from a mobile wallet -
A Bitcoin backend plugin for your favourite data source, you can checkout Sauron as an example.
Yeah like the python qr generator that uses ASCII output that actually works great :D
- A plugin that generates a QR code out of a
newaddrto fundlightningd's wallet from a mobile wallet
You mean an ASCII QR code that prints to stdout, or a web-server that displays the QR code as an image?
I meant just ASCII, like spark-wallet does for onion pairing
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░▉▉▉▉▉▉▉▉▉▉▉▉▉▉░░▉▉▉▉▉▉▉▉▉▉░░▉▉▉▉▉▉▉▉▉▉▉▉▉▉░░░░░░░░
▉░░░░░░░░▉▉░░░░░░░░░░▉▉░░▉▉░░▉▉░░▉▉░░▉▉░░░░░░░░░░▉▉░░░░░░░░
▉░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░▉▉░░░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░░░░░░░
▉░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░▉▉▉▉▉▉▉▉░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░░░░░░░
▉░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░░░░░░░░░▉▉░░▉▉░░▉▉▉▉▉▉░░▉▉░░░░░░░░
▉░░░░░░░░▉▉░░░░░░░░░░▉▉░░▉▉▉▉░░▉▉░░░░▉▉░░░░░░░░░░▉▉░░░░░░░░
▉░░░░░░░░▉▉▉▉▉▉▉▉▉▉▉▉▉▉░░▉▉░░▉▉░░▉▉░░▉▉▉▉▉▉▉▉▉▉▉▉▉▉░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░▉▉▉▉▉▉▉▉░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░▉▉▉▉░░░░▉▉▉▉▉▉░░░░▉▉░░▉▉░░░░░░▉▉░░▉▉▉▉▉▉▉▉░░░░░░░░
▉░░░░░░░░░░░░▉▉░░▉▉▉▉░░▉▉▉▉▉▉▉▉▉▉▉▉░░▉▉░░▉▉▉▉░░▉▉░░░░░░░░░░
▉░░░░░░░░░░░░▉▉░░▉▉▉▉▉▉▉▉░░░░░░▉▉░░▉▉░░░░▉▉░░▉▉▉▉░░░░░░░░░░
▉░░░░░░░░▉▉▉▉░░░░▉▉▉▉░░▉▉░░░░▉▉░░░░▉▉░░▉▉▉▉░░░░▉▉▉▉░░░░░░░░
▉░░░░░░░░▉▉░░░░▉▉░░░░▉▉▉▉▉▉▉▉░░░░▉▉▉▉░░▉▉░░░░░░░░▉▉░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░▉▉░░░░░░▉▉▉▉▉▉░░▉▉▉▉░░▉▉░░░░░░░░░░
▉░░░░░░░░▉▉▉▉▉▉▉▉▉▉▉▉▉▉░░░░░░▉▉░░▉▉▉▉░░░░▉▉░░▉▉▉▉░░░░░░░░░░
▉░░░░░░░░▉▉░░░░░░░░░░▉▉░░▉▉░░░░▉▉▉▉░░░░░░▉▉░░░░▉▉░░░░░░░░░░
▉░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░▉▉░░▉▉▉▉░░▉▉▉▉░░▉▉░░░░▉▉░░░░░░░░░░
▉░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░░░▉▉░░▉▉▉▉░░░░░░▉▉▉▉▉▉▉▉▉▉░░░░░░░░
▉░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░░░▉▉░░▉▉░░░░▉▉░░▉▉▉▉░░░░░░░░░░░░░░
▉░░░░░░░░▉▉░░░░░░░░░░▉▉░░▉▉░░░░░░░░▉▉▉▉▉▉▉▉▉▉░░░░░░░░░░░░░░
▉░░░░░░░░▉▉▉▉▉▉▉▉▉▉▉▉▉▉░░▉▉▉▉▉▉░░▉▉▉▉▉▉░░░░░░░░░░▉▉░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
https://superuser.com/questions/1420001/is-it-possible-to-create-a-qr-code-using-text
actually I think UTF-8 or ANSI would be nicer and probably work better. I guess we should not use that tool otherwise I would quickly create a wrapper for a plugin. on the other hand why not using a third party lib in a plugin
that QR was generated by going in any browser to: https://qrenco.de/https://github.com/lightningd/plugins/issues/81
code behind qrenco.de is open source = https://github.com/fukuchi/libqrencode
lightning-cli newaddr | jq -r '.bech32' | qrencode -t UTF8

lightning-cli invoice 123456 qrtest qrtest | jq -r '.bolt11' | qrencode -t UTF8

too linux-way though, if you ask me...
Is it possible to pass an additional flag to existing cli command and catch it with a plugin?
Then introducing --qrencode flag would help UX
Is it possible to pass an additional flag to existing cli command and catch it with a plugin?
Nop, but you can introduce a new command qr-newaddr which returns the QR-encoded output of newaddr command (same for bolt11).
You could also use the rpc_command hook to wrap newaddr and bolt11 with a new parameter, which, if set to true would make the output QR-encoded.
This has the benefit of neither having to use a different command nor disturbing other users of this command.