summaryrefslogtreecommitdiff
path: root/34/5ac60b92ead27b72754ab02da5b63af2ea4e5a
blob: ba74c8626f7a60eabf2920e11009958491621515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
Return-Path: <clarkmoody@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id 6C40B5AA
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu, 18 Oct 2018 14:21:15 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com
	[209.85.167.50])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 806EF623
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu, 18 Oct 2018 14:21:14 +0000 (UTC)
Received: by mail-lf1-f50.google.com with SMTP id p143-v6so11665362lfp.13
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu, 18 Oct 2018 07:21:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=clarkmoody-com.20150623.gappssmtp.com; s=20150623;
	h=mime-version:references:in-reply-to:from:date:message-id:subject:to; 
	bh=rGtjM/Cnwmno8u2u7EemObzHn/hfUG+iF794xGWbdQY=;
	b=VpWH6e2BQtvD4LSrsarq4NLiAaoynSX25uQD8XL6NdE3HIVn0J2rgvYjSTPqdMDB7z
	uxMG4tSglrDw7lsDQw2Pj6azpE4EWVwQTENsFBPm5FNjRS2UF7y8wxulFU+fkC3Tav3h
	xDIWNDGr4RzoSPO+Sls8NoB9bWsm2XBpz6leTaNqBaW+TJzrIKgi5RTLRqGo+cUTg1/j
	zkN2PRtED7l1JxgCkc/JiLLu9Irm5S+GF0gYrTu0uywvHicU6R67VAm+c3CtDC/Ni1Bs
	E+EmuBkXTtAJc4XVJJXaKASbWuavfxiIPjtNfBBcSzqbvMF2bd21g5gvYHyEa3LOGuhP
	u0sQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:references:in-reply-to:from:date
	:message-id:subject:to;
	bh=rGtjM/Cnwmno8u2u7EemObzHn/hfUG+iF794xGWbdQY=;
	b=fKhdO5g88MZen3rd+udYZYf0iLb6kTKwAmL5qZWtmFAwhg2DTyty5LX+h86a6/Wi1Y
	avaEYxD51e5pfqGC+JwpOF36abGDGeW8PnJ7RCoKC6M0XF88cgHeVMk3baR7FozGIDn7
	W6ebpt0Pt8vuIMoK1FOyQuTI00t2fyX/jjWk+q2Ccsm8ibUq4fdET9nqqQ1AWMFQPqkd
	J4xcq0bUK7zYJKBBjFPAqpPyLVz78weM25j1n7DuodjXS84I/CY362HprvnESUAmPRo1
	XBNQNQfesS0bR0F7QdFnVFv+qnDKrSW1uq1XDe1d5mLUSjL7lseEhRsaFvJ9hGAEfwca
	hQ6g==
X-Gm-Message-State: ABuFfojEDwVSGYDjg/cu/pNbBBQgrujAxrh2SjeBeOYcAtPns0e5w82P
	8QX3oz+yLMdHC6XKeYBxfL2XrQH793Sj5RezTOs=
X-Google-Smtp-Source: ACcGV63Cb00L6nq3KESudQM7tDJLAj4xbsgPgeJsUYbMQZRJhXSLQAWYvE6d3QWEBIFahm20Tni+Ca5WxUurihqLFy0=
X-Received: by 2002:a19:1cc3:: with SMTP id
	c186-v6mr337418lfc.16.1539872472631; 
	Thu, 18 Oct 2018 07:21:12 -0700 (PDT)
MIME-Version: 1.0
References: <CACUQsLKTHVE7pe=0-zuMTGZWbUaJFp5=CNZCQE0477B7LZRsbg@mail.gmail.com>
In-Reply-To: <CACUQsLKTHVE7pe=0-zuMTGZWbUaJFp5=CNZCQE0477B7LZRsbg@mail.gmail.com>
From: Clark Moody <clark@clarkmoody.com>
Date: Thu, 18 Oct 2018 09:20:45 -0500
Message-ID: <CAHGSxGuqf2vKOWtW-_hfdqfsH8a_QTaWBsrUViV8A39dk1KA6A@mail.gmail.com>
To: srintuar@gmail.com, 
	Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: multipart/alternative; boundary="000000000000bb0eaf0578817fbe"
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID, FREEMAIL_FROM, HTML_MESSAGE,
	RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	smtp1.linux-foundation.org
X-Mailman-Approved-At: Thu, 18 Oct 2018 14:32:31 +0000
Subject: Re: [bitcoin-dev] BIP for segwit compatibility URIs
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Oct 2018 14:21:15 -0000

--000000000000bb0eaf0578817fbe
Content-Type: text/plain; charset="UTF-8"

Since we don't know what sort of address changes will happen later on, you
could make this future-proof by passing a list of addresses to `addr`.

The syntax is

bitcoin:<address>[?addr=<address>[,<address>[,<address>]]]

The addresses passed as a comma-separated list to the `addr` parameter are
in descending order of preference, with highest first. A consumer of this
URI should attempt to understand each address in the list before falling
back to the next address and finally to the base address after `bitcoin:`.

Example:

bitcoin:3xBase58compatibleAddress?addr=fancyFutureEncoding0x01,bech32address1qx01

The spending wallet would attempt to spend to "fancyFutureEncoding0x01"
then to "bech32address1qx01" and finally to "3xBase58compatibleAddress".

Thanks,

-Clark


On Sun, Oct 14, 2018 at 3:14 PM Srintuar via bitcoin-dev <
bitcoin-dev@lists.linuxfoundation.org> wrote:

>
> An extremely simple BIP write-up for a backward compatible URI scheme to
> help with segwit adoption by online stores and merchants.
>
>
>
> ====
>
> This BIP is a modification of an earlier [[bip-0021.mediawiki|BIP 0021]]
> by Nils Schneider and Matt Corallo
>
> ==Abstract==
> This BIP proposes a URI scheme which allows for backward compatibility
> with native segwit (bech32) wallets and legcy wallets (base58)
>
> ==Motivation==
> The purpose of this URI scheme is to enable all users to easily make
> payments from any wallet, without allowing backward compatibility to be a
> barrier to segwit adoption. This BIP allows a merchant to preferentially
> receive payments to a bech32 address, while gracefully allowing older
> clients to make base58 encoded payments.
>
> ==Specification==
>
> === Query Keys ===
>
> *addr: an alternative bitcoin destination which is preferred over the
> "bitcoinaddress" field of the url
>
> == Appendix ==
>
> === Simpler syntax ===
>
>
>  <nowiki>bitcoin:<address>[?amount=<amount>][?label=<label>][?message=<message>][?addr=<bech32address>]</nowiki>
>
> === Examples ===
>
> Just the address:
>
>  bitcoin:3BnsWZiTdYVrqiPh2RP3q9Y3ZqvhbCN2it?addr=bc1q5u92yq20hss4rc99mfu23h4dxkxn4uuyqd5dzy&amount=50&label=Luke-Jr&message=Donation%20for%20project%20xyz
>
>
> == Reference Implementations ==
> === Bitcoin clients ===
>
> * none yet
>
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>

--000000000000bb0eaf0578817fbe
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:tahoma,s=
ans-serif;font-size:small;color:#000000">Since we don&#39;t know what sort =
of address changes will happen later on, you could make this future-proof b=
y passing a list of addresses to `addr`.</div><div class=3D"gmail_default" =
style=3D"font-family:tahoma,sans-serif;font-size:small;color:#000000"><br><=
/div><div class=3D"gmail_default" style=3D"font-family:tahoma,sans-serif;fo=
nt-size:small;color:#000000">The syntax is <br></div><div class=3D"gmail_de=
fault" style=3D"font-family:tahoma,sans-serif;font-size:small;color:#000000=
"><br></div><div class=3D"gmail_default" style=3D"font-family:tahoma,sans-s=
erif;font-size:small;color:#000000">bitcoin:&lt;address&gt;[?addr=3D&lt;add=
ress&gt;[,&lt;address&gt;[,&lt;address&gt;]]]<br></div><div><div dir=3D"ltr=
" class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div><br></d=
iv><div><div style=3D"font-family:tahoma,sans-serif;font-size:small;color:r=
gb(0,0,0)" class=3D"gmail_default">The addresses passed as a comma-separate=
d list to the `addr` parameter are in descending order of preference, with =
highest first. A consumer of this URI should attempt to understand each add=
ress in the list before falling back to the next address and finally to the=
 base address after `bitcoin:`.<br></div><div style=3D"font-family:tahoma,s=
ans-serif;font-size:small;color:rgb(0,0,0)" class=3D"gmail_default"><br></d=
iv><div style=3D"font-family:tahoma,sans-serif;font-size:small;color:rgb(0,=
0,0)" class=3D"gmail_default">Example:</div><div style=3D"font-family:tahom=
a,sans-serif;font-size:small;color:rgb(0,0,0)" class=3D"gmail_default"><br>=
</div><div style=3D"font-family:tahoma,sans-serif;font-size:small;color:rgb=
(0,0,0)" class=3D"gmail_default">bitcoin:3xBase58compatibleAddress?addr=3Df=
ancyFutureEncoding0x01,bech32address1qx01</div><div style=3D"font-family:ta=
homa,sans-serif;font-size:small;color:rgb(0,0,0)" class=3D"gmail_default"><=
br></div><div style=3D"font-family:tahoma,sans-serif;font-size:small;color:=
rgb(0,0,0)" class=3D"gmail_default">The spending wallet would attempt to sp=
end to &quot;fancyFutureEncoding0x01&quot; then to &quot;bech32address1qx01=
&quot; and finally to &quot;3xBase58compatibleAddress&quot;.</div><div styl=
e=3D"font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,0)" class=
=3D"gmail_default"><br></div><div style=3D"font-family:tahoma,sans-serif;fo=
nt-size:small;color:rgb(0,0,0)" class=3D"gmail_default">Thanks,<br></div></=
div><div><br></div><div>-Clark</div><div></div></div></div><br></div><br><d=
iv class=3D"gmail_quote"><div dir=3D"ltr">On Sun, Oct 14, 2018 at 3:14 PM S=
rintuar via bitcoin-dev &lt;<a href=3D"mailto:bitcoin-dev@lists.linuxfounda=
tion.org">bitcoin-dev@lists.linuxfoundation.org</a>&gt; wrote:<br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #=
ccc solid;padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><br></div><di=
v>An extremely simple BIP write-up for a=20
backward compatible URI scheme to help with segwit adoption by online=20
stores and merchants.<br></div><div dir=3D"ltr"><br></div><div dir=3D"ltr">=
<br></div><div dir=3D"ltr"><br></div><div dir=3D"ltr">=3D=3D=3D=3D<br></div=
><div dir=3D"ltr"><br>This BIP is a modification of an earlier [[bip-0021.m=
ediawiki|BIP 0021]] by Nils Schneider and Matt Corallo<br><br>=3D=3DAbstrac=
t=3D=3D<br>This
 BIP proposes a URI scheme which allows for backward compatibility with=20
native segwit (bech32) wallets and legcy wallets (base58)<br><br>=3D=3DMoti=
vation=3D=3D<br>The
 purpose of this URI scheme is to enable all users to easily make=20
payments from any wallet, without allowing backward compatibility to be a
 barrier to segwit adoption. This BIP allows a merchant to=20
preferentially receive payments to a bech32 address, while gracefully=20
allowing older clients to make base58 encoded payments.<br><br>=3D=3DSpecif=
ication=3D=3D<br><br>=3D=3D=3D Query Keys =3D=3D=3D<br><br>*addr: an altern=
ative bitcoin destination which is preferred over the &quot;bitcoinaddress&=
quot; field of the url<br><br>=3D=3D Appendix =3D=3D<br><br>=3D=3D=3D Simpl=
er syntax =3D=3D=3D<br><br>=C2=A0&lt;nowiki&gt;bitcoin:&lt;address&gt;[?amo=
unt=3D&lt;amount&gt;][?label=3D&lt;label&gt;][?message=3D&lt;message&gt;][?=
addr=3D&lt;bech32address&gt;]&lt;/nowiki&gt;<br><br>=3D=3D=3D Examples =3D=
=3D=3D<br><br>Just the address:<br>=C2=A0bitcoin:3BnsWZiTdYVrqiPh2RP3q9Y3Zq=
vhbCN2it?addr=3Dbc1q5u92yq20hss4rc99mfu23h4dxkxn4uuyqd5dzy&amp;amount=3D50&=
amp;label=3DLuke-Jr&amp;message=3DDonation%20for%20project%20xyz<br><br><br=
>=3D=3D Reference Implementations =3D=3D<br>=3D=3D=3D Bitcoin clients =3D=
=3D=3D<br><br></div><div>* none yet<br></div><div dir=3D"ltr"><br></div></d=
iv>
_______________________________________________<br>
bitcoin-dev mailing list<br>
<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_blank">=
bitcoin-dev@lists.linuxfoundation.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" =
rel=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.org/mail=
man/listinfo/bitcoin-dev</a><br>
</blockquote></div>

--000000000000bb0eaf0578817fbe--