plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Ideas for a plugin

Open darosior opened this issue 5 years ago • 8 comments

  • A plugin that generates a QR code out of a newaddr to fund lightningd's wallet from a mobile wallet

  • A Bitcoin backend plugin for your favourite data source, you can checkout Sauron as an example.

darosior avatar Jan 11 '20 16:01 darosior

Yeah like the python qr generator that uses ASCII output that actually works great :D

m-schmoock avatar Jan 11 '20 19:01 m-schmoock

  • A plugin that generates a QR code out of a newaddr to fund lightningd'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?

cdecker avatar Jan 13 '20 14:01 cdecker

I meant just ASCII, like spark-wallet does for onion pairing

darosior avatar Jan 13 '20 22:01 darosior

▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░▉▉▉▉▉▉▉▉▉▉▉▉▉▉░░▉▉▉▉▉▉▉▉▉▉░░▉▉▉▉▉▉▉▉▉▉▉▉▉▉░░░░░░░░
▉░░░░░░░░▉▉░░░░░░░░░░▉▉░░▉▉░░▉▉░░▉▉░░▉▉░░░░░░░░░░▉▉░░░░░░░░
▉░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░▉▉░░░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░░░░░░░
▉░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░▉▉▉▉▉▉▉▉░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░░░░░░░
▉░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░░░░░░░░░▉▉░░▉▉░░▉▉▉▉▉▉░░▉▉░░░░░░░░
▉░░░░░░░░▉▉░░░░░░░░░░▉▉░░▉▉▉▉░░▉▉░░░░▉▉░░░░░░░░░░▉▉░░░░░░░░
▉░░░░░░░░▉▉▉▉▉▉▉▉▉▉▉▉▉▉░░▉▉░░▉▉░░▉▉░░▉▉▉▉▉▉▉▉▉▉▉▉▉▉░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░▉▉▉▉▉▉▉▉░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░▉▉▉▉░░░░▉▉▉▉▉▉░░░░▉▉░░▉▉░░░░░░▉▉░░▉▉▉▉▉▉▉▉░░░░░░░░
▉░░░░░░░░░░░░▉▉░░▉▉▉▉░░▉▉▉▉▉▉▉▉▉▉▉▉░░▉▉░░▉▉▉▉░░▉▉░░░░░░░░░░
▉░░░░░░░░░░░░▉▉░░▉▉▉▉▉▉▉▉░░░░░░▉▉░░▉▉░░░░▉▉░░▉▉▉▉░░░░░░░░░░
▉░░░░░░░░▉▉▉▉░░░░▉▉▉▉░░▉▉░░░░▉▉░░░░▉▉░░▉▉▉▉░░░░▉▉▉▉░░░░░░░░
▉░░░░░░░░▉▉░░░░▉▉░░░░▉▉▉▉▉▉▉▉░░░░▉▉▉▉░░▉▉░░░░░░░░▉▉░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░▉▉░░░░░░▉▉▉▉▉▉░░▉▉▉▉░░▉▉░░░░░░░░░░
▉░░░░░░░░▉▉▉▉▉▉▉▉▉▉▉▉▉▉░░░░░░▉▉░░▉▉▉▉░░░░▉▉░░▉▉▉▉░░░░░░░░░░
▉░░░░░░░░▉▉░░░░░░░░░░▉▉░░▉▉░░░░▉▉▉▉░░░░░░▉▉░░░░▉▉░░░░░░░░░░
▉░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░▉▉░░▉▉▉▉░░▉▉▉▉░░▉▉░░░░▉▉░░░░░░░░░░
▉░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░░░▉▉░░▉▉▉▉░░░░░░▉▉▉▉▉▉▉▉▉▉░░░░░░░░
▉░░░░░░░░▉▉░░▉▉▉▉▉▉░░▉▉░░░░▉▉░░▉▉░░░░▉▉░░▉▉▉▉░░░░░░░░░░░░░░
▉░░░░░░░░▉▉░░░░░░░░░░▉▉░░▉▉░░░░░░░░▉▉▉▉▉▉▉▉▉▉░░░░░░░░░░░░░░
▉░░░░░░░░▉▉▉▉▉▉▉▉▉▉▉▉▉▉░░▉▉▉▉▉▉░░▉▉▉▉▉▉░░░░░░░░░░▉▉░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▉░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

m-schmoock avatar Jan 14 '20 09:01 m-schmoock

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

renepickhardt avatar Jan 24 '20 22:01 renepickhardt

Screenshot from 2020-02-19 05-53-39 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

GlenCooper avatar Feb 19 '20 05:02 GlenCooper

lightning-cli newaddr | jq -r '.bech32' | qrencode -t UTF8

newaddr

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

invoice_qr

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

citrusferox avatar Apr 05 '20 00:04 citrusferox

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.

darosior avatar Apr 05 '20 13:04 darosior