From mboxrd@z Thu Jan 1 00:00:00 1970 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 ) 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 ; 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 (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 ; 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 Date: Fri, 17 Jan 2025 10:45:44 +0100 X-Gm-Features: AbW1kvZY2rJwmGt0-o3Td7vn_3OR8KFZcarpiHkiDVY-AoHyC6S_yPMWlTF2cYU Message-ID: Subject: Re: [bitcoindev] Who uses or wants to use PSBTv2 (BIP370) To: Sjors Provoost 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: X-Google-Group-Id: 786775582512 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , 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
Hi=C2=A0Sjors,

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>
Working with embedded devices with just a few kb of RAM, even sen= ding the entire PSBT is not generally feasible.
Therefore, the client in= stead sends a 'merkleized' commitment to the entire PSBT at the beg= inning of the signing process.
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).

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).
PsbtV2 fixed this by having the tra= nsaction already 'parsed' into individual fields.
<= br>
The companion client libraries of the Ledger Bitcoin app supp= ort both versions, and PsbtV0 is converted to PsbtV2 on the fly.
= Broader support would certainly be useful.

Best,
Salvatore Ingala

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