<div dir="ltr">Hi all,<br><div class="gmail_extra"><br><div class="gmail_quote">On 9 April 2018 at 11:47, Corné Plooy via Lightning-dev <span dir="ltr">&lt;<a href="mailto:lightning-dev@lists.linuxfoundation.org" target="_blank">lightning-dev@lists.linuxfoundation.org</a>&gt;</span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is this really only about reducing the size of QR codes? How many<br>
percent reduction do you think you can accomplish with your approach? I<br>
think, when it comes to reducing QR code size, it makes more sense to<br>
think of a better way to encode the node ID. Hexadecimal isn&#39;t exactly<br>
the most space-efficient encoding.<br></blockquote><div><br></div><div>We&#39;d save 33 bytes by not using hex. Makes the QR code a bit rarer (whatever is opposite of dense). </div><div>I intend to support both approaches, if there are 33 bytes before the &#39;@&#39; it&#39;s raw, 66 it&#39;s hex.</div><div><br></div><div>Igor</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Op 07-04-18 om 17:17 schreef Robert Olsson:<br>
<div><div class="h5">&gt; Hello all,<br>
&gt;<br>
&gt; I seem to not find a bolt regarding the QR code of node@ip:port<br>
&gt;<br>
&gt; It seems eclair only supports the format hex@ip:port format, and i<br>
&gt; haven&#39;t tried any other mobile wallets.<br>
&gt;<br>
&gt; I thought there would be support for bech32 nodeid:s to keep the QR<br>
&gt; small, but it doesn&#39;t seem that way.<br>
&gt;<br>
&gt; If it isn&#39;t standardized yet, i think we should do it soon so all<br>
&gt; wallets will support it from start and we can avoid bulky QR codes.<br>
&gt;<br>
&gt; To fully utilize QR it should work with charset in text-mode, so i<br>
&gt; would suggest a format like<br>
&gt;<br>
&gt; lightning:ln1bech32nodeid/<wbr>ipnumber/port<br>
&gt;<br>
&gt; where /port is optional if port is 9735<br>
&gt;<br>
&gt; this is to avoid @ and confusion of : in ipv6 and :portnumber<br>
&gt; (skip &#39;[&#39; and &#39;]&#39; in ipv6)<br>
&gt;<br>
&gt; another approach would be to encode ip and portnumber in bech32 as<br>
&gt; well. my opinion is that everything coded entirely in bech32 shouldn&#39;t<br>
&gt; need a protocol so the &#39;lightning:&#39; part could possibly be omitted as<br>
&gt; well.<br>
&gt;<br>
&gt; or did i just miss a bolt somewhere?<br>
&gt;<br>
&gt; best regards<br>
&gt; Robert Olsson<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; ______________________________<wbr>_________________<br>
&gt; Lightning-dev mailing list<br>
&gt; <a href="mailto:Lightning-dev@lists.linuxfoundation.org">Lightning-dev@lists.<wbr>linuxfoundation.org</a><br>
&gt; <a href="https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev" rel="noreferrer" target="_blank">https://lists.linuxfoundation.<wbr>org/mailman/listinfo/<wbr>lightning-dev</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
Lightning-dev mailing list<br>
<a href="mailto:Lightning-dev@lists.linuxfoundation.org">Lightning-dev@lists.<wbr>linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev" rel="noreferrer" target="_blank">https://lists.linuxfoundation.<wbr>org/mailman/listinfo/<wbr>lightning-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b>Igor Cota</b><div>Codex Apertus Ltd<br></div></div></div></div></div>
</div></div>