summaryrefslogtreecommitdiff
path: root/00/2f2f2369d26170167aa043210ddcd2870fa30f
blob: f17f623d285c2dff5153a84c23393d3f4c68e2cb (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
Delivery-date: Fri, 17 Jan 2025 02:03:41 -0800
Received: from mail-ot1-f58.google.com ([209.85.210.58])
	by mail.fairlystable.org with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.94.2)
	(envelope-from <bitcoindev+bncBDJNRXPH3YLRB5GVVC6AMGQEEHBYYYY@googlegroups.com>)
	id 1tYjCW-0002Mx-Ha
	for bitcoindev@gnusha.org; Fri, 17 Jan 2025 02:03:40 -0800
Received: by mail-ot1-f58.google.com with SMTP id 46e09a7af769-71ded0593dfsf507153a34.2
        for <bitcoindev@gnusha.org>; Fri, 17 Jan 2025 02:03:40 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1737108214; cv=pass;
        d=google.com; s=arc-20240605;
        b=IGd37tvPeqrCgnPUKlzQhAF+THrgpTOVglHomk3PHGdINYGkzRGwjo6qKkMd/VmSKA
         4KxSxuS3tKrLgVDzKg7RJ8dGzz4wf4LP63g40gzgXi+kf8AZ8yzyOMiGDG0ZOffFulhd
         XciC6eFIWGO8Rjt10FKPABABotvRpG6vqCQTE8SERwDjq46/TrJ9VrXxd94nbj3N0gLe
         guDgviXrlFm0OHVXNiNnXbb+FUO9duOAD0b3KOMfe5aAA5nKBT7KswOYoz6CpswHdEKt
         XyWUG3ku4d8iEhVL3imHwmXtMuiUj8Bhwp54IszTOEZ7SLzv0Aj55iDq8boelOkgZ4bN
         ahZw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:cc:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:sender:dkim-signature
         :dkim-signature;
        bh=bvM1jKtenvxk36QMYk7emfMQRy4ykBE457Tf8EidGY8=;
        fh=XHjdED97zR74Ga359XpAsWgFFT0wWCFqmB293yz0zas=;
        b=g12/fzo5jTb0pvvJad5BG64bWOsoEthsTt0CAm/A5jKcfvFOYvpN0NDnc2YUE3IAW0
         8XTl2MqAvLJjSxZ228iWpBUghWb7BImlAlTxKQCpwiUiOzJrgejlQWUMmCRCtMiJvxN9
         zW/gsLUPyy9hw7QEXs5puy3uNEUkHg4Xr6OW6cwpAS7TgLDmyAeJ+mQ3iO1dVhvicLMs
         t88AXnPeYtpI2cUPH41E3P6/9effYHqEabCETt2hFFtghoEQ5sqNdvJOP1u7/+IcGBOh
         ZJraJpipCCZCAKMDpeEuZBXqCare5Dnuil/JUo4Wr5cRC7lXk3kd/IVrXiRJ8wg/OcGY
         f+dQ==;
        darn=gnusha.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20230601 header.b=Cnp65VnV;
       spf=pass (google.com: domain of salvatore.ingala@gmail.com designates 2607:f8b0:4864:20::c2f as permitted sender) smtp.mailfrom=salvatore.ingala@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;
       dara=pass header.i=@googlegroups.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20230601; t=1737108214; x=1737713014; darn=gnusha.org;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:sender:from:to:cc:subject:date:message-id
         :reply-to;
        bh=bvM1jKtenvxk36QMYk7emfMQRy4ykBE457Tf8EidGY8=;
        b=c9Ul95IMYuOV24Xn6e784y9OVm4pQidler3MZvLxHJyKVwZ0S6fQT9NzImgSB/8JtM
         QFYFVUsfImDRrHZbIwnP2z5/UcfIJYUYWiHT325WJJgyUPEAEwAzhmrnrJhZWr6+gJHh
         kBnroQtdJaYoPcuvLURavWKhfWiuYwUeDBWjK3MLF3oCsF8QB/SK9j2kSZo5WX+T9Cv9
         fwmyioWeoRwKHRKfE5qDel8uT5td0AmksQKAXJ8u9SU7bsyAueuDVGVRE6atDZ4YBxIk
         bmlX0D8RMaq3DCjvRd9O04dZXwvo/kCPOBijxtvkU5s5iRzMxnIec8nnfddXMFP4m430
         WIkQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1737108214; x=1737713014; darn=gnusha.org;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:from:to:cc:subject:date:message-id:reply-to;
        bh=bvM1jKtenvxk36QMYk7emfMQRy4ykBE457Tf8EidGY8=;
        b=GJUbI9rkk0UjVqqRvZVDwLiIenFxmiuV4koGmZKWboUeUHStprzzdz1q8JAw0P4HyA
         wiVi9Yp+z3Ag9yN0goNHBqZ9cencmWVaVJRI+Jk2TXQh2wAwKfyAKzlC4xMArL2yBtxr
         fEpuEmKKppAGr1VX7FLOWEYHoEJspNda42o+WTIKMhn93tZxZdNDr5ElwzQYJWKPqxpM
         ixR/0lVLaF+lCM/Ts9rXZc8fDk511jB4TSFNu4mVTrFlaQATGyO9wgbU17Q2lY4bMuyb
         n7eGyRu4REN2MGWjij59L0I2AWL96aRPTch5kLBh2biuZuPKL6HqnCdRyLy+Ci9SM4Ha
         6+Fw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1737108214; x=1737713014;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:x-beenthere:x-gm-message-state:sender:from
         :to:cc:subject:date:message-id:reply-to;
        bh=bvM1jKtenvxk36QMYk7emfMQRy4ykBE457Tf8EidGY8=;
        b=FBWoNf62X+3a43NaTOAYVMzScpcNX75Nq7DRiAQS2ZsZO78Lh3Xb58A4iJUxCEJxe0
         WCHIKc42B9kjgJ5el+5OrvxTou2gYjmO0K93ruqu9A/32vogsTHpmJqQgbSJtfueWXQv
         njHNtO2XjA4auysUCwmkg7O1YuYFz6iCuxV5FUZKEGIwmP2mioZhQM0z8KE5Hn/tqItb
         PptKdpfbxpZpiK5qoAlIZOC2QIWxDgfpffqpBkwSVgVmd/52vxzETy3D3G59oO0CiLag
         CGZa3EbKNckQdL/smhbPWjDCKvPNruuE9Q9W2r2pnasnsTkrqLNoJHTKvX2QNwOhvCOj
         YYVQ==
Sender: bitcoindev@googlegroups.com
X-Forwarded-Encrypted: i=2; AJvYcCV5/skoHy4KstPtL5XOu2LXj/q4u6onPtC4NSYYe1MkgExl/CQM/FEysSIxNTxUEIo4brg47JxSBqgh@gnusha.org
X-Gm-Message-State: AOJu0YyzeUn5uIUVKrkoPtFhJao+7QxjO2K6YST+Ldozijtz/lU5MCvd
	NxiEifk+4vr7XA2SBqWJWHpZ2ugL585JmmAFCLLwRE8WtF+TuEkZ
X-Google-Smtp-Source: AGHT+IFzOhxOcd+TO1Ry+28AF1lcLsGS9Q6WkdeDdHFeJebsWJo5kEWoV6NmtTDqhPgOnZCEagm7xw==
X-Received: by 2002:a05:6830:6882:b0:71e:5667:30ce with SMTP id 46e09a7af769-7249dafd391mr1071467a34.28.1737108213845;
        Fri, 17 Jan 2025 02:03:33 -0800 (PST)
X-BeenThere: bitcoindev@googlegroups.com
Received: by 2002:a4a:c913:0:b0:5f2:b167:9373 with SMTP id 006d021491bc7-5fa289acab4ls640662eaf.2.-pod-prod-04-us;
 Fri, 17 Jan 2025 02:03:31 -0800 (PST)
X-Received: by 2002:a05:6808:8003:b0:3ea:aa8a:c121 with SMTP id 5614622812f47-3f19fcbfc1cmr939379b6e.22.1737108211771;
        Fri, 17 Jan 2025 02:03:31 -0800 (PST)
Received: by 2002:a05:6808:1885:b0:3ea:54d0:9259 with SMTP id 5614622812f47-3f1a023510cmsb6e;
        Fri, 17 Jan 2025 01:45:57 -0800 (PST)
X-Received: by 2002:a17:90b:51ca:b0:2ee:5bc9:75c7 with SMTP id 98e67ed59e1d1-2f782c4bdc3mr2643931a91.5.1737107155993;
        Fri, 17 Jan 2025 01:45:55 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1737107155; cv=none;
        d=google.com; s=arc-20240605;
        b=S2LZIqdbvvjvqO21C64qg4//i3gehDzRX70XMgWR/cWP9fExeIbnroABgH8W5NSZO3
         RxzNssbl539Bj4F0SLp4KQQHlvnmsxZeVFfbJkcCK5w791G+LrKG3pb4x5RqMdswNqFg
         v9y9j+Ao8L+kkutPSgutZ4GNoQdfrbdbl7M0YtFM9EeLnOIqiq4DLJrfu2Ve6PEJELjf
         UMuVyTNaq4krVTVvLroWhOjxdFdJ44HzcCX1gsx50o6LFz+ZDneFDFJXEn0YmajUVi66
         n5mb209xBy6l6UabA0uj7Nb1hy8Sz5GVFeYph7fMQoe0I9zekDC1P1X8fVLZHBXOLuDN
         KR5w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605;
        h=cc:to:subject:message-id:date:from:in-reply-to:references
         :mime-version:dkim-signature;
        bh=kO6GPGLR1YtCMJS1b9p0syOphRmGAk7DgzH1EF78XLA=;
        fh=ykxiNqjf//+BiDAW8efWJAjdCFW+S1iX6pn+7QgqWu4=;
        b=Nw8maKT6Qk53VLx4wI3jvCQGcIGy+AESWy5usfF+CCrcak6eeOTHx1iFZKsJUpEqI5
         IEjo4VYvy3Mth5Q0VDZX7fCd2V0wGSSC7X87AqFtTeGLtdneHSVdZt5eK/lsMXsRlo6T
         5COfapZLEsVpV0bAp8NbcbtIdeY7tJd0U5tlq5diiFFNji5LdIskjZpOplTmLRgTXv68
         J52MTVyNLQMVEijtgw0a1sRxxXSEnZ/tUW7My2+z720txvOpUEoxtV0A13uyGNYZVRO4
         ikxHjWsC6/U3QiZqa3nYMT/8yQr4qne4sbRmG2PKYVa5wVALgYGH2NWYOId97t0mNpea
         izZQ==;
        dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20230601 header.b=Cnp65VnV;
       spf=pass (google.com: domain of salvatore.ingala@gmail.com designates 2607:f8b0:4864:20::c2f as permitted sender) smtp.mailfrom=salvatore.ingala@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;
       dara=pass header.i=@googlegroups.com
Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com. [2607:f8b0:4864:20::c2f])
        by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2f70bd476a0si639336a91.1.2025.01.17.01.45.55
        for <bitcoindev@googlegroups.com>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Fri, 17 Jan 2025 01:45:55 -0800 (PST)
Received-SPF: pass (google.com: domain of salvatore.ingala@gmail.com designates 2607:f8b0:4864:20::c2f as permitted sender) client-ip=2607:f8b0:4864:20::c2f;
Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-5f4cc48ab37so586968eaf.1
        for <bitcoindev@googlegroups.com>; Fri, 17 Jan 2025 01:45:55 -0800 (PST)
X-Gm-Gg: ASbGncv0P1qXeweVfxAeKq1lYrtytgwD1qfFtXxRRbHz2kVUk2besQwR+F/QzO5RViu
	YncOBiNOlvmh5Gv+8p6B0fFAYjG+BQH/iUG4nRg==
X-Received: by 2002:a05:6871:a917:b0:296:c3cf:39ed with SMTP id
 586e51a60fabf-2b1c0ce70a4mr1095679fac.38.1737107155240; Fri, 17 Jan 2025
 01:45:55 -0800 (PST)
MIME-Version: 1.0
References: <6FDAD97F-7C5F-474B-9EE6-82092C9073C5@sprovoost.nl>
In-Reply-To: <6FDAD97F-7C5F-474B-9EE6-82092C9073C5@sprovoost.nl>
From: Salvatore Ingala <salvatore.ingala@gmail.com>
Date: Fri, 17 Jan 2025 10:45:44 +0100
X-Gm-Features: AbW1kvZY2rJwmGt0-o3Td7vn_3OR8KFZcarpiHkiDVY-AoHyC6S_yPMWlTF2cYU
Message-ID: <CAMhCMoGONKFok_SuZkic+T=yoWZs5eeVxtwJL6Ei=yysvA8rrg@mail.gmail.com>
Subject: Re: [bitcoindev] Who uses or wants to use PSBTv2 (BIP370)
To: Sjors Provoost <sjors@sprovoost.nl>
Cc: bitcoindev@googlegroups.com
Content-Type: multipart/alternative; boundary="000000000000ecd277062be3c60a"
X-Original-Sender: salvatore.ingala@gmail.com
X-Original-Authentication-Results: gmr-mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20230601 header.b=Cnp65VnV;       spf=pass
 (google.com: domain of salvatore.ingala@gmail.com designates
 2607:f8b0:4864:20::c2f as permitted sender) smtp.mailfrom=salvatore.ingala@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com;
       dara=pass header.i=@googlegroups.com
Precedence: list
Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com
List-ID: <bitcoindev.googlegroups.com>
X-Google-Group-Id: 786775582512
List-Post: <https://groups.google.com/group/bitcoindev/post>, <mailto:bitcoindev@googlegroups.com>
List-Help: <https://groups.google.com/support/>, <mailto:bitcoindev+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/bitcoindev
List-Subscribe: <https://groups.google.com/group/bitcoindev/subscribe>, <mailto:bitcoindev+subscribe@googlegroups.com>
List-Unsubscribe: <mailto:googlegroups-manage+786775582512+unsubscribe@googlegroups.com>,
 <https://groups.google.com/group/bitcoindev/subscribe>
X-Spam-Score: -0.5 (/)

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

Hi Sjors,

The Ledger Bitcoin app uses PSBTv2 since version 2.0.0 in 2021 [0], quite
possibly the first adopter - although for somewhat unusual reasons.

Working with embedded devices with just a few kb of RAM, even sending the
entire PSBT is not generally feasible.
Therefore, the client instead sends a 'merkleized' commitment to the entire
PSBT at the beginning of the signing process.
This enables the device to obtain random access to the PSBT by querying the
client (who provides the data - and the Merkle proof - on demand).

In PsbtV0, the unsigned transaction is a binary blob, which was a huge
headache because the device had to parse it while streaming it (and
therefore, no RAM access to the individual transaction fields is possible).
PsbtV2 fixed this by having the transaction already 'parsed' into
individual fields.

The companion client libraries of the Ledger Bitcoin app support both
versions, and PsbtV0 is converted to PsbtV2 on the fly.
Broader support would certainly be useful.

Best,
Salvatore Ingala

[0] https://www.ledger.com/blog/bitcoin-2

-- 
You received this message because you are subscribed to the Google Groups "Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bitcoindev+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bitcoindev/CAMhCMoGONKFok_SuZkic%2BT%3DyoWZs5eeVxtwJL6Ei%3DyysvA8rrg%40mail.gmail.com.

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

<div dir=3D"ltr"><div dir=3D"ltr">Hi=C2=A0Sjors,<div><br></div><div>The Led=
ger Bitcoin app uses PSBTv2 since version 2.0.0 in 2021 [0], quite possibly=
 the first adopter - although for somewhat unusual reasons.</div><div><br><=
/div><div>Working with embedded devices with just a few kb of RAM, even sen=
ding the entire PSBT is not generally feasible.<br>Therefore, the client in=
stead sends a &#39;merkleized&#39; commitment to the entire PSBT at the beg=
inning of the signing process.</div><div>This enables the device to obtain =
random access to the PSBT by querying the client (who provides the data - a=
nd the Merkle proof - on demand).<br><br>In PsbtV0, the unsigned transactio=
n is a binary blob, which was a huge headache because the device had to=C2=
=A0parse it while streaming it (and therefore, no RAM access to the individ=
ual transaction fields is possible).<br>PsbtV2 fixed this by having the tra=
nsaction already &#39;parsed&#39; into individual fields.</div></div><div><=
br></div><div>The companion client libraries of the Ledger Bitcoin app supp=
ort both versions, and PsbtV0 is converted to PsbtV2 on the fly.</div><div>=
Broader support would certainly be useful.</div><div><br></div><div>Best,</=
div><div>Salvatore Ingala</div><div><br></div><div>[0]=C2=A0<a href=3D"http=
s://www.ledger.com/blog/bitcoin-2">https://www.ledger.com/blog/bitcoin-2</a=
></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Bitcoin Development Mailing List&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:bitcoindev+unsubscribe@googlegroups.com">bitcoind=
ev+unsubscribe@googlegroups.com</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
bitcoindev/CAMhCMoGONKFok_SuZkic%2BT%3DyoWZs5eeVxtwJL6Ei%3DyysvA8rrg%40mail=
.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.co=
m/d/msgid/bitcoindev/CAMhCMoGONKFok_SuZkic%2BT%3DyoWZs5eeVxtwJL6Ei%3DyysvA8=
rrg%40mail.gmail.com</a>.<br />

--000000000000ecd277062be3c60a--