Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UUuLe-0008U4-OC for bitcoin-development@lists.sourceforge.net; Wed, 24 Apr 2013 07:42:38 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.214.169 as permitted sender) client-ip=209.85.214.169; envelope-from=mh.in.england@gmail.com; helo=mail-ob0-f169.google.com; Received: from mail-ob0-f169.google.com ([209.85.214.169]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1UUuLd-00016u-Kd for bitcoin-development@lists.sourceforge.net; Wed, 24 Apr 2013 07:42:38 +0000 Received: by mail-ob0-f169.google.com with SMTP id tb18so1223908obb.28 for ; Wed, 24 Apr 2013 00:42:32 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.112.202 with SMTP id is10mr17403624obb.8.1366789352227; Wed, 24 Apr 2013 00:42:32 -0700 (PDT) Sender: mh.in.england@gmail.com Received: by 10.76.167.169 with HTTP; Wed, 24 Apr 2013 00:42:32 -0700 (PDT) Date: Wed, 24 Apr 2013 09:42:32 +0200 X-Google-Sender-Auth: Gxy8sE0__DJ9uT1UK8FOvOl2usk Message-ID: From: Mike Hearn To: Bitcoin Dev Content-Type: multipart/alternative; boundary=089e015369bed28bd704db1671bc X-Spam-Score: -0.5 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (mh.in.england[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1UUuLd-00016u-Kd Subject: [Bitcoin-development] BIP21 bitcoin URIs and HTML5 X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Apr 2013 07:42:38 -0000 --089e015369bed28bd704db1671bc Content-Type: text/plain; charset=UTF-8 HTML5 allows web apps to register themselves for handling URI schemes, such as the bitcoin: URI that is already in use and being extended as part of the payment protocol. The bad news is that for security reasons there is a whitelist of acceptable schemes in the spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#dom-navigator-registerprotocolhandler The good news is that yesterday I talked to Hixie about it and he added bitcoin to the whitelist: http://html5.org/tools/web-apps-tracker?from=7849&to=7850 I'm currently finding out what the process is for browser makers to notice the change (perhaps they watch the spec commit history and nothing needs to be done), but within a few months most users should have browsers that can accept bitcoin as a web-app handleable protocol scheme. I suppose IE10 users may be the laggards, but I guess we can live with that for now. Ian pointed out some errors in the BIP21 spec. What's the process for amending the BIP? Do we need to create a new one and mark the old one as replaced, or can we just fix it in place given the relatively exotic nature of most of the issues? Here's his feedback: - BNF doesn't say what it's character set is (presumably it's Unicode) - "bitcoinparams" production doesn't define the separator, so in theory the syntax is ...?label=foomessage=fooother=foo (rather than ...?label=foo&message=foo etc) - the syntax allows ?amount=FOO&amount=1.1 as far as I can tell, since "otherparam" matches any name followed by any value, including "amount" followed by a bogus value. - "pchar" is referenced without definition. - the "simpler" syntax is just wrong (it would result in bitcoin:address?amount=1?label=FOO rather than bitcoin:address?amount=1&label=FOO) BTW the IETF URL specs are being obsoleted by http://url.spec.whatwg.org/, at least for Web purposes. In that case matters. --089e015369bed28bd704db1671bc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
HTML5 allows web apps to register themselves for handling = URI schemes, such as the bitcoin: URI that is already in use and being exte= nded as part of the payment protocol.

The bad news is th= at for security reasons there is a whitelist of acceptable schemes in the s= pec:


The good news is that yesterday I talked to= Hixie about it and he added bitcoin to the whitelist:

=

I'm currently finding out what the proc= ess is for browser makers to notice the change (perhaps they watch the spec= commit history and nothing needs to be done), but within a few months most= users should have browsers that can accept bitcoin as a web-app handleable= protocol scheme. I suppose IE10 users may be the laggards, but I guess we = can live with that for now.

Ian pointed out some errors in the BIP21 sp= ec. What's the process for amending the BIP? Do we need to create a new= one and mark the old one as replaced, or can we just fix it in place given= the relatively exotic nature of most of the issues? Here's his feedbac= k:


- BNF doesn't say what it's character set is (presumably it= 9;s Unicode)

=C2=A0- "bitcoinparams" production doesn't define the separat= or, so in theory the syntax is ...?label=3Dfoomessage=3Dfooother=3Dfoo (rat= her than ...?label=3Dfoo&message=3Dfoo etc)

- the syntax allows ?amount=3DFOO&amount=3D1= .1 as far as I can tell, since "otherparam" matches any name foll= owed by any value, including "amount" followed by a bogus value.<= /div>

- "pchar" is ref= erenced without definition.

- the "simpler" syntax is just wrong (it would result i= n bitcoin:address?amount=3D1?label=3DFOO rather than=C2=A0bitcoin:address?a= mount=3D1&label=3DFOO)

BTW the IETF URL specs= are being obsoleted by=C2=A0http://url.spec.whatwg.org/, at least for Web purposes. In = that case matters.

--089e015369bed28bd704db1671bc--