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
|
Return-Path: <orlovsky@protonmail.com>
Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])
by lists.linuxfoundation.org (Postfix) with ESMTP id 7D9F3C013A
for <bitcoin-dev@lists.linuxfoundation.org>;
Thu, 11 Feb 2021 07:27:53 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by smtp3.osuosl.org (Postfix) with ESMTP id 5F63A6F4E1
for <bitcoin-dev@lists.linuxfoundation.org>;
Thu, 11 Feb 2021 07:27:53 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
Received: from smtp3.osuosl.org ([127.0.0.1])
by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 1J_9Wfo7momt
for <bitcoin-dev@lists.linuxfoundation.org>;
Thu, 11 Feb 2021 07:27:52 +0000 (UTC)
Received: by smtp3.osuosl.org (Postfix, from userid 1001)
id 9F6066F4F8; Thu, 11 Feb 2021 07:27:52 +0000 (UTC)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0
Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch
[185.70.40.133])
by smtp3.osuosl.org (Postfix) with ESMTPS id C33036F4E1
for <bitcoin-dev@lists.linuxfoundation.org>;
Thu, 11 Feb 2021 07:27:50 +0000 (UTC)
Date: Thu, 11 Feb 2021 07:27:42 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
s=protonmail; t=1613028467;
bh=GkJi2iUbN765OGGlvHU2m/7Ga7Ua4GNMxeCCE65w1nI=;
h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From;
b=H4sRqrDZfkBU6Z8k7i3XoLEcMzrEYJvdOkz27IUK6MyHeUVet7UJ1pXBxbwceKyH7
BCD+GGagU01ygp4c+f/EYEemJSwiHxLBvftYNhsaX3oOAfw71tBauH6N2t2z1FmxBz
J/U2OBQnLd6RkT4IiKXvZqazlWUFhAA1F1kX4oQI=
To: Dmitry Petukhov <dp@simplexum.com>
From: Dr Maxim Orlovsky <orlovsky@protonmail.com>
Reply-To: Dr Maxim Orlovsky <orlovsky@protonmail.com>
Message-ID: <19374944-3B6C-40FC-8E91-4319851E13D9@protonmail.com>
In-Reply-To: <20210205230029.4dd6fc4d@simplexum.com>
References: <D962F4E0-E10F-433D-BFC9-3462A8A9CF7A@protonmail.com>
<20210205230029.4dd6fc4d@simplexum.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailman-Approved-At: Thu, 11 Feb 2021 09:05:33 +0000
Cc: bitcoin-dev@lists.linuxfoundation.org
Subject: Re: [bitcoin-dev] BIP32/43-based standard for Schnorr signatures &
decentralized identity
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: Thu, 11 Feb 2021 07:27:53 -0000
Hi Dmitry,
Thank you very much for readying and analyzing my proposal!
>> Testnet path is unhardened from this point & till the end of the
>> derivation path: no need to prevent private key leak there,
>> simplifies test software (hardened paths require private key access
>> for derivation).
>=20
> I believe this will reduce robustness and will add complexity to the
> test software instead. If the derivation path is hardened in 'production
> code' and is unhardened in 'test code', then: code paths that depend on
> hardened derivation may not be tested; there will be unnecessary
> code that will need to deal with 'un-hardening' the paths for test code.
<...>
> It is OK to require privkey access to hardened paths in test
> software, because the same behaviour is expected in 'production=E2=80=
=99.
You are right, agree
> It is much more robust to just change the 'purpose' part of the path,
> and leave the rest unchanged.
Not sure whether the purpose is the correct place to indicate testnet: in t=
his case it we will have to support one testnet per each blockchain type (w=
hich is not the case). So probably we should reserve a single dedicated val=
ue for any testnet withing ``blockchain` field using hardened path as you s=
uggested - for instance, 0xFFFFFFFF may do the job.
Kind regards,
Maxim
|