summaryrefslogtreecommitdiff
path: root/c2/8f2ea0125fd93bc751e3e2327cec0a3ef4414f
blob: 81e034ee8e2d74b3673ca635035b903bf128a526 (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: <me@tobin.cc>
Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133])
 by lists.linuxfoundation.org (Postfix) with ESMTP id 0870DC0012
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Tue,  5 Apr 2022 23:00:49 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp2.osuosl.org (Postfix) with ESMTP id E2BCD405BF
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Tue,  5 Apr 2022 23:00:48 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.802
X-Spam-Level: 
X-Spam-Status: No, score=-2.802 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001]
 autolearn=ham autolearn_force=no
Authentication-Results: smtp2.osuosl.org (amavisd-new);
 dkim=pass (2048-bit key) header.d=tobin.cc header.b="FWd8gr1W";
 dkim=pass (2048-bit key) header.d=messagingengine.com
 header.b="h2FIYQSj"
Received: from smtp2.osuosl.org ([127.0.0.1])
 by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id Tv32y6zBXWQZ
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Tue,  5 Apr 2022 23:00:48 +0000 (UTC)
X-Greylist: delayed 00:05:21 by SQLgrey-1.8.0
Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com
 [66.111.4.29])
 by smtp2.osuosl.org (Postfix) with ESMTPS id 06A244015E
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Tue,  5 Apr 2022 23:00:48 +0000 (UTC)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.nyi.internal (Postfix) with ESMTP id 2E37E5C0209
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Tue,  5 Apr 2022 18:55:23 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute4.internal (MEProxy); Tue, 05 Apr 2022 18:55:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobin.cc; h=cc
 :content-type:date:date:from:from:in-reply-to:message-id
 :mime-version:reply-to:sender:subject:subject:to:to; s=fm3; bh=K
 fF+Od/i7npKPZd3u5GwBT+ENVz8x0dmbP1sqeeFp+g=; b=FWd8gr1W+58MQGeBD
 BTjZxD7VH3ODvAkBxblpNX1vK8gXDj/ybWCvONCdOywhuD6alT/YWsA17AAYd2k+
 ZJhGVFgwyUTfugRWwvlNO8LRS/ikL0hZfqIp63yLxsDmxRrZRBbyjkYzztaU0k3R
 2+8zc7DBYETPEqNYgTUzImLNi0M5XPutqbC/vducxOprXvHDaG0M4FTxlDTsElLG
 hvIq6YPbdUKFmSzn0gZJdPIl/lq/LNMnxCJn8ozyDwS9adaChqrgt91IowUhJjNw
 c0mWjPthzFbNK/vVNWl9QfuQNNqJdPua44395Qln6PYFYN+8PndSzdPNmOQB93xQ
 CVzDg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:date:from:from
 :in-reply-to:message-id:mime-version:reply-to:sender:subject
 :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm3; bh=KfF+Od/i7npKPZd3u5GwBT+ENVz8x0dmbP1sqeeFp
 +g=; b=h2FIYQSjMNkmZk2JiMV5aG+w0B4WAGXx8UjCMGStePfaAxkEvnoHlU4IZ
 hsYs8S4SAL6M2KLtGCPn83R4pnTq2G4SHCykVijPvO52OF2ppdAvxf44yXskgqBZ
 0qfcj0g6QwqrsmzxkuZHJb1d45JqMcZr0UWbxz8gEjBo6Pm2s9OcZpISosOmXYe3
 9SoSyiiITEK0IbduB8JN9nwPfTww/6W0VZHXxO5n58UhBe1xzy/HtXDC1OAeEAGE
 ULb0CBnMYN0e1QItgyVeJQ0J1ZHkhUBWx5WR/CabdeJhgs/4GUz7lDskAwDcQD/J
 bSpdgFIYK4Tr+csGRisl2acFPFnOg==
X-ME-Sender: <xms:2shMYhNgPE0rpFoTeejq35P2KfG10t6ZW5NmG49DPLV8ymDhJbfDKg>
 <xme:2shMYj8WgHQO4pxjFipFDwRsJZBfW1AdZ51ybHZdwrEDJfIWeSSYKehyq4GBCaLsE
 BBOnnZyHDkG5wrcow>
X-ME-Received: <xmr:2shMYgRr-sm6L8NfQrMIoy0Y_0jPlAq8Q2467xBiuSOx8JNwEw3_GkFQw4iWqYAgYx-zDSu43D8EvcUvX3MNfXg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudejhedgudegucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdludehmdenucfjughrpeffhf
 fvuffkgggtugfosehttdertdfotddvnecuhfhrohhmpefvohgsihhnucfjrghrughinhhg
 uceomhgvsehtohgsihhnrdgttgeqnecuggftrfgrthhtvghrnhephfefjefgkefggffgje
 fggeffiefhuefggfeuueevgfehieeileeiveekkeelgedunecuffhomhgrihhnpehgihht
 hhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh
 hrohhmpehmvgesthhosghinhdrtggt
X-ME-Proxy: <xmx:28hMYtuUWGBvmXfsKcXByD3uQA6mB6conC40rR8XEGUFDbOqOyu8Ew>
 <xmx:28hMYpfnm_vjV0YmZjfeArJLEoOMbmYpYxQ-twrCPtx2z22ugzu6Mg>
 <xmx:28hMYp3hjSW8k5MPZ_U9BWOW1JwdtmsiO2OS7Z_OpykUU_w7w-TxMA>
 <xmx:28hMYvoxM1p6WHSqzCYwVoPn9CaMwx0ZhFCU629yRtkxT0xwL-44zA>
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bitcoin-dev@lists.linuxfoundation.org>; Tue,
 5 Apr 2022 18:55:22 -0400 (EDT)
Date: Wed, 6 Apr 2022 08:55:18 +1000
From: Tobin Harding <me@tobin.cc>
To: bitcoin-dev@lists.linuxfoundation.org
Message-ID: <20220405225518.GA73803@aerus>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Mailer: Mutt 1.13.2 (2019-12-18)
X-Mailman-Approved-At: Tue, 05 Apr 2022 23:04:40 +0000
Subject: [bitcoin-dev]  BIP174 PSBT test vector
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: Tue, 05 Apr 2022 23:00:49 -0000

Hi,

Does anyone have software that successfully parses the extended private key seed
found in the BIP174 test vector? I have been implementing the test vector PSBT
workflow in Rust and have everything working except I can only create the
extended private key from the xpriv, I am unable to use the seed to create it?

BIP174: https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#test-vectors

PSBT workflow in BIP174 starting at the line:

  "The private keys in the tests below are derived from the following master private key:"

xpriv:

  tprv8ZgxMBicQKsPd9TeAdPADNnSyH9SSUUbTVeFszDE23Ki6TBB5nCefAdHkK8Fm3qMQR6sHwA56zqRmKmxnHk37JkiFzvncDqoKmPWubu7hDF

seed:

  cUkG8i1RFfWGWy5ziR11zJ5V4U4W3viSFCfyJmZnvQaUsd1xuF3T

I've tried decoding it as base64 and as base58.

Thanks in advance,
Tobin.