summaryrefslogtreecommitdiff
path: root/9c/c5aa8d0e8a53b5784c52629ff65e02f801ecb0
blob: 491446d0f5a09ce3252971b1f518ba5d6a160982 (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
Return-Path: <roconnor@blockstream.io>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id 5B07A825
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu, 26 Jul 2018 14:31:52 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-it0-f67.google.com (mail-it0-f67.google.com
	[209.85.214.67])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 4A9166D6
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu, 26 Jul 2018 14:31:51 +0000 (UTC)
Received: by mail-it0-f67.google.com with SMTP id h23-v6so2935021ita.5
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu, 26 Jul 2018 07:31:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=blockstream.io; s=google;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=SlGtGFDHfcwEwI3groJvFi1kQ63TsV9ZG7BQBmmOU94=;
	b=Xtaq0OGXwMNKe8BR1JU6a8nLD8de+ogU+QG3O0sAEB1fWk773LpJQeDHOgA2jrxXhH
	EGQxb+9yEd7FabqgQySiF/kmDEosec1+eOykpY1bHF+esLJ+aSilZ0NyErAib/gaVSFd
	Uxgqo9TzaOdyY3AocdseCF9auafCN5/in/PTI=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc;
	bh=SlGtGFDHfcwEwI3groJvFi1kQ63TsV9ZG7BQBmmOU94=;
	b=rqlPzPj7MmB7iGhgZyKjdnVjSlVfKaAyOPpjaBvNveTOSGi7XSE2+O+qXtkNaW+VRd
	R+U0CWOKgwU/gSumM2HtpB2qtJJkmX6oE2RwyFSVgM8p2nvByk3p/eeA1jItSM56pC87
	q7H8yKpd7HbUEG1x+nLer96rXrOJAr30wovkyyRONoG/vMLJnjrQqh2H7LnT6mNpCKGL
	ILyadJArsu/FcTiAVMYRXUNbxzx4JLLkqP3jXGvpT5crZxwRFir06lrMc4HO1P/H+f7B
	LO8oEC+ur0H5lhRZA8awNS28Q6k76e6gbdUsHv8VMSBbW1aN8lCiDGerrkFeios0+tLi
	sVJw==
X-Gm-Message-State: AOUpUlEIrJbqMsHxuJvgOAjzoeo3NFzHMosUvcmWS+uO5v8oM5eIQdLd
	qCCtfynJRDmAvAcIanMsqhGW/JmvDFVKHBie+eAd0g==
X-Google-Smtp-Source: AAOMgpfhCSAhlkwj8jmqXxyyyW/+HV3nx0AaSMrNPEd3Vg6gYylvgYjC5W7CeQtErLjR2d1ML5p7B8o3dOjW5F9Id3s=
X-Received: by 2002:a24:5004:: with SMTP id m4-v6mr2115424itb.38.1532615510449;
	Thu, 26 Jul 2018 07:31:50 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a02:6949:0:0:0:0:0 with HTTP; Thu, 26 Jul 2018 07:31:30
	-0700 (PDT)
In-Reply-To: <CAMZUoK=sZ_b3SM1qiPfEF8uMRPCoY4LKcXit4Nd5Kb_aS9cVJQ@mail.gmail.com>
References: <CAPg+sBh0sFA7b6a+48Oojwy655GB9W6Th8JiCpd+2ruQjPev8Q@mail.gmail.com>
	<CAPg+sBiPiLHZFoYY=gs6LT+Q2Kb5NmbVU05u7c+0WRPjveBJhQ@mail.gmail.com>
	<CAPg+sBjFC98WzB+eCCcBOg0c-y+aj=_+-+PYyOO-7CA1xe7HAw@mail.gmail.com>
	<CAMZUoK=sZ_b3SM1qiPfEF8uMRPCoY4LKcXit4Nd5Kb_aS9cVJQ@mail.gmail.com>
From: "Russell O'Connor" <roconnor@blockstream.io>
Date: Thu, 26 Jul 2018 10:31:30 -0400
Message-ID: <CAMZUoKmsGkm56AktXK7yVkCNoMHgN_+pW9DrbGSrwx=2=a9+ig@mail.gmail.com>
To: Pieter Wuille <pieter.wuille@gmail.com>
Content-Type: multipart/alternative; boundary="000000000000144c020571e7db0a"
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID, DKIM_VALID_AU, 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
Cc: Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>
Subject: Re: [bitcoin-dev] A BIP proposal for segwit addresses
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, 26 Jul 2018 14:31:52 -0000

--000000000000144c020571e7db0a
Content-Type: text/plain; charset="UTF-8"

I think I phrased this badly.

What I mean is that there should be a note that HRP should be specified in
lowercase, or at least mention that uppercase and lowercase HRPs are
considered equivalent and will be canonicalized to lowercase during
validation.

On Thu, Jul 26, 2018 at 9:43 AM, Russell O'Connor <roconnor@blockstream.io>
wrote:

> Hi Pieter,
>
> > The *human-readable part*, which is intended to convey the type of
> data, or anything else that is relevant to the reader. This part MUST
> contain 1 to 83 US-ASCII characters, with each character having a value in
> the range [33-126]. HRP validity may be further restricted by specific
> applications.
>
> You should also add to this section that the HRP should be lowercase.
>
> Since Bech32 forbids mixed-case and otherwise converts everything to
> lowercase, it is good to warn upfront against using uppercase in the HRP.
>
> I know the BIP is marked as final, but this wouldn't be a normative change.
>

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

<div dir=3D"ltr"><div>I think I phrased this badly.</div><div><br></div><di=
v>What I mean is that there should be a note that HRP should be specified i=
n lowercase, or at least mention that uppercase and lowercase HRPs are cons=
idered equivalent and will be canonicalized to lowercase during validation.=
<br></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Thu,=
 Jul 26, 2018 at 9:43 AM, Russell O&#39;Connor <span dir=3D"ltr">&lt;<a hre=
f=3D"mailto:roconnor@blockstream.io" target=3D"_blank">roconnor@blockstream=
.io</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr=
"><div>Hi Pieter,</div><div><br></div><div>&gt; The <b>human-readable part<=
/b>, which is intended to convey the type of=20
data, or anything else that is relevant to the reader. This part MUST=20
contain 1 to 83 US-ASCII characters, with each character having a value=20
in the range [33-126]. HRP validity may be further restricted by=20
specific applications.<br></div><div><br></div><div>You should also add to =
this section that the HRP should be lowercase.</div><div><br></div><div>Sin=
ce Bech32 forbids mixed-case and otherwise converts everything to lowercase=
, it is good to warn upfront against using uppercase in the HRP.</div><div>=
<br></div><div>I know the BIP is marked as final, but this wouldn&#39;t be =
a normative change.<br></div></div>
</blockquote></div><br></div></div>

--000000000000144c020571e7db0a--