<p dir="ltr">Hmm, r1, r2 etc is actually interesting. It takes less chars then array (yes, array brackets have to be escaped) and provides unlimited number of options, uniformed approach and priority definition. I&#39;d say that is the way to go. Any objections?</p>

<div class="gmail_quote">On 1 Jul 2014 16:39, &quot;Andreas Schildbach&quot; &lt;<a href="mailto:andreas@schildbach.de">andreas@schildbach.de</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ok, one more idea:<br>
r= is used for the first URL, and we *think* of it as r0=<br>
additional URLs are appended as<br>
r1=<br>
r2=<br>
and so on. This would also define an ordering in case we need it.<br>
<br>
<br>
On 07/01/2014 05:07 PM, Michael Wozniak wrote:<br>
&gt; Multiple parameters is currently undefined as far as I can tell.  Should the client take the first, last, or ignore it completely if there are multiple of any parameter?  I think that’s the point of the parameter pollution discussion, which will define it one way or the other.<br>

&gt;<br>
&gt; I’m only familiar with the Electrum implementation, which is currently checking for any duplicate parameters and treating the entire URI as invalid if duplicate parameters exist (following the parameter pollution suggestions).<br>

&gt;<br>
&gt; -<br>
&gt; Michael Wozniak<br>
&gt;<br>
&gt; On Jul 1, 2014, at 10:59 AM, Andreas Schildbach &lt;<a href="mailto:andreas@schildbach.de">andreas@schildbach.de</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Does r[]= really need to be encoded as r%5B1%5D= ? In this case, I&#39;d<br>
&gt;&gt; advocate for a simple array parameter name, like rs= (&quot;plural&quot; of r).<br>
&gt;&gt; Length really does matter for QR codes.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m fine with either multiple r= params or exactly one r= plus zero to<br>
&gt;&gt; many r[]= params. Although I think it is a violation of the (current)<br>
&gt;&gt; spec to choke on more than one r= parameters, I admit that bitcoinj is<br>
&gt;&gt; currently implemented that way. (We could however fix this in a<br>
&gt;&gt; maintenance release.)<br>
&gt;&gt;<br>
&gt;&gt; However, r= should also allow all other protocols, exactly like any of<br>
&gt;&gt; the r[]= params. I don&#39;t think we should do a distinction here. Also<br>
&gt;&gt; because of backwards compatibility to the status quo.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 07/01/2014 03:03 PM, Alex Kotenko wrote:<br>
&gt;&gt;&gt; In my mind it&#39;s not like the client&#39;s phone is going all directions at<br>
&gt;&gt;&gt; the same time. There should be a priority method and fallback method(s).<br>
&gt;&gt;&gt; ​And I ​see p2p radio as priority, and web as fallback, and BIP21 in the<br>
&gt;&gt;&gt; end as always-working-default.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ​So I&#39;m keeping support for it all while want to be able to provide best<br>
&gt;&gt;&gt; user experience.<br>
&gt;&gt;&gt; Mike, a while ago in ​this thread you&#39;ve described contactless cards<br>
&gt;&gt;&gt; user experience. I&#39;m also using contactless cards often, and what I&#39;m<br>
&gt;&gt;&gt; aiming at is creating same level of user experience for Bitcoin users.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Encryption over bluetooth is a matter to worry about, and we will<br>
&gt;&gt;&gt; introduce that, but we need to sort out more low level problems first<br>
&gt;&gt;&gt; before coming into that stage.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; So, the backwards compatibility is a good issue Michael pointed out.<br>
&gt;&gt;&gt; While processing of multiple &quot;r&quot; parameters is indeed uncertain (since<br>
&gt;&gt;&gt; there is no RFC for that various implementations may behave<br>
&gt;&gt;&gt; differently), the array solution is somewhat better. The array parameter<br>
&gt;&gt;&gt; name is &quot;r%5B1%5D=&quot;, i.e. it&#39;s not &quot;r=&quot;, and we can add plain &quot;r=&quot;<br>
&gt;&gt;&gt; alongside. And if particular implementation understands the array<br>
&gt;&gt;&gt; construct - it will use it, otherwise it will ignore the &quot;r%5B1%5D=&quot; and<br>
&gt;&gt;&gt; use only usual &quot;r=&quot;.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; This doens&#39;t work though for cases where particular implementation<br>
&gt;&gt;&gt; understands array construct but doesn&#39;t work well with repeating<br>
&gt;&gt;&gt; parameters, since it will see two repeating &quot;r&quot; - an array and a string.<br>
&gt;&gt;&gt; I don&#39;t have a solution for that atm.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If add completely new parameter to solve this we will need to make it an<br>
&gt;&gt;&gt; array straight away to address upcoming issues with accommodating other<br>
&gt;&gt;&gt; protocols.<br>
&gt;&gt;&gt; And then I would also modify existing BIP72 to strictly define &quot;r=&quot; as<br>
&gt;&gt;&gt; &quot;http(s)&quot; ​only ​parameter, while all other protocols (bluetooth, WiFi<br>
&gt;&gt;&gt; Direct, ultrasound, chirp etc) should go to the new array parameter.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ​<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ------------------------------------------------------------------------------<br>
&gt;&gt;&gt; Open source business process management suite built on Java and Eclipse<br>
&gt;&gt;&gt; Turn processes into business applications with Bonita BPM Community Edition<br>
&gt;&gt;&gt; Quickly connect people, data, and systems into organized workflows<br>
&gt;&gt;&gt; Winner of BOSSIE, CODIE, OW2 and Gartner awards<br>
&gt;&gt;&gt; <a href="http://p.sf.net/sfu/Bonitasoft" target="_blank">http://p.sf.net/sfu/Bonitasoft</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Bitcoin-development mailing list<br>
&gt;&gt;&gt; <a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
&gt;&gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------------------------------------------------------<br>
&gt;&gt; Open source business process management suite built on Java and Eclipse<br>
&gt;&gt; Turn processes into business applications with Bonita BPM Community Edition<br>
&gt;&gt; Quickly connect people, data, and systems into organized workflows<br>
&gt;&gt; Winner of BOSSIE, CODIE, OW2 and Gartner awards<br>
&gt;&gt; <a href="http://p.sf.net/sfu/Bonitasoft" target="_blank">http://p.sf.net/sfu/Bonitasoft</a><br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Bitcoin-development mailing list<br>
&gt;&gt; <a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
&gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------------<br>
&gt; Open source business process management suite built on Java and Eclipse<br>
&gt; Turn processes into business applications with Bonita BPM Community Edition<br>
&gt; Quickly connect people, data, and systems into organized workflows<br>
&gt; Winner of BOSSIE, CODIE, OW2 and Gartner awards<br>
&gt; <a href="http://p.sf.net/sfu/Bonitasoft" target="_blank">http://p.sf.net/sfu/Bonitasoft</a><br>
&gt; _______________________________________________<br>
&gt; Bitcoin-development mailing list<br>
&gt; <a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
&gt;<br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Open source business process management suite built on Java and Eclipse<br>
Turn processes into business applications with Bonita BPM Community Edition<br>
Quickly connect people, data, and systems into organized workflows<br>
Winner of BOSSIE, CODIE, OW2 and Gartner awards<br>
<a href="http://p.sf.net/sfu/Bonitasoft" target="_blank">http://p.sf.net/sfu/Bonitasoft</a><br>
_______________________________________________<br>
Bitcoin-development mailing list<br>
<a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
</blockquote></div>