<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Marcusaurelius</id>
	<title>Bitcoin Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Marcusaurelius"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/wiki/Special:Contributions/Marcusaurelius"/>
	<updated>2026-05-02T00:04:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=User:Marcusaurelius&amp;diff=2200</id>
		<title>User:Marcusaurelius</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=User:Marcusaurelius&amp;diff=2200"/>
		<updated>2011-01-15T12:57:17Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, i am &#039;&#039;&#039;marcusaurelius&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Calculated SHA-256 Hash:&lt;br /&gt;
7469e12af4003493ed5adf14c224a38194ab6a519cd18592&lt;br /&gt;
7e181103235f79c7&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=User:Marcusaurelius&amp;diff=2199</id>
		<title>User:Marcusaurelius</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=User:Marcusaurelius&amp;diff=2199"/>
		<updated>2011-01-15T12:48:13Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: Created page with &amp;quot;Hi, i am &amp;#039;&amp;#039;&amp;#039;marcusaurelius&amp;#039;&amp;#039;&amp;#039;.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, i am &#039;&#039;&#039;marcusaurelius&#039;&#039;&#039;.&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1842</id>
		<title>BIP 0020</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1842"/>
		<updated>2011-01-13T10:38:25Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: /* Proposed specification */  the question mark and ampersands are not optional in the way the others are.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is about creating a URI scheme for bitcoin.&lt;br /&gt;
Previous discussion in the forum http://www.bitcoin.org/smf/index.php?topic=55.0&lt;br /&gt;
x-btc specification at [[x-btc]]&lt;br /&gt;
&lt;br /&gt;
==RFC 3986==&lt;br /&gt;
&#039;&#039;&#039;the following is taken from wikipedia&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Internet standard [http://rfc.net/std0066.html STD 66] (also RFC 3986) defines the generic syntax to be used in all URI schemes. Every URI is defined as consisting of four parts, as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;scheme name&amp;gt; : &amp;lt;hierarchical part&amp;gt; [ ? &amp;lt;query&amp;gt; ] [ # &amp;lt;fragment&amp;gt; ]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;scheme name&#039;&#039;&#039; consists of a letter followed by any combination of letters, digits, and the plus (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;) characters; and is terminated by a colon (&amp;quot;:&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;hierarchical part&#039;&#039;&#039; of the URI is intended to hold identification information hierarchical in nature. Usually this part begins with a double forward slash (&amp;quot;//&amp;quot;), followed by an &#039;&#039;authority&#039;&#039; part and an optional &#039;&#039;path&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;authority&#039;&#039;&#039; part holds an optional user information part terminated with &amp;quot;@&amp;quot; (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;username:password@&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), a hostname (i.e. domain name or IP address), and an optional port number preceded by a colon &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;path&#039;&#039;&#039; part is a sequence of segments (conceptually similar to directories, though not necessarily representing them) separated by a forward slash (&amp;quot;/&amp;quot;). Each segment can contain parameters separated from it using a semicolon (&amp;quot;;&amp;quot;), though this is rarely used in practice.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;query&#039;&#039;&#039;  is an optional part separated with a question mark, which contains additional identification information which is not hierarchical in nature. The query string syntax is not generically defined, but is commonly organized as a sequence of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; pairs separated by a semicolon&amp;lt;ref&amp;gt;&lt;br /&gt;
RFC 1866 section 8.2.1 : by Tim Berners-Lee in 1995 encourages CGI authors to support &#039;;&#039; in addition to &#039;&amp;amp;&#039;.&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2 HTML 4.01 Specification: Implementation, and Design Notes]: &amp;quot;CGI implementors support the use of &amp;quot;;&amp;quot; in place of &amp;quot;&amp;amp;&amp;quot; to save authors the trouble of escaping &amp;quot;&amp;amp;&amp;quot; characters in this manner.&amp;quot;&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/MarkUp/html-spec/html-spec_foot.html#FOOT26 Hypertext Markup Language - 2.0]&lt;br /&gt;
&amp;quot;CGI implementors are encouraged to support the use of &#039;;&#039; in place of &#039;&amp;amp;&#039; &amp;quot; &lt;br /&gt;
&amp;lt;/ref&amp;gt; or separated by an ampersand, for example:&lt;br /&gt;
 Semicolon: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1;key2=value2;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 Ampersand: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1&amp;amp;key2=value2&amp;amp;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;fragment&#039;&#039;&#039; is an optional part separated from the front parts by a hash (&amp;quot;#&amp;quot;). It holds additional identifying information that provides direction to a secondary resource, e.g. a section heading in an article identified by the remainder of the URI.  When the primary resource is an HTML document, the &#039;&#039;&#039;fragment&#039;&#039;&#039; is often an &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; attribute of a specific element and web browsers will make sure this element is visible.&lt;br /&gt;
&lt;br /&gt;
==Proposed specification==&lt;br /&gt;
&lt;br /&gt;
[] means optional, &amp;lt;&amp;gt; are placeholders&lt;br /&gt;
&lt;br /&gt;
 bitcoin:&amp;lt;address&amp;gt;[?][amount=&amp;lt;size&amp;gt;][&amp;amp;][label=&amp;lt;label&amp;gt;][&amp;amp;][message=&amp;lt;message&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=== Query Keys ===&lt;br /&gt;
&lt;br /&gt;
*label: Label for that address (e.g. name of receiver)&lt;br /&gt;
*address: bitcoin address&lt;br /&gt;
*message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
*size: amount of base bitcoin units (uBTCents/TBCᵇ-- NOT full DecimalBitCoins/BTC nor TonalBitCoins/TBC; see below)&lt;br /&gt;
&lt;br /&gt;
==== Transfer amount/size ====&lt;br /&gt;
&lt;br /&gt;
If an amount is provided, it may be specified either in decimal or, when prefixed with a single &amp;quot;x&amp;quot; character, hexadecimal.&lt;br /&gt;
The number SHOULD be followed by &amp;quot;X&amp;quot; &amp;lt;digits&amp;gt; to signify an exponent to the base multiplier.&lt;br /&gt;
That is, &amp;quot;X8&amp;quot; multiplies your number by 100,000,000.&lt;br /&gt;
For decimal values, this means the standard BTC unit.&lt;br /&gt;
For hexadecimal values, this means ᵇTBC units (which are equivalent to 42.94967296 BTC).&lt;br /&gt;
If exponent is omitted, implementations SHOULD assume X8 for decimal numbers, and X4 for hexadecimal numbers.&lt;br /&gt;
I.e. amount=50.00 is treated as 50 BTC, and amount=x40 is treated as 40 TBC.&lt;br /&gt;
When specifying bitcoin base units, &amp;quot;X0&amp;quot; SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?label=Luke-Jr&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to Luke-Jr:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=20.3&amp;amp;label=Luke-Jr&lt;br /&gt;
&lt;br /&gt;
Request to send 400 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=x400&lt;br /&gt;
&lt;br /&gt;
Request to send 4000 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=x4X7&lt;br /&gt;
&lt;br /&gt;
Request to send 5 uBTC:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=500X0&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=5X9&amp;amp;label=Luke-Jr&amp;amp;message=Donation%20for%20project%20xyz&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded properly.&lt;br /&gt;
&lt;br /&gt;
=== BNF syntax ===&lt;br /&gt;
&lt;br /&gt;
 bitcoinurn      = &amp;quot;bitcoin:&amp;quot; bitcoinaddress [ &amp;quot;;version=&amp;quot; bitcoinversion ] [ &amp;quot;?&amp;quot; bitcoinparams ]&lt;br /&gt;
 bitcoinaddress  = FIXME :)&lt;br /&gt;
 bitcoinversion  = &amp;quot;1.0&amp;quot;&lt;br /&gt;
 bitcoinparams   = *bitcoinparam&lt;br /&gt;
 bitcoinparam    = amountparam | labelparam | messageparam&lt;br /&gt;
 amountparam     = &amp;quot;amount=&amp;quot; amount&lt;br /&gt;
 amount          = amountdecimal | amounthex&lt;br /&gt;
 amountdecimal   = digits [ &amp;quot;X&amp;quot; digits ]&lt;br /&gt;
 amounthex       = &amp;quot;x&amp;quot; hexdigits [ &amp;quot;X&amp;quot; hexdigits ]&lt;br /&gt;
 labelparam      = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
 messageparam    = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
&lt;br /&gt;
=== Parsing amount ===&lt;br /&gt;
==== ECMAScript ====&lt;br /&gt;
 reAmount = /^(([\d.]+)(X(\d+))?|x([\da-f]*)(\.([\da-f]*))?(X([\da-f]+))?)$/i;&lt;br /&gt;
 function parseAmount(txt) {&lt;br /&gt;
 	var m = txt.match(reAmount);&lt;br /&gt;
 	return m[5] ? (&lt;br /&gt;
 		(&lt;br /&gt;
 			parseInt(m[5], 16) +&lt;br /&gt;
 			(m[7] ? (parseInt(m[7], 16) * Math.pow(16, -(m[7].length))) : 0)&lt;br /&gt;
 		) * (&lt;br /&gt;
 			m[9] ? Math.pow(16, parseInt(m[9], 16)) : 0x10000&lt;br /&gt;
 		)&lt;br /&gt;
 	) : (&lt;br /&gt;
 			m[2]&lt;br /&gt;
 		*&lt;br /&gt;
 			(m[4] ? Math.pow(10, m[4]) : 1e8)&lt;br /&gt;
 	);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
===Payment identifiers, not person identifiers===&lt;br /&gt;
in my opinion, the most basic idea of the URI scheme (as this is a currency) is to facilitate payment. so the URIs should represent first and foremost payments. if it represents something else, this needs to be specified. Thus&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
bitcoin:13guMzcGPvdD3qjQvCoNc1w5XAgJ638KaQ&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
represent a &#039;&#039;&#039;payment&#039;&#039;&#039; to me using my bitcoin adress, not my bitcoin adress itself. So after parsing the URI (via link/qr/whatever) the application should open a transaction window with the adress filled in. you then need to add an amount and confirm the payment.&lt;br /&gt;
If your application is smart, it will also have a button &amp;quot;just store the adress&amp;quot;. But the point i am trying to make, is that the default use of the URI should be for payment, nor for exchanging adresses.&lt;br /&gt;
&lt;br /&gt;
===Accessibility===&lt;br /&gt;
&#039;&#039;&#039;imported from the forum:&#039;&#039;&#039; I like the simplicity of bitcoin:xxxxxxxxxxxxx plus very much approve of its accessibility. Should someone from the outside happen to see such a uri, the protocol name already gives a description. A quick google search should then do the rest. x-btc sounds much more cryptic, the chance that s/1 gooogles that out of curiosity are much slimmer. Also, very likely, what s/he will find are mostly technical specifications. Not a good introduction to bitcoin.&lt;br /&gt;
&lt;br /&gt;
for the same reason i am for using &#039;&amp;amp;&#039; as a delimiter for key-value-pairs. people know it from urls. make it easy for people to understand what is going on.&lt;br /&gt;
&lt;br /&gt;
===Keep it simple===&lt;br /&gt;
don&#039;t explicitly write down information that can be inferred. don&#039;t mark the address as an address. if there is no address, this does lose much of its utility. we could, however, specify &#039;address&#039; as a reserved word, so that &amp;lt;code&amp;gt;&lt;br /&gt;
bitcoin:address?amount=50&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
would initiate a transaction with the amount filled in, but with a blank address. I am not convinced that there is a use case, though.&lt;br /&gt;
&lt;br /&gt;
===Use-cases===&lt;br /&gt;
before the URI scheme is finalised one should think long and hard about use-cases. in what circumstances will who use this for what?&lt;br /&gt;
* an online shop has a &#039;buy this&#039;-link, which uses the URI scheme. &lt;br /&gt;
**PROBLEM: click on the link opens the application. how does the merchant notice this.&lt;br /&gt;
***POSSIBLE SOLUTION: javascript can detect the click.&lt;br /&gt;
***POSSIBLE SOLUTION: the checkout site checks its bitcoin account for payment via httprequest &lt;br /&gt;
**PROBLEM: the time problem (~10minutes) is very apparent here. nobody wants to wait 10minutes for the transaction to be confirmed.&lt;br /&gt;
* a person only has an online client, no actual application&lt;br /&gt;
**PROBLEM: how to redirect the URI, so that the online client gets a notice?&lt;br /&gt;
&lt;br /&gt;
===Backwards compatibility===&lt;br /&gt;
we want URIs generated in 2011 to still work in 2036. think about extensibility. of course we can make only educated guesses (and nothing more!) about the future, but don&#039;t act as if there is none. this should be the best we can do, but it should not be seen as forever set in stone. make it possible for later generations to improve our work, to mend our errors, without breaking the URIs created now. Version incompatibility is the easiest thing to drive users crazy: &amp;quot;i now upgraded to this shiny new version. what? it doesn&#039;t support the old format? AAAAAAARRRGH!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1713</id>
		<title>BIP 0020</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1713"/>
		<updated>2011-01-10T19:24:31Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: /* use-cases */  there was half a sentence missing. weird.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is about creating a URI scheme for bitcoin.&lt;br /&gt;
Previous discussion in the forum http://www.bitcoin.org/smf/index.php?topic=55.0&lt;br /&gt;
x-btc specification at [[x-btc]]&lt;br /&gt;
&lt;br /&gt;
==RFC 3986==&lt;br /&gt;
&#039;&#039;&#039;the following is taken from wikipedia&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Internet standard [http://rfc.net/std0066.html STD 66] (also RFC 3986) defines the generic syntax to be used in all URI schemes. Every URI is defined as consisting of four parts, as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;scheme name&amp;gt; : &amp;lt;hierarchical part&amp;gt; [ ? &amp;lt;query&amp;gt; ] [ # &amp;lt;fragment&amp;gt; ]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;scheme name&#039;&#039;&#039; consists of a letter followed by any combination of letters, digits, and the plus (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;) characters; and is terminated by a colon (&amp;quot;:&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;hierarchical part&#039;&#039;&#039; of the URI is intended to hold identification information hierarchical in nature. Usually this part begins with a double forward slash (&amp;quot;//&amp;quot;), followed by an &#039;&#039;authority&#039;&#039; part and an optional &#039;&#039;path&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;authority&#039;&#039;&#039; part holds an optional user information part terminated with &amp;quot;@&amp;quot; (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;username:password@&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), a hostname (i.e. domain name or IP address), and an optional port number preceded by a colon &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;path&#039;&#039;&#039; part is a sequence of segments (conceptually similar to directories, though not necessarily representing them) separated by a forward slash (&amp;quot;/&amp;quot;). Each segment can contain parameters separated from it using a semicolon (&amp;quot;;&amp;quot;), though this is rarely used in practice.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;query&#039;&#039;&#039;  is an optional part separated with a question mark, which contains additional identification information which is not hierarchical in nature. The query string syntax is not generically defined, but is commonly organized as a sequence of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; pairs separated by a semicolon&amp;lt;ref&amp;gt;&lt;br /&gt;
RFC 1866 section 8.2.1 : by Tim Berners-Lee in 1995 encourages CGI authors to support &#039;;&#039; in addition to &#039;&amp;amp;&#039;.&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2 HTML 4.01 Specification: Implementation, and Design Notes]: &amp;quot;CGI implementors support the use of &amp;quot;;&amp;quot; in place of &amp;quot;&amp;amp;&amp;quot; to save authors the trouble of escaping &amp;quot;&amp;amp;&amp;quot; characters in this manner.&amp;quot;&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/MarkUp/html-spec/html-spec_foot.html#FOOT26 Hypertext Markup Language - 2.0]&lt;br /&gt;
&amp;quot;CGI implementors are encouraged to support the use of &#039;;&#039; in place of &#039;&amp;amp;&#039; &amp;quot; &lt;br /&gt;
&amp;lt;/ref&amp;gt; or separated by an ampersand, for example:&lt;br /&gt;
 Semicolon: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1;key2=value2;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 Ampersand: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1&amp;amp;key2=value2&amp;amp;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;fragment&#039;&#039;&#039; is an optional part separated from the front parts by a hash (&amp;quot;#&amp;quot;). It holds additional identifying information that provides direction to a secondary resource, e.g. a section heading in an article identified by the remainder of the URI.  When the primary resource is an HTML document, the &#039;&#039;&#039;fragment&#039;&#039;&#039; is often an &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; attribute of a specific element and web browsers will make sure this element is visible.&lt;br /&gt;
&lt;br /&gt;
==tcatm==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
() means optional, $* are placeholders&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:($label@)$address(?$query)(#$message)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
label: Label for that address (e.g. name of receiver)&lt;br /&gt;
address: bitcoin address&lt;br /&gt;
query: pairs of key=value seperated by &amp;amp;&lt;br /&gt;
message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Query keys ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
amount: amount of BTC&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=50#Payment%20for%20product%20xyz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded.&lt;br /&gt;
&lt;br /&gt;
=== Criticism ===&lt;br /&gt;
* Not compliant with URI specification.&lt;br /&gt;
* Biased toward &#039;&#039;&#039;only&#039;&#039;&#039; decimal BitCoins&lt;br /&gt;
** Not future-proof, since the DecimalBitCoin unit (BTC) will be too large for regular trading should bitcoin ever gain large-scale adoption.&lt;br /&gt;
&lt;br /&gt;
==tcatm, modified by LukeJr==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
[] means optional, &amp;lt;&amp;gt; are placeholders&lt;br /&gt;
&lt;br /&gt;
 bitcoin:&amp;lt;address&amp;gt;?amount=&amp;lt;size&amp;gt;[&amp;amp;label=&amp;lt;label&amp;gt;][&amp;amp;message=&amp;lt;message&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
*label: Label for that address (e.g. name of receiver)&lt;br /&gt;
*address: bitcoin address&lt;br /&gt;
*message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
*size: amount of base bitcoin units (uBTCents/TBCᵇ-- NOT full DecimalBitCoins/BTC); this number can be prefixed with the letter &amp;quot;x&amp;quot; to signify a hexadecimal number; it can be appended with &amp;quot;X&amp;quot; &amp;lt;digits&amp;gt; to signify an exponent to the base multiplier (that is, &#039;X8&#039; moves your number 8 positional places to the left-- if specifying decimal units (without an &amp;quot;x&amp;quot; prefix), this means the standard BTC unit; if specifying hexadecimal units (with an &amp;quot;x&amp;quot; prefix), this means ᵇTBC units)&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?label=Luke-Jr&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to Luke-Jr:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=20.3X8&amp;amp;label=Luke-Jr&lt;br /&gt;
&lt;br /&gt;
Request to send 400 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=x400X4&lt;br /&gt;
&lt;br /&gt;
Request to send 5 uBTC:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=500&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=5X9&amp;amp;label=Luke-Jr&amp;amp;message=Donation%20for%20project%20xyz&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded properly.&lt;br /&gt;
&lt;br /&gt;
=== BNF syntax ===&lt;br /&gt;
&lt;br /&gt;
 bitcoinurn      = &amp;quot;bitcoin:&amp;quot; bitcoinaddress [ &amp;quot;;version=&amp;quot; bitcoinversion ] [ &amp;quot;?&amp;quot; bitcoinparams ]&lt;br /&gt;
 bitcoinaddress  = FIXME :)&lt;br /&gt;
 bitcoinversion  = &amp;quot;1.0&amp;quot;&lt;br /&gt;
 bitcoinparams   = *bitcoinparam&lt;br /&gt;
 bitcoinparam    = amountparam | labelparam | messageparam&lt;br /&gt;
 amountparam     = &amp;quot;amount=&amp;quot; amount&lt;br /&gt;
 amount          = amountdecimal | amounthex&lt;br /&gt;
 amountdecimal   = digits [ &amp;quot;X&amp;quot; digits ]&lt;br /&gt;
 amounthex       = &amp;quot;x&amp;quot; hexdigits [ &amp;quot;X&amp;quot; hexdigits ]&lt;br /&gt;
 labelparam      = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
 messageparam    = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
&lt;br /&gt;
=== Parsing Amount ===&lt;br /&gt;
==== ECMAScript ====&lt;br /&gt;
 reAmount = /^(([\d.]+)(X(\d+))?|x([\da-f]*)(\.([\da-f]*))?(X([\da-f]+))?)$/i;&lt;br /&gt;
 function parseAmount(txt) {&lt;br /&gt;
 	var m = txt.match(reAmount);&lt;br /&gt;
 	return m[5] ? (&lt;br /&gt;
 		(&lt;br /&gt;
 			parseInt(m[5], 16) +&lt;br /&gt;
 			(m[7] ? (parseInt(m[7], 16) * Math.pow(16, -(m[7].length))) : 0)&lt;br /&gt;
 		) * (&lt;br /&gt;
 			m[9] ? Math.pow(16, parseInt(m[9], 16)) : 1&lt;br /&gt;
 		)&lt;br /&gt;
 	) : (&lt;br /&gt;
 			m[2]&lt;br /&gt;
 		*&lt;br /&gt;
 			(m[4] ? Math.pow(10, m[4]) : 1)&lt;br /&gt;
 	);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
=== Criticism ===&lt;br /&gt;
&lt;br /&gt;
==marcusaurelius==&lt;br /&gt;
&lt;br /&gt;
===payment identifiers, not person identifiers===&lt;br /&gt;
in my opinion, the most basic idea of the URI scheme (as this is a currency) is to facilitate payment. so the URIs should represent first and foremost payments. if it represents something else, this needs to be specified. Thus&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
bitcoin:13guMzcGPvdD3qjQvCoNc1w5XAgJ638KaQ&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
represent a &#039;&#039;&#039;payment&#039;&#039;&#039; to me using my bitcoin adress, not my bitcoin adress itself. So after parsing the URI (via link/qr/whatever) the application should open a transaction window with the adress filled in. you then need to add an amount and confirm the payment.&lt;br /&gt;
If your application is smart, it will also have a button &amp;quot;just store the adress&amp;quot;. But the point i am trying to make, is that the default use of the URI should be for payment, nor for exchanging adresses.&lt;br /&gt;
&lt;br /&gt;
===accessibility===&lt;br /&gt;
&#039;&#039;&#039;imported from the forum:&#039;&#039;&#039; I like the simplicity of bitcoin:xxxxxxxxxxxxx plus very much approve of its accessibility. Should someone from the outside happen to see such a uri, the protocol name already gives a description. A quick google search should then do the rest. x-btc sounds much more cryptic, the chance that s/1 gooogles that out of curiosity are much slimmer. Also, very likely, what s/he will find are mostly technical specifications. Not a good introduction to bitcoin.&lt;br /&gt;
&lt;br /&gt;
for the same reason i am for using &#039;&amp;amp;&#039; as a delimiter for key-value-pairs. people know it from urls. make it easy for people to understand what is going on.&lt;br /&gt;
&lt;br /&gt;
===keep it simple===&lt;br /&gt;
don&#039;t explicitly write down information that can be inferred. don&#039;t mark the address as an address. if there is no address, this does lose much of its utility. we could, however, specify &#039;address&#039; as a reserved word, so that &amp;lt;code&amp;gt;&lt;br /&gt;
bitcoin:address?amount=50&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
would initiate a transaction with the amount filled in, but with a blank address. I am not convinced that there is a use case, though.&lt;br /&gt;
&lt;br /&gt;
===use-cases===&lt;br /&gt;
before the URI scheme is finalised one should think long and hard about use-cases. in what circumstances will who use this for what?&lt;br /&gt;
* an online shop has a &#039;buy this&#039;-link, which uses the URI scheme. &lt;br /&gt;
**PROBLEM: click on the link opens the application. how does the merchant notice this.&lt;br /&gt;
***POSSIBLE SOLUTION: javascript can detect the click.&lt;br /&gt;
***POSSIBLE SOLUTION: the checkout site checks its bitcoin account for payment via httprequest &lt;br /&gt;
**PROBLEM: the time problem (~10minutes) is very apparent here. nobody wants to wait 10minutes for the transaction to be confirmed.&lt;br /&gt;
* a person only has an online client, no actual application&lt;br /&gt;
**PROBLEM: how to redirect the URI, so that the online client gets a notice?&lt;br /&gt;
&lt;br /&gt;
===backwards-compatibility===&lt;br /&gt;
we want URIs generated in 2011 to still work in 2036. think about extensibility. of course we can make only educated guesses (and nothing more!) about the future, but don&#039;t act as if there is none. this should be the best we can do, but it should not be seen as forever set in stone. make it possible for later generations to improve our work, to mend our errors, without breaking the URIs created now. Version incompatibility is the easiest thing to drive users crazy: &amp;quot;i now upgraded to this shiny new version. what? it doesn&#039;t support the old format? AAAAAAARRRGH!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1686</id>
		<title>BIP 0020</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1686"/>
		<updated>2011-01-10T12:44:22Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: /* use-cases */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is about creating a URI scheme for bitcoin.&lt;br /&gt;
Previous discussion in the forum http://www.bitcoin.org/smf/index.php?topic=55.0&lt;br /&gt;
x-btc specification at http://pastebin.com/VsBbmXQx&lt;br /&gt;
&lt;br /&gt;
==RFC 3986==&lt;br /&gt;
&#039;&#039;&#039;the following is taken from wikipedia&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Internet standard [http://rfc.net/std0066.html STD 66] (also RFC 3986) defines the generic syntax to be used in all URI schemes. Every URI is defined as consisting of four parts, as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;scheme name&amp;gt; : &amp;lt;hierarchical part&amp;gt; [ ? &amp;lt;query&amp;gt; ] [ # &amp;lt;fragment&amp;gt; ]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;scheme name&#039;&#039;&#039; consists of a letter followed by any combination of letters, digits, and the plus (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;) characters; and is terminated by a colon (&amp;quot;:&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;hierarchical part&#039;&#039;&#039; of the URI is intended to hold identification information hierarchical in nature. Usually this part begins with a double forward slash (&amp;quot;//&amp;quot;), followed by an &#039;&#039;authority&#039;&#039; part and an optional &#039;&#039;path&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;authority&#039;&#039;&#039; part holds an optional user information part terminated with &amp;quot;@&amp;quot; (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;username:password@&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), a hostname (i.e. domain name or IP address), and an optional port number preceded by a colon &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;path&#039;&#039;&#039; part is a sequence of segments (conceptually similar to directories, though not necessarily representing them) separated by a forward slash (&amp;quot;/&amp;quot;). Each segment can contain parameters separated from it using a semicolon (&amp;quot;;&amp;quot;), though this is rarely used in practice.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;query&#039;&#039;&#039;  is an optional part separated with a question mark, which contains additional identification information which is not hierarchical in nature. The query string syntax is not generically defined, but is commonly organized as a sequence of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; pairs separated by a semicolon&amp;lt;ref&amp;gt;&lt;br /&gt;
RFC 1866 section 8.2.1 : by Tim Berners-Lee in 1995 encourages CGI authors to support &#039;;&#039; in addition to &#039;&amp;amp;&#039;.&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2 HTML 4.01 Specification: Implementation, and Design Notes]: &amp;quot;CGI implementors support the use of &amp;quot;;&amp;quot; in place of &amp;quot;&amp;amp;&amp;quot; to save authors the trouble of escaping &amp;quot;&amp;amp;&amp;quot; characters in this manner.&amp;quot;&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/MarkUp/html-spec/html-spec_foot.html#FOOT26 Hypertext Markup Language - 2.0]&lt;br /&gt;
&amp;quot;CGI implementors are encouraged to support the use of &#039;;&#039; in place of &#039;&amp;amp;&#039; &amp;quot; &lt;br /&gt;
&amp;lt;/ref&amp;gt; or separated by an ampersand, for example:&lt;br /&gt;
 Semicolon: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1;key2=value2;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 Ampersand: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1&amp;amp;key2=value2&amp;amp;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;fragment&#039;&#039;&#039; is an optional part separated from the front parts by a hash (&amp;quot;#&amp;quot;). It holds additional identifying information that provides direction to a secondary resource, e.g. a section heading in an article identified by the remainder of the URI.  When the primary resource is an HTML document, the &#039;&#039;&#039;fragment&#039;&#039;&#039; is often an &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; attribute of a specific element and web browsers will make sure this element is visible.&lt;br /&gt;
&lt;br /&gt;
==tcatm==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
() means optional, $* are placeholders&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:($label@)$address(?$query)(#$message)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
label: Label for that address (e.g. name of receiver)&lt;br /&gt;
address: bitcoin address&lt;br /&gt;
query: pairs of key=value seperated by &amp;amp;&lt;br /&gt;
message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Query keys ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
amount: amount of BTC&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=50#Payment%20for%20product%20xyz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==tcatm, modified by LukeJr==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
[] means optional, &amp;lt;&amp;gt; are placeholders&lt;br /&gt;
&lt;br /&gt;
 bitcoin:&amp;lt;address&amp;gt;?amount=&amp;lt;size&amp;gt;&amp;lt;unit&amp;gt;[&amp;amp;label=&amp;lt;label&amp;gt;][&amp;amp;message=&amp;lt;message&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
*label: Label for that address (e.g. name of receiver)&lt;br /&gt;
*address: bitcoin address&lt;br /&gt;
*message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
*size: amount of $unit&lt;br /&gt;
*unit: BTC, [ᵗˢᵐᵇ]TBC[ᵗˢᵐᵇ], or null/omitted (which refers to the base unit)&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&lt;br /&gt;
Address with name:BTC&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to tcatm:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30BTC&amp;amp;label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 400 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=400TBC&lt;br /&gt;
&lt;br /&gt;
Request to send 5 uBTC:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=500&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8qztaWWXt?amount=50BTC&amp;amp;label=tcatm&amp;amp;message=Payment%20for%20product%20xyz&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded properly.&lt;br /&gt;
&lt;br /&gt;
=== BNF syntax ===&lt;br /&gt;
&lt;br /&gt;
 bitcoinurn      = &amp;quot;bitcoin:&amp;quot; bitcoinaddress [ &amp;quot;;version=&amp;quot; bitcoinversion ] [ &amp;quot;?&amp;quot; bitcoinparams ]&lt;br /&gt;
 bitcoinaddress  = FIXME :)&lt;br /&gt;
 bitcoinversion  = &amp;quot;1.0&amp;quot;&lt;br /&gt;
 bitcoinparams   = *bitcoinparam&lt;br /&gt;
 bitcoinparam    = amountparam | labelparam | messageparam&lt;br /&gt;
 amountparam     = &amp;quot;amount=&amp;quot; amount&lt;br /&gt;
 amount          = amountdecimal | amounthex | amounttonal&lt;br /&gt;
 amountdecimal   = digits btcunits&lt;br /&gt;
 amounthex       = &amp;quot;x&amp;quot; hexdigits bitcoinunit&lt;br /&gt;
 amounttonal     = tonaldigits tbcunits&lt;br /&gt;
 bitcoinunit     = btcunits | tbcunits&lt;br /&gt;
 btcunits        = &amp;quot;BTC&amp;quot; | &amp;quot;BTCents&amp;quot; | &amp;quot;uBTC&amp;quot; | &amp;quot;uBTCents&amp;quot;&lt;br /&gt;
 tbcunits        = tbcunitsunicode | tbcunitsascii | tbcunitsfull&lt;br /&gt;
 tbcunitsunicode = &amp;quot;ᵇTBC&amp;quot; | &amp;quot;ᵐTBC&amp;quot; | &amp;quot;ˢTBC&amp;quot; | &amp;quot;ᵗTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCᵗ&amp;quot; | &amp;quot;TBCˢ&amp;quot; | &amp;quot;TBCᵐ&amp;quot; | &amp;quot;TBCᵇ&amp;quot;&lt;br /&gt;
 tbcunitsascii   = &amp;quot;bTBC&amp;quot; | &amp;quot;mTBC&amp;quot; | &amp;quot;sTBC&amp;quot; | &amp;quot;tTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCt&amp;quot; | &amp;quot;TBCs&amp;quot; | &amp;quot;TBCm&amp;quot; | &amp;quot;TBCb&amp;quot;&lt;br /&gt;
 tbcunitsfull    = &amp;quot;tran-TBC&amp;quot; | &amp;quot;song-TBC&amp;quot; | &amp;quot;tam-TBC&amp;quot; | &amp;quot;bong-TBC&amp;quot; | &amp;quot;mill-TBC&amp;quot; | &amp;quot;san-TBC&amp;quot; | &amp;quot;ton-TBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBC-ton&amp;quot; | &amp;quot;TBC-san&amp;quot; | &amp;quot;TBC-mill&amp;quot; | &amp;quot;TBC-bong&amp;quot;&lt;br /&gt;
 labelparam      = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
 messageparam    = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==marcusaurelius==&lt;br /&gt;
&lt;br /&gt;
===payment identifiers, not person identifiers===&lt;br /&gt;
in my opinion, the most basic idea of the URI scheme (as this is a currency) is to facilitate payment. so the URIs should represent first and foremost payments. if it represents something else, this needs to be specified. Thus&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
bitcoin:13guMzcGPvdD3qjQvCoNc1w5XAgJ638KaQ&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
represent a &#039;&#039;&#039;payment&#039;&#039;&#039; to me using my bitcoin adress, not my bitcoin adress itself. So after parsing the URI (via link/qr/whatever) the application should open a transaction window with the adress filled in. you then need to add an amount and confirm the payment.&lt;br /&gt;
If your application is smart, it will also have a button &amp;quot;just store the adress&amp;quot;. But the point i am trying to make, is that the default use of the URI should be for payment, nor for exchanging adresses.&lt;br /&gt;
&lt;br /&gt;
===accessibility===&lt;br /&gt;
&#039;&#039;&#039;imported from the forum:&#039;&#039;&#039; I like the simplicity of bitcoin:xxxxxxxxxxxxx plus very much approve of its accessibility. Should someone from the outside happen to see such a uri, the protocol name already gives a description. A quick google search should then do the rest. x-btc sounds much more cryptic, the chance that s/1 gooogles that out of curiosity are much slimmer. Also, very likely, what s/he will find are mostly technical specifications. Not a good introduction to bitcoin.&lt;br /&gt;
&lt;br /&gt;
for the same reason i am for using &#039;&amp;amp;&#039; as a delimiter for key-value-pairs. people know it from urls. make it easy for people to understand what is going on.&lt;br /&gt;
&lt;br /&gt;
===keep it simple===&lt;br /&gt;
don&#039;t explicitly write down information that can be inferred. don&#039;t mark the address as an address. if there is no address, this does lose much of its utility. we could, however, specify &#039;address&#039; as a reserved word, so that &amp;lt;code&amp;gt;&lt;br /&gt;
bitcoin:address?amount=50&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
would initiate a transaction with the amount filled in, but with a blank address. I am not convinced that there is a use case, though.&lt;br /&gt;
&lt;br /&gt;
===use-cases===&lt;br /&gt;
before the URI scheme is finalised one should think long and hard about use-cases. in what circumstances will who use this for what?&lt;br /&gt;
* an online shop has a &#039;buy this&#039;-link, which uses the URI scheme. &lt;br /&gt;
**PROBLEM: click on the link opens the application. how does the merchant notice this.&lt;br /&gt;
***POSSIBLE SOLUTION: javascript can detect the click.&lt;br /&gt;
***POSSIBLE SOLUTION: the checkout site checks the httprequest &lt;br /&gt;
**PROBLEM: the time problem (~10minutes) is very apparent here. nobody wants to wait 10minutes for the transaction to be confirmed.&lt;br /&gt;
* a person only has an online client, no actual application&lt;br /&gt;
**PROBLEM: how to redirect the URI, so that the online client gets a notice?&lt;br /&gt;
&lt;br /&gt;
===backwards-compatibility===&lt;br /&gt;
we want URIs generated in 2011 to still work in 2036. think about extensibility. of course we can make only educated guesses (and nothing more!) about the future, but don&#039;t act as if there is none. this should be the best we can do, but it should not be seen as forever set in stone. make it possible for later generations to improve our work, to mend our errors, without breaking the URIs created now. Version incompatibility is the easiest thing to drive users crazy: &amp;quot;i now upgraded to this shiny new version. what? it doesn&#039;t support the old format? AAAAAAARRRGH!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1685</id>
		<title>BIP 0020</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1685"/>
		<updated>2011-01-10T12:32:27Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: /* marcusaurelius */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is about creating a URI scheme for bitcoin.&lt;br /&gt;
Previous discussion in the forum http://www.bitcoin.org/smf/index.php?topic=55.0&lt;br /&gt;
x-btc specification at http://pastebin.com/VsBbmXQx&lt;br /&gt;
&lt;br /&gt;
==RFC 3986==&lt;br /&gt;
&#039;&#039;&#039;the following is taken from wikipedia&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Internet standard [http://rfc.net/std0066.html STD 66] (also RFC 3986) defines the generic syntax to be used in all URI schemes. Every URI is defined as consisting of four parts, as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;scheme name&amp;gt; : &amp;lt;hierarchical part&amp;gt; [ ? &amp;lt;query&amp;gt; ] [ # &amp;lt;fragment&amp;gt; ]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;scheme name&#039;&#039;&#039; consists of a letter followed by any combination of letters, digits, and the plus (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;) characters; and is terminated by a colon (&amp;quot;:&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;hierarchical part&#039;&#039;&#039; of the URI is intended to hold identification information hierarchical in nature. Usually this part begins with a double forward slash (&amp;quot;//&amp;quot;), followed by an &#039;&#039;authority&#039;&#039; part and an optional &#039;&#039;path&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;authority&#039;&#039;&#039; part holds an optional user information part terminated with &amp;quot;@&amp;quot; (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;username:password@&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), a hostname (i.e. domain name or IP address), and an optional port number preceded by a colon &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;path&#039;&#039;&#039; part is a sequence of segments (conceptually similar to directories, though not necessarily representing them) separated by a forward slash (&amp;quot;/&amp;quot;). Each segment can contain parameters separated from it using a semicolon (&amp;quot;;&amp;quot;), though this is rarely used in practice.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;query&#039;&#039;&#039;  is an optional part separated with a question mark, which contains additional identification information which is not hierarchical in nature. The query string syntax is not generically defined, but is commonly organized as a sequence of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; pairs separated by a semicolon&amp;lt;ref&amp;gt;&lt;br /&gt;
RFC 1866 section 8.2.1 : by Tim Berners-Lee in 1995 encourages CGI authors to support &#039;;&#039; in addition to &#039;&amp;amp;&#039;.&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2 HTML 4.01 Specification: Implementation, and Design Notes]: &amp;quot;CGI implementors support the use of &amp;quot;;&amp;quot; in place of &amp;quot;&amp;amp;&amp;quot; to save authors the trouble of escaping &amp;quot;&amp;amp;&amp;quot; characters in this manner.&amp;quot;&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/MarkUp/html-spec/html-spec_foot.html#FOOT26 Hypertext Markup Language - 2.0]&lt;br /&gt;
&amp;quot;CGI implementors are encouraged to support the use of &#039;;&#039; in place of &#039;&amp;amp;&#039; &amp;quot; &lt;br /&gt;
&amp;lt;/ref&amp;gt; or separated by an ampersand, for example:&lt;br /&gt;
 Semicolon: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1;key2=value2;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 Ampersand: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1&amp;amp;key2=value2&amp;amp;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;fragment&#039;&#039;&#039; is an optional part separated from the front parts by a hash (&amp;quot;#&amp;quot;). It holds additional identifying information that provides direction to a secondary resource, e.g. a section heading in an article identified by the remainder of the URI.  When the primary resource is an HTML document, the &#039;&#039;&#039;fragment&#039;&#039;&#039; is often an &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; attribute of a specific element and web browsers will make sure this element is visible.&lt;br /&gt;
&lt;br /&gt;
==tcatm==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
() means optional, $* are placeholders&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:($label@)$address(?$query)(#$message)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
label: Label for that address (e.g. name of receiver)&lt;br /&gt;
address: bitcoin address&lt;br /&gt;
query: pairs of key=value seperated by &amp;amp;&lt;br /&gt;
message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Query keys ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
amount: amount of BTC&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=50#Payment%20for%20product%20xyz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==tcatm, modified by LukeJr==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
[] means optional, &amp;lt;&amp;gt; are placeholders&lt;br /&gt;
&lt;br /&gt;
 bitcoin:&amp;lt;address&amp;gt;?amount=&amp;lt;size&amp;gt;&amp;lt;unit&amp;gt;[&amp;amp;label=&amp;lt;label&amp;gt;][&amp;amp;message=&amp;lt;message&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
*label: Label for that address (e.g. name of receiver)&lt;br /&gt;
*address: bitcoin address&lt;br /&gt;
*message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
*size: amount of $unit&lt;br /&gt;
*unit: BTC, [ᵗˢᵐᵇ]TBC[ᵗˢᵐᵇ], or null/omitted (which refers to the base unit)&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&lt;br /&gt;
Address with name:BTC&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to tcatm:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30BTC&amp;amp;label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 400 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=400TBC&lt;br /&gt;
&lt;br /&gt;
Request to send 5 uBTC:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=500&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8qztaWWXt?amount=50BTC&amp;amp;label=tcatm&amp;amp;message=Payment%20for%20product%20xyz&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded properly.&lt;br /&gt;
&lt;br /&gt;
=== BNF syntax ===&lt;br /&gt;
&lt;br /&gt;
 bitcoinurn      = &amp;quot;bitcoin:&amp;quot; bitcoinaddress [ &amp;quot;;version=&amp;quot; bitcoinversion ] [ &amp;quot;?&amp;quot; bitcoinparams ]&lt;br /&gt;
 bitcoinaddress  = FIXME :)&lt;br /&gt;
 bitcoinversion  = &amp;quot;1.0&amp;quot;&lt;br /&gt;
 bitcoinparams   = *bitcoinparam&lt;br /&gt;
 bitcoinparam    = amountparam | labelparam | messageparam&lt;br /&gt;
 amountparam     = &amp;quot;amount=&amp;quot; amount&lt;br /&gt;
 amount          = amountdecimal | amounthex | amounttonal&lt;br /&gt;
 amountdecimal   = digits btcunits&lt;br /&gt;
 amounthex       = &amp;quot;x&amp;quot; hexdigits bitcoinunit&lt;br /&gt;
 amounttonal     = tonaldigits tbcunits&lt;br /&gt;
 bitcoinunit     = btcunits | tbcunits&lt;br /&gt;
 btcunits        = &amp;quot;BTC&amp;quot; | &amp;quot;BTCents&amp;quot; | &amp;quot;uBTC&amp;quot; | &amp;quot;uBTCents&amp;quot;&lt;br /&gt;
 tbcunits        = tbcunitsunicode | tbcunitsascii | tbcunitsfull&lt;br /&gt;
 tbcunitsunicode = &amp;quot;ᵇTBC&amp;quot; | &amp;quot;ᵐTBC&amp;quot; | &amp;quot;ˢTBC&amp;quot; | &amp;quot;ᵗTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCᵗ&amp;quot; | &amp;quot;TBCˢ&amp;quot; | &amp;quot;TBCᵐ&amp;quot; | &amp;quot;TBCᵇ&amp;quot;&lt;br /&gt;
 tbcunitsascii   = &amp;quot;bTBC&amp;quot; | &amp;quot;mTBC&amp;quot; | &amp;quot;sTBC&amp;quot; | &amp;quot;tTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCt&amp;quot; | &amp;quot;TBCs&amp;quot; | &amp;quot;TBCm&amp;quot; | &amp;quot;TBCb&amp;quot;&lt;br /&gt;
 tbcunitsfull    = &amp;quot;tran-TBC&amp;quot; | &amp;quot;song-TBC&amp;quot; | &amp;quot;tam-TBC&amp;quot; | &amp;quot;bong-TBC&amp;quot; | &amp;quot;mill-TBC&amp;quot; | &amp;quot;san-TBC&amp;quot; | &amp;quot;ton-TBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBC-ton&amp;quot; | &amp;quot;TBC-san&amp;quot; | &amp;quot;TBC-mill&amp;quot; | &amp;quot;TBC-bong&amp;quot;&lt;br /&gt;
 labelparam      = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
 messageparam    = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==marcusaurelius==&lt;br /&gt;
&lt;br /&gt;
===payment identifiers, not person identifiers===&lt;br /&gt;
in my opinion, the most basic idea of the URI scheme (as this is a currency) is to facilitate payment. so the URIs should represent first and foremost payments. if it represents something else, this needs to be specified. Thus&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
bitcoin:13guMzcGPvdD3qjQvCoNc1w5XAgJ638KaQ&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
represent a &#039;&#039;&#039;payment&#039;&#039;&#039; to me using my bitcoin adress, not my bitcoin adress itself. So after parsing the URI (via link/qr/whatever) the application should open a transaction window with the adress filled in. you then need to add an amount and confirm the payment.&lt;br /&gt;
If your application is smart, it will also have a button &amp;quot;just store the adress&amp;quot;. But the point i am trying to make, is that the default use of the URI should be for payment, nor for exchanging adresses.&lt;br /&gt;
&lt;br /&gt;
===accessibility===&lt;br /&gt;
&#039;&#039;&#039;imported from the forum:&#039;&#039;&#039; I like the simplicity of bitcoin:xxxxxxxxxxxxx plus very much approve of its accessibility. Should someone from the outside happen to see such a uri, the protocol name already gives a description. A quick google search should then do the rest. x-btc sounds much more cryptic, the chance that s/1 gooogles that out of curiosity are much slimmer. Also, very likely, what s/he will find are mostly technical specifications. Not a good introduction to bitcoin.&lt;br /&gt;
&lt;br /&gt;
for the same reason i am for using &#039;&amp;amp;&#039; as a delimiter for key-value-pairs. people know it from urls. make it easy for people to understand what is going on.&lt;br /&gt;
&lt;br /&gt;
===keep it simple===&lt;br /&gt;
don&#039;t explicitly write down information that can be inferred. don&#039;t mark the address as an address. if there is no address, this does lose much of its utility. we could, however, specify &#039;address&#039; as a reserved word, so that &amp;lt;code&amp;gt;&lt;br /&gt;
bitcoin:address?amount=50&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
would initiate a transaction with the amount filled in, but with a blank address. I am not convinced that there is a use case, though.&lt;br /&gt;
&lt;br /&gt;
===use-cases===&lt;br /&gt;
before the URI scheme is finalised one should think long and hard about use-cases. in what circumstances will who use this for what?&lt;br /&gt;
&lt;br /&gt;
===backwards-compatibility===&lt;br /&gt;
we want URIs generated in 2011 to still work in 2036. think about extensibility. of course we can make only educated guesses (and nothing more!) about the future, but don&#039;t act as if there is none. this should be the best we can do, but it should not be seen as forever set in stone. make it possible for later generations to improve our work, to mend our errors, without breaking the URIs created now. Version incompatibility is the easiest thing to drive users crazy: &amp;quot;i now upgraded to this shiny new version. what? it doesn&#039;t support the old format? AAAAAAARRRGH!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1684</id>
		<title>BIP 0020</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1684"/>
		<updated>2011-01-10T12:27:51Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: /* marcusaurelius */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is about creating a URI scheme for bitcoin.&lt;br /&gt;
Previous discussion in the forum http://www.bitcoin.org/smf/index.php?topic=55.0&lt;br /&gt;
x-btc specification at http://pastebin.com/VsBbmXQx&lt;br /&gt;
&lt;br /&gt;
==RFC 3986==&lt;br /&gt;
&#039;&#039;&#039;the following is taken from wikipedia&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Internet standard [http://rfc.net/std0066.html STD 66] (also RFC 3986) defines the generic syntax to be used in all URI schemes. Every URI is defined as consisting of four parts, as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;scheme name&amp;gt; : &amp;lt;hierarchical part&amp;gt; [ ? &amp;lt;query&amp;gt; ] [ # &amp;lt;fragment&amp;gt; ]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;scheme name&#039;&#039;&#039; consists of a letter followed by any combination of letters, digits, and the plus (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;) characters; and is terminated by a colon (&amp;quot;:&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;hierarchical part&#039;&#039;&#039; of the URI is intended to hold identification information hierarchical in nature. Usually this part begins with a double forward slash (&amp;quot;//&amp;quot;), followed by an &#039;&#039;authority&#039;&#039; part and an optional &#039;&#039;path&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;authority&#039;&#039;&#039; part holds an optional user information part terminated with &amp;quot;@&amp;quot; (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;username:password@&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), a hostname (i.e. domain name or IP address), and an optional port number preceded by a colon &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;path&#039;&#039;&#039; part is a sequence of segments (conceptually similar to directories, though not necessarily representing them) separated by a forward slash (&amp;quot;/&amp;quot;). Each segment can contain parameters separated from it using a semicolon (&amp;quot;;&amp;quot;), though this is rarely used in practice.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;query&#039;&#039;&#039;  is an optional part separated with a question mark, which contains additional identification information which is not hierarchical in nature. The query string syntax is not generically defined, but is commonly organized as a sequence of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; pairs separated by a semicolon&amp;lt;ref&amp;gt;&lt;br /&gt;
RFC 1866 section 8.2.1 : by Tim Berners-Lee in 1995 encourages CGI authors to support &#039;;&#039; in addition to &#039;&amp;amp;&#039;.&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2 HTML 4.01 Specification: Implementation, and Design Notes]: &amp;quot;CGI implementors support the use of &amp;quot;;&amp;quot; in place of &amp;quot;&amp;amp;&amp;quot; to save authors the trouble of escaping &amp;quot;&amp;amp;&amp;quot; characters in this manner.&amp;quot;&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/MarkUp/html-spec/html-spec_foot.html#FOOT26 Hypertext Markup Language - 2.0]&lt;br /&gt;
&amp;quot;CGI implementors are encouraged to support the use of &#039;;&#039; in place of &#039;&amp;amp;&#039; &amp;quot; &lt;br /&gt;
&amp;lt;/ref&amp;gt; or separated by an ampersand, for example:&lt;br /&gt;
 Semicolon: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1;key2=value2;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 Ampersand: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1&amp;amp;key2=value2&amp;amp;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;fragment&#039;&#039;&#039; is an optional part separated from the front parts by a hash (&amp;quot;#&amp;quot;). It holds additional identifying information that provides direction to a secondary resource, e.g. a section heading in an article identified by the remainder of the URI.  When the primary resource is an HTML document, the &#039;&#039;&#039;fragment&#039;&#039;&#039; is often an &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; attribute of a specific element and web browsers will make sure this element is visible.&lt;br /&gt;
&lt;br /&gt;
==tcatm==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
() means optional, $* are placeholders&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:($label@)$address(?$query)(#$message)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
label: Label for that address (e.g. name of receiver)&lt;br /&gt;
address: bitcoin address&lt;br /&gt;
query: pairs of key=value seperated by &amp;amp;&lt;br /&gt;
message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Query keys ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
amount: amount of BTC&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=50#Payment%20for%20product%20xyz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==tcatm, modified by LukeJr==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
[] means optional, &amp;lt;&amp;gt; are placeholders&lt;br /&gt;
&lt;br /&gt;
 bitcoin:&amp;lt;address&amp;gt;?amount=&amp;lt;size&amp;gt;&amp;lt;unit&amp;gt;[&amp;amp;label=&amp;lt;label&amp;gt;][&amp;amp;message=&amp;lt;message&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
*label: Label for that address (e.g. name of receiver)&lt;br /&gt;
*address: bitcoin address&lt;br /&gt;
*message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
*size: amount of $unit&lt;br /&gt;
*unit: BTC, [ᵗˢᵐᵇ]TBC[ᵗˢᵐᵇ], or null/omitted (which refers to the base unit)&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&lt;br /&gt;
Address with name:BTC&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to tcatm:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30BTC&amp;amp;label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 400 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=400TBC&lt;br /&gt;
&lt;br /&gt;
Request to send 5 uBTC:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=500&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8qztaWWXt?amount=50BTC&amp;amp;label=tcatm&amp;amp;message=Payment%20for%20product%20xyz&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded properly.&lt;br /&gt;
&lt;br /&gt;
=== BNF syntax ===&lt;br /&gt;
&lt;br /&gt;
 bitcoinurn      = &amp;quot;bitcoin:&amp;quot; bitcoinaddress [ &amp;quot;;version=&amp;quot; bitcoinversion ] [ &amp;quot;?&amp;quot; bitcoinparams ]&lt;br /&gt;
 bitcoinaddress  = FIXME :)&lt;br /&gt;
 bitcoinversion  = &amp;quot;1.0&amp;quot;&lt;br /&gt;
 bitcoinparams   = *bitcoinparam&lt;br /&gt;
 bitcoinparam    = amountparam | labelparam | messageparam&lt;br /&gt;
 amountparam     = &amp;quot;amount=&amp;quot; amount&lt;br /&gt;
 amount          = amountdecimal | amounthex | amounttonal&lt;br /&gt;
 amountdecimal   = digits btcunits&lt;br /&gt;
 amounthex       = &amp;quot;x&amp;quot; hexdigits bitcoinunit&lt;br /&gt;
 amounttonal     = tonaldigits tbcunits&lt;br /&gt;
 bitcoinunit     = btcunits | tbcunits&lt;br /&gt;
 btcunits        = &amp;quot;BTC&amp;quot; | &amp;quot;BTCents&amp;quot; | &amp;quot;uBTC&amp;quot; | &amp;quot;uBTCents&amp;quot;&lt;br /&gt;
 tbcunits        = tbcunitsunicode | tbcunitsascii | tbcunitsfull&lt;br /&gt;
 tbcunitsunicode = &amp;quot;ᵇTBC&amp;quot; | &amp;quot;ᵐTBC&amp;quot; | &amp;quot;ˢTBC&amp;quot; | &amp;quot;ᵗTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCᵗ&amp;quot; | &amp;quot;TBCˢ&amp;quot; | &amp;quot;TBCᵐ&amp;quot; | &amp;quot;TBCᵇ&amp;quot;&lt;br /&gt;
 tbcunitsascii   = &amp;quot;bTBC&amp;quot; | &amp;quot;mTBC&amp;quot; | &amp;quot;sTBC&amp;quot; | &amp;quot;tTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCt&amp;quot; | &amp;quot;TBCs&amp;quot; | &amp;quot;TBCm&amp;quot; | &amp;quot;TBCb&amp;quot;&lt;br /&gt;
 tbcunitsfull    = &amp;quot;tran-TBC&amp;quot; | &amp;quot;song-TBC&amp;quot; | &amp;quot;tam-TBC&amp;quot; | &amp;quot;bong-TBC&amp;quot; | &amp;quot;mill-TBC&amp;quot; | &amp;quot;san-TBC&amp;quot; | &amp;quot;ton-TBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBC-ton&amp;quot; | &amp;quot;TBC-san&amp;quot; | &amp;quot;TBC-mill&amp;quot; | &amp;quot;TBC-bong&amp;quot;&lt;br /&gt;
 labelparam      = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
 messageparam    = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==marcusaurelius==&lt;br /&gt;
&lt;br /&gt;
===payment identifiers, not person identifiers===&lt;br /&gt;
in my opinion, the most basic idea of the URI scheme (as this is a currency) is to facilitate payment. so the URIs should represent first and foremost payments. if it represents something else, this needs to be specified. Thus&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
bitcoin:13guMzcGPvdD3qjQvCoNc1w5XAgJ638KaQ&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
represent a &#039;&#039;&#039;payment&#039;&#039;&#039; to me using my bitcoin adress, not my bitcoin adress itself. So after parsing the URI (via link/qr/whatever) the application should open a transaction window with the adress filled in. you then need to add an amount and confirm the payment.&lt;br /&gt;
If your application is smart, it will also have a button &amp;quot;just store the adress&amp;quot;. But the point i am trying to make, is that the default use of the URI should be for payment, nor for exchanging adresses.&lt;br /&gt;
&lt;br /&gt;
===accessibility===&lt;br /&gt;
&#039;&#039;&#039;imported from the forum:&#039;&#039;&#039; I like the simplicity of bitcoin:xxxxxxxxxxxxx plus very much approve of its accessibility. Should someone from the outside happen to see such a uri, the protocol name already gives a description. A quick google search should then do the rest. x-btc sounds much more cryptic, the chance that s/1 gooogles that out of curiosity are much slimmer. Also, very likely, what s/he will find are mostly technical specifications. Not a good introduction to bitcoin.&lt;br /&gt;
&lt;br /&gt;
for the same reason i am for using &#039;&amp;amp;&#039; as a delimiter for key-value-pairs. people know it from urls. make it easy for people to understand what is going on.&lt;br /&gt;
&lt;br /&gt;
===keep it simple===&lt;br /&gt;
don&#039;t explicitly write down information that can be inferred. don&#039;t mark the address as an address. if there is no address, this does lose much of its utility. we could, however, specify &#039;address&#039; as a reserved word, so that &amp;lt;code&amp;gt;&lt;br /&gt;
bitcoin:address?amount=50&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
would initiate a transaction with the amount filled in, but with a blank address. I am not convinced that there is a use case, though.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1683</id>
		<title>BIP 0020</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1683"/>
		<updated>2011-01-10T12:17:57Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is about creating a URI scheme for bitcoin.&lt;br /&gt;
Previous discussion in the forum http://www.bitcoin.org/smf/index.php?topic=55.0&lt;br /&gt;
x-btc specification at http://pastebin.com/VsBbmXQx&lt;br /&gt;
&lt;br /&gt;
==RFC 3986==&lt;br /&gt;
&#039;&#039;&#039;the following is taken from wikipedia&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Internet standard [http://rfc.net/std0066.html STD 66] (also RFC 3986) defines the generic syntax to be used in all URI schemes. Every URI is defined as consisting of four parts, as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;scheme name&amp;gt; : &amp;lt;hierarchical part&amp;gt; [ ? &amp;lt;query&amp;gt; ] [ # &amp;lt;fragment&amp;gt; ]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;scheme name&#039;&#039;&#039; consists of a letter followed by any combination of letters, digits, and the plus (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;) characters; and is terminated by a colon (&amp;quot;:&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;hierarchical part&#039;&#039;&#039; of the URI is intended to hold identification information hierarchical in nature. Usually this part begins with a double forward slash (&amp;quot;//&amp;quot;), followed by an &#039;&#039;authority&#039;&#039; part and an optional &#039;&#039;path&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;authority&#039;&#039;&#039; part holds an optional user information part terminated with &amp;quot;@&amp;quot; (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;username:password@&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), a hostname (i.e. domain name or IP address), and an optional port number preceded by a colon &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;path&#039;&#039;&#039; part is a sequence of segments (conceptually similar to directories, though not necessarily representing them) separated by a forward slash (&amp;quot;/&amp;quot;). Each segment can contain parameters separated from it using a semicolon (&amp;quot;;&amp;quot;), though this is rarely used in practice.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;query&#039;&#039;&#039;  is an optional part separated with a question mark, which contains additional identification information which is not hierarchical in nature. The query string syntax is not generically defined, but is commonly organized as a sequence of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; pairs separated by a semicolon&amp;lt;ref&amp;gt;&lt;br /&gt;
RFC 1866 section 8.2.1 : by Tim Berners-Lee in 1995 encourages CGI authors to support &#039;;&#039; in addition to &#039;&amp;amp;&#039;.&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2 HTML 4.01 Specification: Implementation, and Design Notes]: &amp;quot;CGI implementors support the use of &amp;quot;;&amp;quot; in place of &amp;quot;&amp;amp;&amp;quot; to save authors the trouble of escaping &amp;quot;&amp;amp;&amp;quot; characters in this manner.&amp;quot;&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/MarkUp/html-spec/html-spec_foot.html#FOOT26 Hypertext Markup Language - 2.0]&lt;br /&gt;
&amp;quot;CGI implementors are encouraged to support the use of &#039;;&#039; in place of &#039;&amp;amp;&#039; &amp;quot; &lt;br /&gt;
&amp;lt;/ref&amp;gt; or separated by an ampersand, for example:&lt;br /&gt;
 Semicolon: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1;key2=value2;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 Ampersand: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1&amp;amp;key2=value2&amp;amp;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;fragment&#039;&#039;&#039; is an optional part separated from the front parts by a hash (&amp;quot;#&amp;quot;). It holds additional identifying information that provides direction to a secondary resource, e.g. a section heading in an article identified by the remainder of the URI.  When the primary resource is an HTML document, the &#039;&#039;&#039;fragment&#039;&#039;&#039; is often an &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; attribute of a specific element and web browsers will make sure this element is visible.&lt;br /&gt;
&lt;br /&gt;
==tcatm==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
() means optional, $* are placeholders&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:($label@)$address(?$query)(#$message)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
label: Label for that address (e.g. name of receiver)&lt;br /&gt;
address: bitcoin address&lt;br /&gt;
query: pairs of key=value seperated by &amp;amp;&lt;br /&gt;
message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Query keys ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
amount: amount of BTC&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=50#Payment%20for%20product%20xyz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==tcatm, modified by LukeJr==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
[] means optional, &amp;lt;&amp;gt; are placeholders&lt;br /&gt;
&lt;br /&gt;
 bitcoin:&amp;lt;address&amp;gt;?amount=&amp;lt;size&amp;gt;&amp;lt;unit&amp;gt;[&amp;amp;label=&amp;lt;label&amp;gt;][&amp;amp;message=&amp;lt;message&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
*label: Label for that address (e.g. name of receiver)&lt;br /&gt;
*address: bitcoin address&lt;br /&gt;
*message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
*size: amount of $unit&lt;br /&gt;
*unit: BTC, [ᵗˢᵐᵇ]TBC[ᵗˢᵐᵇ], or null/omitted (which refers to the base unit)&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&lt;br /&gt;
Address with name:BTC&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to tcatm:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30BTC&amp;amp;label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 400 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=400TBC&lt;br /&gt;
&lt;br /&gt;
Request to send 5 uBTC:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=500&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8qztaWWXt?amount=50BTC&amp;amp;label=tcatm&amp;amp;message=Payment%20for%20product%20xyz&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded properly.&lt;br /&gt;
&lt;br /&gt;
=== BNF syntax ===&lt;br /&gt;
&lt;br /&gt;
 bitcoinurn      = &amp;quot;bitcoin:&amp;quot; bitcoinaddress [ &amp;quot;;version=&amp;quot; bitcoinversion ] [ &amp;quot;?&amp;quot; bitcoinparams ]&lt;br /&gt;
 bitcoinaddress  = FIXME :)&lt;br /&gt;
 bitcoinversion  = &amp;quot;1.0&amp;quot;&lt;br /&gt;
 bitcoinparams   = *bitcoinparam&lt;br /&gt;
 bitcoinparam    = amountparam | labelparam | messageparam&lt;br /&gt;
 amountparam     = &amp;quot;amount=&amp;quot; amount&lt;br /&gt;
 amount          = amountdecimal | amounthex | amounttonal&lt;br /&gt;
 amountdecimal   = digits btcunits&lt;br /&gt;
 amounthex       = &amp;quot;x&amp;quot; hexdigits bitcoinunit&lt;br /&gt;
 amounttonal     = tonaldigits tbcunits&lt;br /&gt;
 bitcoinunit     = btcunits | tbcunits&lt;br /&gt;
 btcunits        = &amp;quot;BTC&amp;quot; | &amp;quot;BTCents&amp;quot; | &amp;quot;uBTC&amp;quot; | &amp;quot;uBTCents&amp;quot;&lt;br /&gt;
 tbcunits        = tbcunitsunicode | tbcunitsascii | tbcunitsfull&lt;br /&gt;
 tbcunitsunicode = &amp;quot;ᵇTBC&amp;quot; | &amp;quot;ᵐTBC&amp;quot; | &amp;quot;ˢTBC&amp;quot; | &amp;quot;ᵗTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCᵗ&amp;quot; | &amp;quot;TBCˢ&amp;quot; | &amp;quot;TBCᵐ&amp;quot; | &amp;quot;TBCᵇ&amp;quot;&lt;br /&gt;
 tbcunitsascii   = &amp;quot;bTBC&amp;quot; | &amp;quot;mTBC&amp;quot; | &amp;quot;sTBC&amp;quot; | &amp;quot;tTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCt&amp;quot; | &amp;quot;TBCs&amp;quot; | &amp;quot;TBCm&amp;quot; | &amp;quot;TBCb&amp;quot;&lt;br /&gt;
 tbcunitsfull    = &amp;quot;tran-TBC&amp;quot; | &amp;quot;song-TBC&amp;quot; | &amp;quot;tam-TBC&amp;quot; | &amp;quot;bong-TBC&amp;quot; | &amp;quot;mill-TBC&amp;quot; | &amp;quot;san-TBC&amp;quot; | &amp;quot;ton-TBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBC-ton&amp;quot; | &amp;quot;TBC-san&amp;quot; | &amp;quot;TBC-mill&amp;quot; | &amp;quot;TBC-bong&amp;quot;&lt;br /&gt;
 labelparam      = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
 messageparam    = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==marcusaurelius==&lt;br /&gt;
&lt;br /&gt;
in my opinion, the most basic idea of the URI scheme (as this is a currency) is to facilitate payment. so the URIs should represent first and foremost payments. if it represents something else, this needs to be specified. Thus&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
bitcoin:13guMzcGPvdD3qjQvCoNc1w5XAgJ638KaQ&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
represent a &#039;&#039;&#039;payment&#039;&#039;&#039; to me using my bitcoin adress, not my bitcoin adress itself. So after parsing the URI (via link/qr/whatever) the application should open a transaction window with the adress filled in. you then need to add an amount and confirm the payment.&lt;br /&gt;
If your application is smart, it will also have a button &amp;quot;just store the adress&amp;quot;. But the point i am trying to make, is that the default use of the URI should be for payment, nor for exchanging adresses.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1682</id>
		<title>BIP 0020</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1682"/>
		<updated>2011-01-10T12:14:44Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: /* marcusaurelius */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==RFC 3986==&lt;br /&gt;
&#039;&#039;&#039;the following is taken from wikipedia&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Internet standard [http://rfc.net/std0066.html STD 66] (also RFC 3986) defines the generic syntax to be used in all URI schemes. Every URI is defined as consisting of four parts, as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;scheme name&amp;gt; : &amp;lt;hierarchical part&amp;gt; [ ? &amp;lt;query&amp;gt; ] [ # &amp;lt;fragment&amp;gt; ]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;scheme name&#039;&#039;&#039; consists of a letter followed by any combination of letters, digits, and the plus (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;) characters; and is terminated by a colon (&amp;quot;:&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;hierarchical part&#039;&#039;&#039; of the URI is intended to hold identification information hierarchical in nature. Usually this part begins with a double forward slash (&amp;quot;//&amp;quot;), followed by an &#039;&#039;authority&#039;&#039; part and an optional &#039;&#039;path&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;authority&#039;&#039;&#039; part holds an optional user information part terminated with &amp;quot;@&amp;quot; (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;username:password@&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), a hostname (i.e. domain name or IP address), and an optional port number preceded by a colon &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;path&#039;&#039;&#039; part is a sequence of segments (conceptually similar to directories, though not necessarily representing them) separated by a forward slash (&amp;quot;/&amp;quot;). Each segment can contain parameters separated from it using a semicolon (&amp;quot;;&amp;quot;), though this is rarely used in practice.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;query&#039;&#039;&#039;  is an optional part separated with a question mark, which contains additional identification information which is not hierarchical in nature. The query string syntax is not generically defined, but is commonly organized as a sequence of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; pairs separated by a semicolon&amp;lt;ref&amp;gt;&lt;br /&gt;
RFC 1866 section 8.2.1 : by Tim Berners-Lee in 1995 encourages CGI authors to support &#039;;&#039; in addition to &#039;&amp;amp;&#039;.&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2 HTML 4.01 Specification: Implementation, and Design Notes]: &amp;quot;CGI implementors support the use of &amp;quot;;&amp;quot; in place of &amp;quot;&amp;amp;&amp;quot; to save authors the trouble of escaping &amp;quot;&amp;amp;&amp;quot; characters in this manner.&amp;quot;&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/MarkUp/html-spec/html-spec_foot.html#FOOT26 Hypertext Markup Language - 2.0]&lt;br /&gt;
&amp;quot;CGI implementors are encouraged to support the use of &#039;;&#039; in place of &#039;&amp;amp;&#039; &amp;quot; &lt;br /&gt;
&amp;lt;/ref&amp;gt; or separated by an ampersand, for example:&lt;br /&gt;
 Semicolon: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1;key2=value2;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 Ampersand: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1&amp;amp;key2=value2&amp;amp;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;fragment&#039;&#039;&#039; is an optional part separated from the front parts by a hash (&amp;quot;#&amp;quot;). It holds additional identifying information that provides direction to a secondary resource, e.g. a section heading in an article identified by the remainder of the URI.  When the primary resource is an HTML document, the &#039;&#039;&#039;fragment&#039;&#039;&#039; is often an &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; attribute of a specific element and web browsers will make sure this element is visible.&lt;br /&gt;
&lt;br /&gt;
==tcatm==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
() means optional, $* are placeholders&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:($label@)$address(?$query)(#$message)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
label: Label for that address (e.g. name of receiver)&lt;br /&gt;
address: bitcoin address&lt;br /&gt;
query: pairs of key=value seperated by &amp;amp;&lt;br /&gt;
message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Query keys ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
amount: amount of BTC&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=50#Payment%20for%20product%20xyz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==tcatm, modified by LukeJr==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
[] means optional, &amp;lt;&amp;gt; are placeholders&lt;br /&gt;
&lt;br /&gt;
 bitcoin:&amp;lt;address&amp;gt;?amount=&amp;lt;size&amp;gt;&amp;lt;unit&amp;gt;[&amp;amp;label=&amp;lt;label&amp;gt;][&amp;amp;message=&amp;lt;message&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
*label: Label for that address (e.g. name of receiver)&lt;br /&gt;
*address: bitcoin address&lt;br /&gt;
*message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
*size: amount of $unit&lt;br /&gt;
*unit: BTC, [ᵗˢᵐᵇ]TBC[ᵗˢᵐᵇ], or null/omitted (which refers to the base unit)&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&lt;br /&gt;
Address with name:BTC&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to tcatm:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30BTC&amp;amp;label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 400 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=400TBC&lt;br /&gt;
&lt;br /&gt;
Request to send 5 uBTC:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=500&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8qztaWWXt?amount=50BTC&amp;amp;label=tcatm&amp;amp;message=Payment%20for%20product%20xyz&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded properly.&lt;br /&gt;
&lt;br /&gt;
=== BNF syntax ===&lt;br /&gt;
&lt;br /&gt;
 bitcoinurn      = &amp;quot;bitcoin:&amp;quot; bitcoinaddress [ &amp;quot;;version=&amp;quot; bitcoinversion ] [ &amp;quot;?&amp;quot; bitcoinparams ]&lt;br /&gt;
 bitcoinaddress  = FIXME :)&lt;br /&gt;
 bitcoinversion  = &amp;quot;1.0&amp;quot;&lt;br /&gt;
 bitcoinparams   = *bitcoinparam&lt;br /&gt;
 bitcoinparam    = amountparam | labelparam | messageparam&lt;br /&gt;
 amountparam     = &amp;quot;amount=&amp;quot; amount&lt;br /&gt;
 amount          = amountdecimal | amounthex | amounttonal&lt;br /&gt;
 amountdecimal   = digits btcunits&lt;br /&gt;
 amounthex       = &amp;quot;x&amp;quot; hexdigits bitcoinunit&lt;br /&gt;
 amounttonal     = tonaldigits tbcunits&lt;br /&gt;
 bitcoinunit     = btcunits | tbcunits&lt;br /&gt;
 btcunits        = &amp;quot;BTC&amp;quot; | &amp;quot;BTCents&amp;quot; | &amp;quot;uBTC&amp;quot; | &amp;quot;uBTCents&amp;quot;&lt;br /&gt;
 tbcunits        = tbcunitsunicode | tbcunitsascii | tbcunitsfull&lt;br /&gt;
 tbcunitsunicode = &amp;quot;ᵇTBC&amp;quot; | &amp;quot;ᵐTBC&amp;quot; | &amp;quot;ˢTBC&amp;quot; | &amp;quot;ᵗTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCᵗ&amp;quot; | &amp;quot;TBCˢ&amp;quot; | &amp;quot;TBCᵐ&amp;quot; | &amp;quot;TBCᵇ&amp;quot;&lt;br /&gt;
 tbcunitsascii   = &amp;quot;bTBC&amp;quot; | &amp;quot;mTBC&amp;quot; | &amp;quot;sTBC&amp;quot; | &amp;quot;tTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCt&amp;quot; | &amp;quot;TBCs&amp;quot; | &amp;quot;TBCm&amp;quot; | &amp;quot;TBCb&amp;quot;&lt;br /&gt;
 tbcunitsfull    = &amp;quot;tran-TBC&amp;quot; | &amp;quot;song-TBC&amp;quot; | &amp;quot;tam-TBC&amp;quot; | &amp;quot;bong-TBC&amp;quot; | &amp;quot;mill-TBC&amp;quot; | &amp;quot;san-TBC&amp;quot; | &amp;quot;ton-TBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBC-ton&amp;quot; | &amp;quot;TBC-san&amp;quot; | &amp;quot;TBC-mill&amp;quot; | &amp;quot;TBC-bong&amp;quot;&lt;br /&gt;
 labelparam      = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
 messageparam    = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==marcusaurelius==&lt;br /&gt;
&lt;br /&gt;
in my opinion, the most basic idea of the URI scheme (as this is a currency) is to facilitate payment. so the URIs should represent first and foremost payments. if it represents something else, this needs to be specified. Thus&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
bitcoin:13guMzcGPvdD3qjQvCoNc1w5XAgJ638KaQ&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
represent a &#039;&#039;&#039;payment&#039;&#039;&#039; to me using my bitcoin adress, not my bitcoin adress itself. So after parsing the URI (via link/qr/whatever) the application should open a transaction window with the adress filled in. you then need to add an amount and confirm the payment.&lt;br /&gt;
If your application is smart, it will also have a button &amp;quot;just store the adress&amp;quot;. But the point i am trying to make, is that the default use of the URI should be for payment, nor for exchanging adresses.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1681</id>
		<title>BIP 0020</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1681"/>
		<updated>2011-01-10T12:05:54Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: /* marcusaurelius */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==RFC 3986==&lt;br /&gt;
&#039;&#039;&#039;the following is taken from wikipedia&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Internet standard [http://rfc.net/std0066.html STD 66] (also RFC 3986) defines the generic syntax to be used in all URI schemes. Every URI is defined as consisting of four parts, as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;scheme name&amp;gt; : &amp;lt;hierarchical part&amp;gt; [ ? &amp;lt;query&amp;gt; ] [ # &amp;lt;fragment&amp;gt; ]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;scheme name&#039;&#039;&#039; consists of a letter followed by any combination of letters, digits, and the plus (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;) characters; and is terminated by a colon (&amp;quot;:&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;hierarchical part&#039;&#039;&#039; of the URI is intended to hold identification information hierarchical in nature. Usually this part begins with a double forward slash (&amp;quot;//&amp;quot;), followed by an &#039;&#039;authority&#039;&#039; part and an optional &#039;&#039;path&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;authority&#039;&#039;&#039; part holds an optional user information part terminated with &amp;quot;@&amp;quot; (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;username:password@&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), a hostname (i.e. domain name or IP address), and an optional port number preceded by a colon &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;path&#039;&#039;&#039; part is a sequence of segments (conceptually similar to directories, though not necessarily representing them) separated by a forward slash (&amp;quot;/&amp;quot;). Each segment can contain parameters separated from it using a semicolon (&amp;quot;;&amp;quot;), though this is rarely used in practice.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;query&#039;&#039;&#039;  is an optional part separated with a question mark, which contains additional identification information which is not hierarchical in nature. The query string syntax is not generically defined, but is commonly organized as a sequence of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; pairs separated by a semicolon&amp;lt;ref&amp;gt;&lt;br /&gt;
RFC 1866 section 8.2.1 : by Tim Berners-Lee in 1995 encourages CGI authors to support &#039;;&#039; in addition to &#039;&amp;amp;&#039;.&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2 HTML 4.01 Specification: Implementation, and Design Notes]: &amp;quot;CGI implementors support the use of &amp;quot;;&amp;quot; in place of &amp;quot;&amp;amp;&amp;quot; to save authors the trouble of escaping &amp;quot;&amp;amp;&amp;quot; characters in this manner.&amp;quot;&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/MarkUp/html-spec/html-spec_foot.html#FOOT26 Hypertext Markup Language - 2.0]&lt;br /&gt;
&amp;quot;CGI implementors are encouraged to support the use of &#039;;&#039; in place of &#039;&amp;amp;&#039; &amp;quot; &lt;br /&gt;
&amp;lt;/ref&amp;gt; or separated by an ampersand, for example:&lt;br /&gt;
 Semicolon: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1;key2=value2;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 Ampersand: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1&amp;amp;key2=value2&amp;amp;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;fragment&#039;&#039;&#039; is an optional part separated from the front parts by a hash (&amp;quot;#&amp;quot;). It holds additional identifying information that provides direction to a secondary resource, e.g. a section heading in an article identified by the remainder of the URI.  When the primary resource is an HTML document, the &#039;&#039;&#039;fragment&#039;&#039;&#039; is often an &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; attribute of a specific element and web browsers will make sure this element is visible.&lt;br /&gt;
&lt;br /&gt;
==tcatm==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
() means optional, $* are placeholders&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:($label@)$address(?$query)(#$message)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
label: Label for that address (e.g. name of receiver)&lt;br /&gt;
address: bitcoin address&lt;br /&gt;
query: pairs of key=value seperated by &amp;amp;&lt;br /&gt;
message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Query keys ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
amount: amount of BTC&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=50#Payment%20for%20product%20xyz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==tcatm, modified by LukeJr==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
[] means optional, &amp;lt;&amp;gt; are placeholders&lt;br /&gt;
&lt;br /&gt;
 bitcoin:&amp;lt;address&amp;gt;?amount=&amp;lt;size&amp;gt;&amp;lt;unit&amp;gt;[&amp;amp;label=&amp;lt;label&amp;gt;][&amp;amp;message=&amp;lt;message&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
*label: Label for that address (e.g. name of receiver)&lt;br /&gt;
*address: bitcoin address&lt;br /&gt;
*message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
*size: amount of $unit&lt;br /&gt;
*unit: BTC, [ᵗˢᵐᵇ]TBC[ᵗˢᵐᵇ], or null/omitted (which refers to the base unit)&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&lt;br /&gt;
Address with name:BTC&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to tcatm:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30BTC&amp;amp;label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 400 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=400TBC&lt;br /&gt;
&lt;br /&gt;
Request to send 5 uBTC:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=500&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8qztaWWXt?amount=50BTC&amp;amp;label=tcatm&amp;amp;message=Payment%20for%20product%20xyz&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded properly.&lt;br /&gt;
&lt;br /&gt;
=== BNF syntax ===&lt;br /&gt;
&lt;br /&gt;
 bitcoinurn      = &amp;quot;bitcoin:&amp;quot; bitcoinaddress [ &amp;quot;;version=&amp;quot; bitcoinversion ] [ &amp;quot;?&amp;quot; bitcoinparams ]&lt;br /&gt;
 bitcoinaddress  = FIXME :)&lt;br /&gt;
 bitcoinversion  = &amp;quot;1.0&amp;quot;&lt;br /&gt;
 bitcoinparams   = *bitcoinparam&lt;br /&gt;
 bitcoinparam    = amountparam | labelparam | messageparam&lt;br /&gt;
 amountparam     = &amp;quot;amount=&amp;quot; amount&lt;br /&gt;
 amount          = amountdecimal | amounthex | amounttonal&lt;br /&gt;
 amountdecimal   = digits btcunits&lt;br /&gt;
 amounthex       = &amp;quot;x&amp;quot; hexdigits bitcoinunit&lt;br /&gt;
 amounttonal     = tonaldigits tbcunits&lt;br /&gt;
 bitcoinunit     = btcunits | tbcunits&lt;br /&gt;
 btcunits        = &amp;quot;BTC&amp;quot; | &amp;quot;BTCents&amp;quot; | &amp;quot;uBTC&amp;quot; | &amp;quot;uBTCents&amp;quot;&lt;br /&gt;
 tbcunits        = tbcunitsunicode | tbcunitsascii | tbcunitsfull&lt;br /&gt;
 tbcunitsunicode = &amp;quot;ᵇTBC&amp;quot; | &amp;quot;ᵐTBC&amp;quot; | &amp;quot;ˢTBC&amp;quot; | &amp;quot;ᵗTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCᵗ&amp;quot; | &amp;quot;TBCˢ&amp;quot; | &amp;quot;TBCᵐ&amp;quot; | &amp;quot;TBCᵇ&amp;quot;&lt;br /&gt;
 tbcunitsascii   = &amp;quot;bTBC&amp;quot; | &amp;quot;mTBC&amp;quot; | &amp;quot;sTBC&amp;quot; | &amp;quot;tTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCt&amp;quot; | &amp;quot;TBCs&amp;quot; | &amp;quot;TBCm&amp;quot; | &amp;quot;TBCb&amp;quot;&lt;br /&gt;
 tbcunitsfull    = &amp;quot;tran-TBC&amp;quot; | &amp;quot;song-TBC&amp;quot; | &amp;quot;tam-TBC&amp;quot; | &amp;quot;bong-TBC&amp;quot; | &amp;quot;mill-TBC&amp;quot; | &amp;quot;san-TBC&amp;quot; | &amp;quot;ton-TBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBC-ton&amp;quot; | &amp;quot;TBC-san&amp;quot; | &amp;quot;TBC-mill&amp;quot; | &amp;quot;TBC-bong&amp;quot;&lt;br /&gt;
 labelparam      = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
 messageparam    = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==marcusaurelius==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1680</id>
		<title>BIP 0020</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1680"/>
		<updated>2011-01-10T12:05:39Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: /* marcusaurelius */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==RFC 3986==&lt;br /&gt;
&#039;&#039;&#039;the following is taken from wikipedia&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Internet standard [http://rfc.net/std0066.html STD 66] (also RFC 3986) defines the generic syntax to be used in all URI schemes. Every URI is defined as consisting of four parts, as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;scheme name&amp;gt; : &amp;lt;hierarchical part&amp;gt; [ ? &amp;lt;query&amp;gt; ] [ # &amp;lt;fragment&amp;gt; ]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;scheme name&#039;&#039;&#039; consists of a letter followed by any combination of letters, digits, and the plus (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;) characters; and is terminated by a colon (&amp;quot;:&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;hierarchical part&#039;&#039;&#039; of the URI is intended to hold identification information hierarchical in nature. Usually this part begins with a double forward slash (&amp;quot;//&amp;quot;), followed by an &#039;&#039;authority&#039;&#039; part and an optional &#039;&#039;path&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;authority&#039;&#039;&#039; part holds an optional user information part terminated with &amp;quot;@&amp;quot; (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;username:password@&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), a hostname (i.e. domain name or IP address), and an optional port number preceded by a colon &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;path&#039;&#039;&#039; part is a sequence of segments (conceptually similar to directories, though not necessarily representing them) separated by a forward slash (&amp;quot;/&amp;quot;). Each segment can contain parameters separated from it using a semicolon (&amp;quot;;&amp;quot;), though this is rarely used in practice.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;query&#039;&#039;&#039;  is an optional part separated with a question mark, which contains additional identification information which is not hierarchical in nature. The query string syntax is not generically defined, but is commonly organized as a sequence of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; pairs separated by a semicolon&amp;lt;ref&amp;gt;&lt;br /&gt;
RFC 1866 section 8.2.1 : by Tim Berners-Lee in 1995 encourages CGI authors to support &#039;;&#039; in addition to &#039;&amp;amp;&#039;.&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2 HTML 4.01 Specification: Implementation, and Design Notes]: &amp;quot;CGI implementors support the use of &amp;quot;;&amp;quot; in place of &amp;quot;&amp;amp;&amp;quot; to save authors the trouble of escaping &amp;quot;&amp;amp;&amp;quot; characters in this manner.&amp;quot;&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/MarkUp/html-spec/html-spec_foot.html#FOOT26 Hypertext Markup Language - 2.0]&lt;br /&gt;
&amp;quot;CGI implementors are encouraged to support the use of &#039;;&#039; in place of &#039;&amp;amp;&#039; &amp;quot; &lt;br /&gt;
&amp;lt;/ref&amp;gt; or separated by an ampersand, for example:&lt;br /&gt;
 Semicolon: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1;key2=value2;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 Ampersand: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1&amp;amp;key2=value2&amp;amp;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;fragment&#039;&#039;&#039; is an optional part separated from the front parts by a hash (&amp;quot;#&amp;quot;). It holds additional identifying information that provides direction to a secondary resource, e.g. a section heading in an article identified by the remainder of the URI.  When the primary resource is an HTML document, the &#039;&#039;&#039;fragment&#039;&#039;&#039; is often an &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; attribute of a specific element and web browsers will make sure this element is visible.&lt;br /&gt;
&lt;br /&gt;
==tcatm==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
() means optional, $* are placeholders&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:($label@)$address(?$query)(#$message)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
label: Label for that address (e.g. name of receiver)&lt;br /&gt;
address: bitcoin address&lt;br /&gt;
query: pairs of key=value seperated by &amp;amp;&lt;br /&gt;
message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Query keys ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
amount: amount of BTC&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=50#Payment%20for%20product%20xyz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==tcatm, modified by LukeJr==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
[] means optional, &amp;lt;&amp;gt; are placeholders&lt;br /&gt;
&lt;br /&gt;
 bitcoin:&amp;lt;address&amp;gt;?amount=&amp;lt;size&amp;gt;&amp;lt;unit&amp;gt;[&amp;amp;label=&amp;lt;label&amp;gt;][&amp;amp;message=&amp;lt;message&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
*label: Label for that address (e.g. name of receiver)&lt;br /&gt;
*address: bitcoin address&lt;br /&gt;
*message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
*size: amount of $unit&lt;br /&gt;
*unit: BTC, [ᵗˢᵐᵇ]TBC[ᵗˢᵐᵇ], or null/omitted (which refers to the base unit)&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&lt;br /&gt;
Address with name:BTC&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to tcatm:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30BTC&amp;amp;label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 400 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=400TBC&lt;br /&gt;
&lt;br /&gt;
Request to send 5 uBTC:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=500&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8qztaWWXt?amount=50BTC&amp;amp;label=tcatm&amp;amp;message=Payment%20for%20product%20xyz&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded properly.&lt;br /&gt;
&lt;br /&gt;
=== BNF syntax ===&lt;br /&gt;
&lt;br /&gt;
 bitcoinurn      = &amp;quot;bitcoin:&amp;quot; bitcoinaddress [ &amp;quot;;version=&amp;quot; bitcoinversion ] [ &amp;quot;?&amp;quot; bitcoinparams ]&lt;br /&gt;
 bitcoinaddress  = FIXME :)&lt;br /&gt;
 bitcoinversion  = &amp;quot;1.0&amp;quot;&lt;br /&gt;
 bitcoinparams   = *bitcoinparam&lt;br /&gt;
 bitcoinparam    = amountparam | labelparam | messageparam&lt;br /&gt;
 amountparam     = &amp;quot;amount=&amp;quot; amount&lt;br /&gt;
 amount          = amountdecimal | amounthex | amounttonal&lt;br /&gt;
 amountdecimal   = digits btcunits&lt;br /&gt;
 amounthex       = &amp;quot;x&amp;quot; hexdigits bitcoinunit&lt;br /&gt;
 amounttonal     = tonaldigits tbcunits&lt;br /&gt;
 bitcoinunit     = btcunits | tbcunits&lt;br /&gt;
 btcunits        = &amp;quot;BTC&amp;quot; | &amp;quot;BTCents&amp;quot; | &amp;quot;uBTC&amp;quot; | &amp;quot;uBTCents&amp;quot;&lt;br /&gt;
 tbcunits        = tbcunitsunicode | tbcunitsascii | tbcunitsfull&lt;br /&gt;
 tbcunitsunicode = &amp;quot;ᵇTBC&amp;quot; | &amp;quot;ᵐTBC&amp;quot; | &amp;quot;ˢTBC&amp;quot; | &amp;quot;ᵗTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCᵗ&amp;quot; | &amp;quot;TBCˢ&amp;quot; | &amp;quot;TBCᵐ&amp;quot; | &amp;quot;TBCᵇ&amp;quot;&lt;br /&gt;
 tbcunitsascii   = &amp;quot;bTBC&amp;quot; | &amp;quot;mTBC&amp;quot; | &amp;quot;sTBC&amp;quot; | &amp;quot;tTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCt&amp;quot; | &amp;quot;TBCs&amp;quot; | &amp;quot;TBCm&amp;quot; | &amp;quot;TBCb&amp;quot;&lt;br /&gt;
 tbcunitsfull    = &amp;quot;tran-TBC&amp;quot; | &amp;quot;song-TBC&amp;quot; | &amp;quot;tam-TBC&amp;quot; | &amp;quot;bong-TBC&amp;quot; | &amp;quot;mill-TBC&amp;quot; | &amp;quot;san-TBC&amp;quot; | &amp;quot;ton-TBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBC-ton&amp;quot; | &amp;quot;TBC-san&amp;quot; | &amp;quot;TBC-mill&amp;quot; | &amp;quot;TBC-bong&amp;quot;&lt;br /&gt;
 labelparam      = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
 messageparam    = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==marcusaurelius==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1679</id>
		<title>BIP 0020</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1679"/>
		<updated>2011-01-10T12:05:13Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: /* RFC 3986 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==RFC 3986==&lt;br /&gt;
&#039;&#039;&#039;the following is taken from wikipedia&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Internet standard [http://rfc.net/std0066.html STD 66] (also RFC 3986) defines the generic syntax to be used in all URI schemes. Every URI is defined as consisting of four parts, as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;scheme name&amp;gt; : &amp;lt;hierarchical part&amp;gt; [ ? &amp;lt;query&amp;gt; ] [ # &amp;lt;fragment&amp;gt; ]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;scheme name&#039;&#039;&#039; consists of a letter followed by any combination of letters, digits, and the plus (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;) characters; and is terminated by a colon (&amp;quot;:&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;hierarchical part&#039;&#039;&#039; of the URI is intended to hold identification information hierarchical in nature. Usually this part begins with a double forward slash (&amp;quot;//&amp;quot;), followed by an &#039;&#039;authority&#039;&#039; part and an optional &#039;&#039;path&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;authority&#039;&#039;&#039; part holds an optional user information part terminated with &amp;quot;@&amp;quot; (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;username:password@&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), a hostname (i.e. domain name or IP address), and an optional port number preceded by a colon &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;path&#039;&#039;&#039; part is a sequence of segments (conceptually similar to directories, though not necessarily representing them) separated by a forward slash (&amp;quot;/&amp;quot;). Each segment can contain parameters separated from it using a semicolon (&amp;quot;;&amp;quot;), though this is rarely used in practice.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;query&#039;&#039;&#039;  is an optional part separated with a question mark, which contains additional identification information which is not hierarchical in nature. The query string syntax is not generically defined, but is commonly organized as a sequence of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; pairs separated by a semicolon&amp;lt;ref&amp;gt;&lt;br /&gt;
RFC 1866 section 8.2.1 : by Tim Berners-Lee in 1995 encourages CGI authors to support &#039;;&#039; in addition to &#039;&amp;amp;&#039;.&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2 HTML 4.01 Specification: Implementation, and Design Notes]: &amp;quot;CGI implementors support the use of &amp;quot;;&amp;quot; in place of &amp;quot;&amp;amp;&amp;quot; to save authors the trouble of escaping &amp;quot;&amp;amp;&amp;quot; characters in this manner.&amp;quot;&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/MarkUp/html-spec/html-spec_foot.html#FOOT26 Hypertext Markup Language - 2.0]&lt;br /&gt;
&amp;quot;CGI implementors are encouraged to support the use of &#039;;&#039; in place of &#039;&amp;amp;&#039; &amp;quot; &lt;br /&gt;
&amp;lt;/ref&amp;gt; or separated by an ampersand, for example:&lt;br /&gt;
 Semicolon: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1;key2=value2;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 Ampersand: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1&amp;amp;key2=value2&amp;amp;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;fragment&#039;&#039;&#039; is an optional part separated from the front parts by a hash (&amp;quot;#&amp;quot;). It holds additional identifying information that provides direction to a secondary resource, e.g. a section heading in an article identified by the remainder of the URI.  When the primary resource is an HTML document, the &#039;&#039;&#039;fragment&#039;&#039;&#039; is often an &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; attribute of a specific element and web browsers will make sure this element is visible.&lt;br /&gt;
&lt;br /&gt;
==tcatm==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
() means optional, $* are placeholders&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:($label@)$address(?$query)(#$message)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
label: Label for that address (e.g. name of receiver)&lt;br /&gt;
address: bitcoin address&lt;br /&gt;
query: pairs of key=value seperated by &amp;amp;&lt;br /&gt;
message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Query keys ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
amount: amount of BTC&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=50#Payment%20for%20product%20xyz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==tcatm, modified by LukeJr==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
[] means optional, &amp;lt;&amp;gt; are placeholders&lt;br /&gt;
&lt;br /&gt;
 bitcoin:&amp;lt;address&amp;gt;?amount=&amp;lt;size&amp;gt;&amp;lt;unit&amp;gt;[&amp;amp;label=&amp;lt;label&amp;gt;][&amp;amp;message=&amp;lt;message&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
*label: Label for that address (e.g. name of receiver)&lt;br /&gt;
*address: bitcoin address&lt;br /&gt;
*message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
*size: amount of $unit&lt;br /&gt;
*unit: BTC, [ᵗˢᵐᵇ]TBC[ᵗˢᵐᵇ], or null/omitted (which refers to the base unit)&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&lt;br /&gt;
Address with name:BTC&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to tcatm:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30BTC&amp;amp;label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 400 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=400TBC&lt;br /&gt;
&lt;br /&gt;
Request to send 5 uBTC:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=500&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8qztaWWXt?amount=50BTC&amp;amp;label=tcatm&amp;amp;message=Payment%20for%20product%20xyz&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded properly.&lt;br /&gt;
&lt;br /&gt;
=== BNF syntax ===&lt;br /&gt;
&lt;br /&gt;
 bitcoinurn      = &amp;quot;bitcoin:&amp;quot; bitcoinaddress [ &amp;quot;;version=&amp;quot; bitcoinversion ] [ &amp;quot;?&amp;quot; bitcoinparams ]&lt;br /&gt;
 bitcoinaddress  = FIXME :)&lt;br /&gt;
 bitcoinversion  = &amp;quot;1.0&amp;quot;&lt;br /&gt;
 bitcoinparams   = *bitcoinparam&lt;br /&gt;
 bitcoinparam    = amountparam | labelparam | messageparam&lt;br /&gt;
 amountparam     = &amp;quot;amount=&amp;quot; amount&lt;br /&gt;
 amount          = amountdecimal | amounthex | amounttonal&lt;br /&gt;
 amountdecimal   = digits btcunits&lt;br /&gt;
 amounthex       = &amp;quot;x&amp;quot; hexdigits bitcoinunit&lt;br /&gt;
 amounttonal     = tonaldigits tbcunits&lt;br /&gt;
 bitcoinunit     = btcunits | tbcunits&lt;br /&gt;
 btcunits        = &amp;quot;BTC&amp;quot; | &amp;quot;BTCents&amp;quot; | &amp;quot;uBTC&amp;quot; | &amp;quot;uBTCents&amp;quot;&lt;br /&gt;
 tbcunits        = tbcunitsunicode | tbcunitsascii | tbcunitsfull&lt;br /&gt;
 tbcunitsunicode = &amp;quot;ᵇTBC&amp;quot; | &amp;quot;ᵐTBC&amp;quot; | &amp;quot;ˢTBC&amp;quot; | &amp;quot;ᵗTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCᵗ&amp;quot; | &amp;quot;TBCˢ&amp;quot; | &amp;quot;TBCᵐ&amp;quot; | &amp;quot;TBCᵇ&amp;quot;&lt;br /&gt;
 tbcunitsascii   = &amp;quot;bTBC&amp;quot; | &amp;quot;mTBC&amp;quot; | &amp;quot;sTBC&amp;quot; | &amp;quot;tTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCt&amp;quot; | &amp;quot;TBCs&amp;quot; | &amp;quot;TBCm&amp;quot; | &amp;quot;TBCb&amp;quot;&lt;br /&gt;
 tbcunitsfull    = &amp;quot;tran-TBC&amp;quot; | &amp;quot;song-TBC&amp;quot; | &amp;quot;tam-TBC&amp;quot; | &amp;quot;bong-TBC&amp;quot; | &amp;quot;mill-TBC&amp;quot; | &amp;quot;san-TBC&amp;quot; | &amp;quot;ton-TBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBC-ton&amp;quot; | &amp;quot;TBC-san&amp;quot; | &amp;quot;TBC-mill&amp;quot; | &amp;quot;TBC-bong&amp;quot;&lt;br /&gt;
 labelparam      = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
 messageparam    = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==marcusaurelius==&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1678</id>
		<title>BIP 0020</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1678"/>
		<updated>2011-01-10T12:02:31Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: rfc 3986&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==RFC 3986==&lt;br /&gt;
&lt;br /&gt;
[[Internet standard]] [http://rfc.net/std0066.html STD 66] (also RFC 3986) defines the generic syntax to be used in all URI schemes. Every URI is defined as consisting of four parts, as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;scheme name&amp;gt; : &amp;lt;hierarchical part&amp;gt; [ ? &amp;lt;query&amp;gt; ] [ # &amp;lt;fragment&amp;gt; ]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;scheme name&#039;&#039;&#039; consists of a letter followed by any combination of letters, digits, and the plus (&amp;quot;+&amp;quot;), period (&amp;quot;.&amp;quot;), or hyphen (&amp;quot;-&amp;quot;) characters; and is terminated by a colon (&amp;quot;:&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;hierarchical part&#039;&#039;&#039; of the URI is intended to hold identification information hierarchical in nature. Usually this part begins with a double forward slash (&amp;quot;//&amp;quot;), followed by an &#039;&#039;authority&#039;&#039; part and an optional &#039;&#039;path&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;authority&#039;&#039;&#039; part holds an optional user information part terminated with &amp;quot;@&amp;quot; (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;username:password@&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), a hostname (i.e. [[domain name]] or [[IP address]]), and an optional [[TCP and UDP port|port number]] preceded by a colon &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;path&#039;&#039;&#039; part is a sequence of segments (conceptually similar to [[Directory (file systems)|directories]], though not necessarily representing them) separated by a forward slash (&amp;quot;/&amp;quot;). Each segment can contain parameters separated from it using a semicolon (&amp;quot;;&amp;quot;), though this is rarely used in practice.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;query&#039;&#039;&#039;  is an optional part separated with a question mark, which contains additional identification information which is not hierarchical in nature. The [[query string]] syntax is not generically defined, but is commonly organized as a sequence of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; pairs separated by a semicolon&amp;lt;ref&amp;gt;&lt;br /&gt;
RFC 1866 section 8.2.1 : by Tim Berners-Lee in 1995 encourages CGI authors to support &#039;;&#039; in addition to &#039;&amp;amp;&#039;.&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2 HTML 4.01 Specification: Implementation, and Design Notes]: &amp;quot;CGI implementors support the use of &amp;quot;;&amp;quot; in place of &amp;quot;&amp;amp;&amp;quot; to save authors the trouble of escaping &amp;quot;&amp;amp;&amp;quot; characters in this manner.&amp;quot;&lt;br /&gt;
&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&lt;br /&gt;
[http://www.w3.org/MarkUp/html-spec/html-spec_foot.html#FOOT26 Hypertext Markup Language - 2.0]&lt;br /&gt;
&amp;quot;CGI implementors are encouraged to support the use of &#039;;&#039; in place of &#039;&amp;amp;&#039; &amp;quot; &lt;br /&gt;
&amp;lt;/ref&amp;gt; or separated by an ampersand, for example:&lt;br /&gt;
 Semicolon: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1;key2=value2;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 Ampersand: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;key1=value1&amp;amp;key2=value2&amp;amp;key3=value3&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;[[Fragment identifier|fragment]]&#039;&#039;&#039; is an optional part separated from the front parts by a [[Number sign|hash]] (&amp;quot;#&amp;quot;). It holds additional identifying information that provides direction to a secondary resource, e.g. a section heading in an article identified by the remainder of the URI.  When the primary resource is an [[HTML]] document, the &#039;&#039;&#039;fragment&#039;&#039;&#039; is often an [[HTML#Attributes|&amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; attribute]] of a specific element and [[web browser]]s will make sure this element is visible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==tcatm==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
() means optional, $* are placeholders&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:($label@)$address(?$query)(#$message)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
label: Label for that address (e.g. name of receiver)&lt;br /&gt;
address: bitcoin address&lt;br /&gt;
query: pairs of key=value seperated by &amp;amp;&lt;br /&gt;
message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Query keys ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
amount: amount of BTC&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=50#Payment%20for%20product%20xyz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==tcatm, modified by LukeJr==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
[] means optional, &amp;lt;&amp;gt; are placeholders&lt;br /&gt;
&lt;br /&gt;
 bitcoin:&amp;lt;address&amp;gt;?amount=&amp;lt;size&amp;gt;&amp;lt;unit&amp;gt;[&amp;amp;label=&amp;lt;label&amp;gt;][&amp;amp;message=&amp;lt;message&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
*label: Label for that address (e.g. name of receiver)&lt;br /&gt;
*address: bitcoin address&lt;br /&gt;
*message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
*size: amount of $unit&lt;br /&gt;
*unit: BTC, [ᵗˢᵐᵇ]TBC[ᵗˢᵐᵇ], or null/omitted (which refers to the base unit)&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&lt;br /&gt;
Address with name:BTC&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to tcatm:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30BTC&amp;amp;label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 400 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=400TBC&lt;br /&gt;
&lt;br /&gt;
Request to send 5 uBTC:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=500&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8qztaWWXt?amount=50BTC&amp;amp;label=tcatm&amp;amp;message=Payment%20for%20product%20xyz&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded properly.&lt;br /&gt;
&lt;br /&gt;
=== BNF syntax ===&lt;br /&gt;
&lt;br /&gt;
 bitcoinurn      = &amp;quot;bitcoin:&amp;quot; bitcoinaddress [ &amp;quot;;version=&amp;quot; bitcoinversion ] [ &amp;quot;?&amp;quot; bitcoinparams ]&lt;br /&gt;
 bitcoinaddress  = FIXME :)&lt;br /&gt;
 bitcoinversion  = &amp;quot;1.0&amp;quot;&lt;br /&gt;
 bitcoinparams   = *bitcoinparam&lt;br /&gt;
 bitcoinparam    = amountparam | labelparam | messageparam&lt;br /&gt;
 amountparam     = &amp;quot;amount=&amp;quot; amount&lt;br /&gt;
 amount          = amountdecimal | amounthex | amounttonal&lt;br /&gt;
 amountdecimal   = digits btcunits&lt;br /&gt;
 amounthex       = &amp;quot;x&amp;quot; hexdigits bitcoinunit&lt;br /&gt;
 amounttonal     = tonaldigits tbcunits&lt;br /&gt;
 bitcoinunit     = btcunits | tbcunits&lt;br /&gt;
 btcunits        = &amp;quot;BTC&amp;quot; | &amp;quot;BTCents&amp;quot; | &amp;quot;uBTC&amp;quot; | &amp;quot;uBTCents&amp;quot;&lt;br /&gt;
 tbcunits        = tbcunitsunicode | tbcunitsascii | tbcunitsfull&lt;br /&gt;
 tbcunitsunicode = &amp;quot;ᵇTBC&amp;quot; | &amp;quot;ᵐTBC&amp;quot; | &amp;quot;ˢTBC&amp;quot; | &amp;quot;ᵗTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCᵗ&amp;quot; | &amp;quot;TBCˢ&amp;quot; | &amp;quot;TBCᵐ&amp;quot; | &amp;quot;TBCᵇ&amp;quot;&lt;br /&gt;
 tbcunitsascii   = &amp;quot;bTBC&amp;quot; | &amp;quot;mTBC&amp;quot; | &amp;quot;sTBC&amp;quot; | &amp;quot;tTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCt&amp;quot; | &amp;quot;TBCs&amp;quot; | &amp;quot;TBCm&amp;quot; | &amp;quot;TBCb&amp;quot;&lt;br /&gt;
 tbcunitsfull    = &amp;quot;tran-TBC&amp;quot; | &amp;quot;song-TBC&amp;quot; | &amp;quot;tam-TBC&amp;quot; | &amp;quot;bong-TBC&amp;quot; | &amp;quot;mill-TBC&amp;quot; | &amp;quot;san-TBC&amp;quot; | &amp;quot;ton-TBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBC-ton&amp;quot; | &amp;quot;TBC-san&amp;quot; | &amp;quot;TBC-mill&amp;quot; | &amp;quot;TBC-bong&amp;quot;&lt;br /&gt;
 labelparam      = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
 messageparam    = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==marcusaurelius==&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1676</id>
		<title>BIP 0020</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BIP_0020&amp;diff=1676"/>
		<updated>2011-01-10T11:58:25Z</updated>

		<summary type="html">&lt;p&gt;Marcusaurelius: distinguished between tcatm&amp;#039;s proposal and LukeJr&amp;#039;s changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==tcatm==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
() means optional, $* are placeholders&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:($label@)$address(?$query)(#$message)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
label: Label for that address (e.g. name of receiver)&lt;br /&gt;
address: bitcoin address&lt;br /&gt;
query: pairs of key=value seperated by &amp;amp;&lt;br /&gt;
message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Query keys ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
amount: amount of BTC&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Address with name:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:tcatm@18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=50#Payment%20for%20product%20xyz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==tcatm, modified by LukeJr==&lt;br /&gt;
&lt;br /&gt;
I propose a scheme like this:&lt;br /&gt;
&lt;br /&gt;
[] means optional, &amp;lt;&amp;gt; are placeholders&lt;br /&gt;
&lt;br /&gt;
 bitcoin:&amp;lt;address&amp;gt;?amount=&amp;lt;size&amp;gt;&amp;lt;unit&amp;gt;[&amp;amp;label=&amp;lt;label&amp;gt;][&amp;amp;message=&amp;lt;message&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
*label: Label for that address (e.g. name of receiver)&lt;br /&gt;
*address: bitcoin address&lt;br /&gt;
*message: optional message that is shown to the user after scanning the QR code&lt;br /&gt;
*size: amount of $unit&lt;br /&gt;
*unit: BTC, [ᵗˢᵐᵇ]TBC[ᵗˢᵐᵇ], or null/omitted (which refers to the base unit)&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Just the address:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt&lt;br /&gt;
&lt;br /&gt;
Address with name:BTC&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 20.30 BTC to tcatm:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=20.30BTC&amp;amp;label=tcatm&lt;br /&gt;
&lt;br /&gt;
Request to send 400 TBC to Luke:&lt;br /&gt;
 bitcoin:1KczVqwopWXQdFLe5sNQbpCq7yGSmXx2oo?amount=400TBC&lt;br /&gt;
&lt;br /&gt;
Request to send 5 uBTC:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt?amount=500&lt;br /&gt;
&lt;br /&gt;
Request to send 50 BTC with message:&lt;br /&gt;
 bitcoin:18pnDgDYFMAKsHTA3ZqyAi6t8qztaWWXt?amount=50BTC&amp;amp;label=tcatm&amp;amp;message=Payment%20for%20product%20xyz&lt;br /&gt;
&lt;br /&gt;
Characters must be URI encoded properly.&lt;br /&gt;
&lt;br /&gt;
=== BNF syntax ===&lt;br /&gt;
&lt;br /&gt;
 bitcoinurn      = &amp;quot;bitcoin:&amp;quot; bitcoinaddress [ &amp;quot;;version=&amp;quot; bitcoinversion ] [ &amp;quot;?&amp;quot; bitcoinparams ]&lt;br /&gt;
 bitcoinaddress  = FIXME :)&lt;br /&gt;
 bitcoinversion  = &amp;quot;1.0&amp;quot;&lt;br /&gt;
 bitcoinparams   = *bitcoinparam&lt;br /&gt;
 bitcoinparam    = amountparam | labelparam | messageparam&lt;br /&gt;
 amountparam     = &amp;quot;amount=&amp;quot; amount&lt;br /&gt;
 amount          = amountdecimal | amounthex | amounttonal&lt;br /&gt;
 amountdecimal   = digits btcunits&lt;br /&gt;
 amounthex       = &amp;quot;x&amp;quot; hexdigits bitcoinunit&lt;br /&gt;
 amounttonal     = tonaldigits tbcunits&lt;br /&gt;
 bitcoinunit     = btcunits | tbcunits&lt;br /&gt;
 btcunits        = &amp;quot;BTC&amp;quot; | &amp;quot;BTCents&amp;quot; | &amp;quot;uBTC&amp;quot; | &amp;quot;uBTCents&amp;quot;&lt;br /&gt;
 tbcunits        = tbcunitsunicode | tbcunitsascii | tbcunitsfull&lt;br /&gt;
 tbcunitsunicode = &amp;quot;ᵇTBC&amp;quot; | &amp;quot;ᵐTBC&amp;quot; | &amp;quot;ˢTBC&amp;quot; | &amp;quot;ᵗTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCᵗ&amp;quot; | &amp;quot;TBCˢ&amp;quot; | &amp;quot;TBCᵐ&amp;quot; | &amp;quot;TBCᵇ&amp;quot;&lt;br /&gt;
 tbcunitsascii   = &amp;quot;bTBC&amp;quot; | &amp;quot;mTBC&amp;quot; | &amp;quot;sTBC&amp;quot; | &amp;quot;tTBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBCt&amp;quot; | &amp;quot;TBCs&amp;quot; | &amp;quot;TBCm&amp;quot; | &amp;quot;TBCb&amp;quot;&lt;br /&gt;
 tbcunitsfull    = &amp;quot;tran-TBC&amp;quot; | &amp;quot;song-TBC&amp;quot; | &amp;quot;tam-TBC&amp;quot; | &amp;quot;bong-TBC&amp;quot; | &amp;quot;mill-TBC&amp;quot; | &amp;quot;san-TBC&amp;quot; | &amp;quot;ton-TBC&amp;quot; | &amp;quot;TBC&amp;quot; | &amp;quot;TBC-ton&amp;quot; | &amp;quot;TBC-san&amp;quot; | &amp;quot;TBC-mill&amp;quot; | &amp;quot;TBC-bong&amp;quot;&lt;br /&gt;
 labelparam      = &amp;quot;label=&amp;quot; *uchar&lt;br /&gt;
 messageparam    = &amp;quot;label=&amp;quot; *uchar&lt;/div&gt;</summary>
		<author><name>Marcusaurelius</name></author>
	</entry>
</feed>