hub icon indicating copy to clipboard operation
hub copied to clipboard

Cashlink message compression

Open danimoh opened this issue 6 years ago • 2 comments

Just had the idea that we could compress cashlink messages with some simple LZ compression for shorter cashlinks / longer messages. I think that would be pretty neat some point in the future. Could for example use https://pieroxy.net/blog/pages/lz-string/index.html (4.6 kB minified).

danimoh avatar Dec 14 '19 01:12 danimoh

Longer messages line-break and add a scrollbar to the cashlink-receive screen, however.

255 characters ought to be enough, until someone presents a valid use-case.

sisou avatar Jan 26 '20 18:01 sisou

It's nothing of importance, but a fun little and useful task. 255 bytes fill up pretty quickly with non-ascii characters. So, if someone from the community is tempted to implement this, I'm open to merging it.

danimoh avatar Apr 19 '20 22:04 danimoh