Delivery-date: Fri, 17 Jan 2025 04:23:34 -0800
Received: from mail-qt1-f191.google.com ([209.85.160.191])
	by mail.fairlystable.org with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.94.2)
	(envelope-from <bitcoindev+bncBDWMZ5PFVAOBBPMXVG6AMGQEQ37ZMHA@googlegroups.com>)
	id 1tYlNt-0005LZ-W5
	for bitcoindev@gnusha.org; Fri, 17 Jan 2025 04:23:34 -0800
Received: by mail-qt1-f191.google.com with SMTP id d75a77b69052e-4679db55860sf40092181cf.3
        for <bitcoindev@gnusha.org>; Fri, 17 Jan 2025 04:23:33 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1737116607; cv=pass;
        d=google.com; s=arc-20240605;
        b=YcdsYHnLG1aEv3dnpokx/4aaw4pG8+hb+maAbhZmvg7wdF2ubzICzWCdd1h2t+cdaa
         TFheNMwzsKCsyVqlJkHP+e2mj3a6u55Pw8DCksZfIMpIFXd30MdDgCaKnp+bbTnOGEOe
         3fz+Ne8LJlcirpXQSoyvJbxOjUcsdrvRHCyYxQX62mu5X9miIr8urPaSc6DLTMrvMW/n
         Ya7bwyBcPxKC8F9ZY1+Clo9Gue6pZH/YNVhKynXRpqhEJtx+pI+ZXfSsssIxmvct8NDd
         dOF+ce8FaB9vB6x6yezwseCgcCABOUD1HGaDYZQQuDPFbfMpzvZ+i2OPusa4VIfxUy2/
         QY8A==
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;
        bh=ZXKM/a1a0XrwZ4II9EJ2RsuunRIt3ztkWM+jRmsd7wU=;
        fh=b1Hn85hcRLJLtm8iSumzM1torjsshWc3lgQZQ357SIw=;
        b=jHFiS9/yvVP5jWKoKGn6+sH0pVJLAuLgRgrgl2k9MjC9DnAKgvzTW8hEyXW9N5ZWm5
         WK+lwI2nLHaXiNzIpc/S8QaX6o7TZC6xRPXgRmtjewzCaKYJyX4n5nnihTGUrv4cUaw+
         NDIOtsAgyl6RYf60PeQb/3KRN9UVKU/4/J2F6h6kZ4BtVm8zBJkCydO2z0SvWxW17+Qe
         QukIJ991TD7pfnLLqfRCccOftTFfXF8EOyfkmsWF77JwtDxuIuByb809f33Oas5/Vmdq
         nxZy4J0oFXH6eoC5do9IH+toPjgAVzbRakeJ/yjR0omUIsOb1AWQCAu4LFHfcEVyAxz7
         K2Cw==;
        darn=gnusha.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
       dkim=pass header.i=@rosenbaum-se.20230601.gappssmtp.com header.s=20230601 header.b=AkP9M3q5;
       spf=none (google.com: kalle@rosenbaum.se does not designate permitted sender hosts) smtp.mailfrom=kalle@rosenbaum.se;
       dara=pass header.i=@googlegroups.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20230601; t=1737116607; x=1737721407; 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=ZXKM/a1a0XrwZ4II9EJ2RsuunRIt3ztkWM+jRmsd7wU=;
        b=oDRvptkP8COIXGnvqX7U3vmpd8JaGxjwkFHjIARGIsELfPIfHryuQ8hZ+LtMMAMsEl
         wZ0uw98Pw+asYYMrT0lEV87qTgvJWufdaOWkw/alOnYd79eALDeQtewvQaSgUr2OI+D2
         gZNjG0BXvmg6rVH1/A3URx/O9jDgut3YAa1EAPNFr+JpI+A7dixB/rI32oIHUGF9idM0
         2bmiMewNouPcFuO2EoKhU3SyKkGBhw3hL5vwLMUDiHa6KqMK5fsTmRdhk3TWUIX2YgLl
         jLN4edNnmBYrQR4e7c8b0JaJuiNtR0bKwUeABIGzQEfejtvSA/qbPs1BgwE51OSbyT21
         sFDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1737116607; x=1737721407;
        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=ZXKM/a1a0XrwZ4II9EJ2RsuunRIt3ztkWM+jRmsd7wU=;
        b=QBIGzR1dIZr7j7bc5jKwt1sA3vTGuqekPzeOugohVvblzlZA6pHdZFdh0TXTbpcjIc
         lpu6OEVHKE6BHoQymK5PBZ0JHlfW0yyeO7idA1pPLQ0tl4wJEc132quO7efkTSxZUTjd
         lPFzUTkXK8egmMFqgcqcwONcvoFhnPTY50WDiqX6h5EWVcs3zCcjL1fuWKdcQp9oQqFV
         bch8OpYSRtOHcjp9tDgVIDytHwe8C6NdXlK2DhmnlKYt22Qk9cv5qgQdVEluDVg386rJ
         AUES3+uilscQW8yZu+azqtxt5fqXjFEvse2ENhuUF4T6q0eyX4QwMUF1LEz8ieOMhGTM
         tjBw==
Sender: bitcoindev@googlegroups.com
X-Forwarded-Encrypted: i=2; AJvYcCXEcuznAbnWCfg5CFKaSsakxTufCSgzEsm1sMxIuiBhbNjfmC8NHk9/8Iv/l6su5yCiIU9sQbJNzhPp@gnusha.org
X-Gm-Message-State: AOJu0YzxGOQmYVOWDAcrOJKAnMvEDRs6H8OBPBdOyuEIuIOylJR+bYWO
	135SJ1dWhl3Y7uNPSaBT/C90jydrjNO/y0gan4Az435WyGAheRqZ
X-Google-Smtp-Source: AGHT+IHFIVNmPewny3H+CQhLRUF+Dxoih8GZIN/3e6LcxsqxC2vkex47yAGt2gHibGDL4F3gFYag0g==
X-Received: by 2002:a05:622a:145:b0:46c:72a4:35a5 with SMTP id d75a77b69052e-46e12a87a44mr39287261cf.28.1737116607398;
        Fri, 17 Jan 2025 04:23:27 -0800 (PST)
X-BeenThere: bitcoindev@googlegroups.com
Received: by 2002:ac8:6d08:0:b0:46b:cf11:757c with SMTP id d75a77b69052e-46e02ca116bls25353141cf.0.-pod-prod-09-us;
 Fri, 17 Jan 2025 04:23:25 -0800 (PST)
X-Forwarded-Encrypted: i=2; AJvYcCVX7hNzsIRzHJp2+niIWH5UAfuNsRePrZC5diPCpSmQEEps9FQfuwiblq3NLeFBYJ5WvsEMtZ84N+hj@googlegroups.com
X-Received: by 2002:a05:620a:1902:b0:7b1:51df:117f with SMTP id af79cd13be357-7be6325c411mr489472785a.56.1737116604954;
        Fri, 17 Jan 2025 04:23:24 -0800 (PST)
Received: by 2002:a05:620a:bca:b0:7b6:d72a:7c26 with SMTP id af79cd13be357-7be5b770757ms85a;
        Fri, 17 Jan 2025 02:38:42 -0800 (PST)
X-Forwarded-Encrypted: i=2; AJvYcCWqfTVysNx5fLzmRwO4ha2FTtvm0afpEYiI+TuNGrKqtF4FaGMv3+LOM85p5lHQ6w/hAAsHwi25OP2H@googlegroups.com
X-Received: by 2002:a05:6512:3405:b0:542:63a8:393f with SMTP id 2adb3069b0e04-5439c24121bmr566654e87.14.1737110319997;
        Fri, 17 Jan 2025 02:38:39 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1737110319; cv=none;
        d=google.com; s=arc-20240605;
        b=Se5ACCrfG1ApJ7thvqzhA4id0cSGevFmnB7qSLL/4yeLKzJoTnCvQ9z6NkzTiLg1es
         DVgohHPHJOU4QnRavnXeaUMfsMBdG+5DwdtX2Bs+RNqeyQ3pQfm5P1zJkV79XmFOCVTW
         vBOUCVkssOH4+ts3h/nB+dJyAce+reuR+U/6T6/CXnglWfr6LjT1+aGUkUeBQ2ua45i1
         Rxm3uPSuz2wuD0bhLHpHqpUvW1xBav8gchlaShCt/Jnum4hEHtQU9QonIp6lsps6XOGk
         73uIXB/H5dxj6i9hJVLvVpETgMBT9qrSHd2v4YmHUSYfy6aoLMNHgF13SadhxEnG1xNQ
         YUgQ==
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=5IVvRNEm0eTCOY2dAbyd/aF1flqHcEWoGcYm+zUbDTc=;
        fh=wtuT+KIjMCT59MOLDQmrOsdMPgoZy2bBSAmerTMNCFc=;
        b=kG8yK85Nfd0kPKqrQa7CdAy1CeLjcx2LBpgT+lP3HvXdT/X3CxVIngSasiDrmzfCPN
         /RiArSPEcwFVRX6+KKdk42jgIOzq/JEJDZZJxFkrIsn5al3ar9kcW0N3U63Nk1bedEzJ
         WG9+eqt80mflFBqzWKNXSElZKAQ4mGIBHDfT8OWnYOF81i04o4B0mX4bQlYIcjC6RLkJ
         HzlcLPjBqbve2enbe7iwT38OyBH3RT0Q7mcK9xTVvROuBaOaFsLRMQPzyCRq2wqZwJvQ
         5RQBCUJQcLkNnJsX4CCWkTpyO837wKv7UhI7dk6qpDP8IF3otbFwONcjJi2Dg9ALubZk
         0eQg==;
        dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       dkim=pass header.i=@rosenbaum-se.20230601.gappssmtp.com header.s=20230601 header.b=AkP9M3q5;
       spf=none (google.com: kalle@rosenbaum.se does not designate permitted sender hosts) smtp.mailfrom=kalle@rosenbaum.se;
       dara=pass header.i=@googlegroups.com
Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com. [2a00:1450:4864:20::62a])
        by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-5439af75c6bsi46094e87.9.2025.01.17.02.38.39
        for <bitcoindev@googlegroups.com>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Fri, 17 Jan 2025 02:38:39 -0800 (PST)
Received-SPF: none (google.com: kalle@rosenbaum.se does not designate permitted sender hosts) client-ip=2a00:1450:4864:20::62a;
Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-aaecf50578eso405723366b.2
        for <bitcoindev@googlegroups.com>; Fri, 17 Jan 2025 02:38:39 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCXRIFJ3v/9/Xuua7baKJHCNHrYQHgDbRBu7MsiGsPZ/5Z5ec9OacYnSkizp8BJB6+rSHMfbo1jyAftU@googlegroups.com
X-Gm-Gg: ASbGnctIZdZj1h5G914P1w17NAEe5Lt1kPf31gayP8FBW/q1Wt3ylimYf7fweCEl5KK
	l7pUesuefL5LgRZROCbs/hw2V3jaOs69un46TV4U=
X-Received: by 2002:a17:907:948b:b0:aaf:f32:cce2 with SMTP id
 a640c23a62f3a-ab38b38138cmr197980666b.37.1737110318958; Fri, 17 Jan 2025
 02:38:38 -0800 (PST)
MIME-Version: 1.0
References: <6FDAD97F-7C5F-474B-9EE6-82092C9073C5@sprovoost.nl> <CAMhCMoGONKFok_SuZkic+T=yoWZs5eeVxtwJL6Ei=yysvA8rrg@mail.gmail.com>
In-Reply-To: <CAMhCMoGONKFok_SuZkic+T=yoWZs5eeVxtwJL6Ei=yysvA8rrg@mail.gmail.com>
From: Kalle Rosenbaum <kalle@rosenbaum.se>
Date: Fri, 17 Jan 2025 11:38:28 +0100
X-Gm-Features: AbW1kvb9NuTyzWUF9iKLTribS8yYENgkB6CdNgof0syS_aj29pPRpWalJu7aWNE
Message-ID: <CAPswA9xbtbEfj-QmnAXj1m1R+Gap-Bd9vs8ed1ueA5gGtD-pYw@mail.gmail.com>
Subject: Re: [bitcoindev] Who uses or wants to use PSBTv2 (BIP370)
To: Salvatore Ingala <salvatore.ingala@gmail.com>
Cc: Sjors Provoost <sjors@sprovoost.nl>, bitcoindev@googlegroups.com
Content-Type: multipart/alternative; boundary="0000000000007f6d29062be4835b"
X-Original-Sender: kalle@rosenbaum.se
X-Original-Authentication-Results: gmr-mx.google.com;       dkim=pass
 header.i=@rosenbaum-se.20230601.gappssmtp.com header.s=20230601
 header.b=AkP9M3q5;       spf=none (google.com: kalle@rosenbaum.se does not
 designate permitted sender hosts) smtp.mailfrom=kalle@rosenbaum.se;
       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.7 (/)

--0000000000007f6d29062be4835b
Content-Type: text/plain; charset="UTF-8"

I might have linked to a slightly outdated version of ledger's psbtv2. I
haven't been involved lately. The correct one could be
https://github.com/LedgerHQ/app-bitcoin-new/blob/53dfd1727ab55182f9e365747b26b862e48b7b8b/bitcoin_client_js/src/lib/psbtv2.ts.
Is that right, Salvatore?

/Kalle

On Fri, 17 Jan 2025 at 11:03, Salvatore Ingala <salvatore.ingala@gmail.com>
wrote:

> 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
> <https://groups.google.com/d/msgid/bitcoindev/CAMhCMoGONKFok_SuZkic%2BT%3DyoWZs5eeVxtwJL6Ei%3DyysvA8rrg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPswA9xbtbEfj-QmnAXj1m1R%2BGap-Bd9vs8ed1ueA5gGtD-pYw%40mail.gmail.com.

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

<div dir=3D"ltr">I might have linked to a slightly outdated version of ledg=
er&#39;s psbtv2. I haven&#39;t been involved lately. The correct one could =
be=C2=A0<a href=3D"https://github.com/LedgerHQ/app-bitcoin-new/blob/53dfd17=
27ab55182f9e365747b26b862e48b7b8b/bitcoin_client_js/src/lib/psbtv2.ts">http=
s://github.com/LedgerHQ/app-bitcoin-new/blob/53dfd1727ab55182f9e365747b26b8=
62e48b7b8b/bitcoin_client_js/src/lib/psbtv2.ts</a>. Is that right, Salvator=
e?<br><br>/Kalle</div><br><div class=3D"gmail_quote gmail_quote_container">=
<div dir=3D"ltr" class=3D"gmail_attr">On Fri, 17 Jan 2025 at 11:03, Salvato=
re Ingala &lt;<a href=3D"mailto:salvatore.ingala@gmail.com">salvatore.ingal=
a@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr">Hi=C2=A0Sjors,<div><br></div><=
div>The Ledger Bitcoin app uses PSBTv2 since version 2.0.0 in 2021 [0], qui=
te possibly the first adopter - although for somewhat unusual reasons.</div=
><div><br></div><div>Working with embedded devices with just a few kb of RA=
M, even sending the entire PSBT is not generally feasible.<br>Therefore, th=
e client instead sends a &#39;merkleized&#39; commitment to the entire PSBT=
 at the beginning of the signing process.</div><div>This enables the device=
 to obtain random access to the PSBT by querying the client (who provides t=
he data - and the Merkle proof - on demand).<br><br>In PsbtV0, the unsigned=
 transaction 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 t=
he individual transaction fields is possible).<br>PsbtV2 fixed this by havi=
ng the transaction already &#39;parsed&#39; into individual fields.</div></=
div><div><br></div><div>The companion client libraries of the Ledger Bitcoi=
n app support both versions, and PsbtV0 is converted to PsbtV2 on the fly.<=
/div><div>Broader support would certainly be useful.</div><div><br></div><d=
iv>Best,</div><div>Salvatore Ingala</div><div><br></div><div>[0]=C2=A0<a hr=
ef=3D"https://www.ledger.com/blog/bitcoin-2" target=3D"_blank">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" target=
=3D"_blank">bitcoindev+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&amp;utm_source=3Dfooter" target=3D"_blank">ht=
tps://groups.google.com/d/msgid/bitcoindev/CAMhCMoGONKFok_SuZkic%2BT%3DyoWZ=
s5eeVxtwJL6Ei%3DyysvA8rrg%40mail.gmail.com</a>.<br>
</blockquote></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/CAPswA9xbtbEfj-QmnAXj1m1R%2BGap-Bd9vs8ed1ueA5gGtD-pYw%40mail.gma=
il.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/=
msgid/bitcoindev/CAPswA9xbtbEfj-QmnAXj1m1R%2BGap-Bd9vs8ed1ueA5gGtD-pYw%40ma=
il.gmail.com</a>.<br />

--0000000000007f6d29062be4835b--