summaryrefslogtreecommitdiff
path: root/69/020d49ee7acf73bb11634fde1f1ba43109e560
blob: 838354bf672d1dcc7a749dfd602f52491dbce149 (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
Return-Path: <nakagat@gmail.com>
Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])
 by lists.linuxfoundation.org (Postfix) with ESMTP id 1DF36C013A
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 15 Jan 2021 08:01:38 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by fraxinus.osuosl.org (Postfix) with ESMTP id 0D5B986168
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 15 Jan 2021 08:01:38 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
Received: from fraxinus.osuosl.org ([127.0.0.1])
 by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id rQLVn_2ikFvn
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 15 Jan 2021 08:01:37 +0000 (UTC)
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6
Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com
 [209.85.208.175])
 by fraxinus.osuosl.org (Postfix) with ESMTPS id 426B7858D3
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 15 Jan 2021 08:01:37 +0000 (UTC)
Received: by mail-lj1-f175.google.com with SMTP id y22so9365627ljn.9
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 15 Jan 2021 00:01:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :content-transfer-encoding;
 bh=vVBUozzvV+rwv8CEP756aduGT2UsWtJIRU24+vY3cLE=;
 b=lZ50ee9DApJwe2RfQAn/SSQn3ANrqufuFfckRTU+F0wl8SKJvxTYlVRGZbbyp13KxU
 olCYu518qET4f01zDjAtc4pxira4BycPyiiCjJHs4edrD7QyetCPks18hIlCuRANueWg
 zFR9+d7SqjWLofyfA1NpZTlfuumy2PQCMIogxRjGLU2XuD1fQiQb5aa54wqEDHcIXjQl
 hss0uBh9Li2Rlr4z/HDVIICDjFt8QVYa1mHuEoGAa3Mk/oLN99pYSVDpa9bNI1h1F20K
 SKmlkC1newiUmq3he6VlTuUQ8NnZ3es2x21Q7K31QV1pLD3kV8J/o3CKAqAKJozNnXGJ
 0D2w==
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:content-transfer-encoding;
 bh=vVBUozzvV+rwv8CEP756aduGT2UsWtJIRU24+vY3cLE=;
 b=l3ZPwS8tQwLyW6xdW0vadpyHUcQUJROEJhIW6WFAguk894tag2SU3nsg/JKffd+5ht
 6p7DUTNwvqjqmxP1KJYxDl07GwN3o8eki8mC35UmqhdS5iT5dsgSmIrKzhq7Ak5dKY9s
 z5aiMS43KPVzEZeU8nOBDcZ4mJcUiHX4W8XZuxsmMtnajgtjHWEqrEVRPQ8Z8wvP2qDE
 7o/JXz3TftdjyOfYRsRlBPuzPgmf2eApZj/BlJfxtC4WIOPbLxny+IHPeZej7hWJdb/n
 5UzDAUoJ49evJ5BtrKtKuRPgoa9pu3c4RMXlC2lcPHmD4vMN/2wsiM6Kj4Umz+0ocSyN
 ibrw==
X-Gm-Message-State: AOAM533QuZ9uyzalYBqntsZ8vEFOewdBqwb39zwod1/HbrqziyyX+rcx
 eUHvkJsLwswXP6mdC93ZdRCjOdwjoZXGxcAnYsTTQJjWNHU=
X-Google-Smtp-Source: ABdhPJzDZAJXLMEZwhbUTG1aJPUCULodPU5IWKjNWV3nl975FA/eh0gW4Nr8FB+JE/7PZe25zFVz9vuz8XEoWR+OxqQ=
X-Received: by 2002:a2e:9dd4:: with SMTP id x20mr4665984ljj.37.1610697695224; 
 Fri, 15 Jan 2021 00:01:35 -0800 (PST)
MIME-Version: 1.0
References: <jfRUzc8uB5fpIQy-a_TfTwjAD4FMtf2eInfHdgZRoLwc0NdTv7srnRLtmwFHPLInJfglSzOXXe0SVR3cgHejGPi0Kwl81UV_wkwVJcQi1rA=@wuille.net>
In-Reply-To: <jfRUzc8uB5fpIQy-a_TfTwjAD4FMtf2eInfHdgZRoLwc0NdTv7srnRLtmwFHPLInJfglSzOXXe0SVR3cgHejGPi0Kwl81UV_wkwVJcQi1rA=@wuille.net>
From: nakagat <nakagat@gmail.com>
Date: Fri, 15 Jan 2021 17:01:24 +0900
Message-ID: <CAHk9a9d_xm2nO1t5GsLJiny1V3H=uv8jGuUTywQetZQOXxyG9w@mail.gmail.com>
To: Pieter Wuille <bitcoin-dev@wuille.net>, 
 Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Mailman-Approved-At: Fri, 15 Jan 2021 08:04:02 +0000
Subject: Re: [bitcoin-dev] Bech32m BIP: new checksum,
	and usage for segwit address
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.15
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: Fri, 15 Jan 2021 08:01:38 -0000

Dear Pieter,

I read the BIP draft of Bech32m and implemented it in Go.

Let me ask you one question.
Does Checksum have to be fixed?
The 'bech32_verify_checksum' function has hrp and data as parameters,
so how about committing Checksum with these two values?

For example, calculate Checksum from hrp and data using hash, chacha20, etc=
.

Thank you.
Takatoshi Nakagawa

2021=E5=B9=B41=E6=9C=885=E6=97=A5(=E7=81=AB) 9:14 Pieter Wuille via bitcoin=
-dev
<bitcoin-dev@lists.linuxfoundation.org>:
>
> Hello all,
>
> here is a BIP draft for changing the checksum in native segwit addresses =
for v1 and higher, following the discussion in https://lists.linuxfoundatio=
n.org/pipermail/bitcoin-dev/2020-December/018293.html
>
> Overall, the idea is:
> * Define a new encoding which is a tweaked variant of Bech32, called Bech=
32m. It refers to the Bech32 section of BIP173, which remains in effect.
> * Define a new segwit address encoding which replaces the corresponding s=
ection in BIP173. It prescribes using Bech32 for v0 witness addresses, and =
Bech32m for other versions.
>
> Comments, suggestions, ideas?
>
> Cheers,
>
> --
> Pieter
>
>
>
>
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev