From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sun, 22 Nov 2026 16:14:54 -0800 Received: from mail-oo1-f56.google.com ([209.85.161.56]) by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1xVHht-000BEl-Sj for bitcoindev@gnusha.org; Sun, 22 Nov 2026 16:14:54 -0800 Received: by mail-oo1-f56.google.com with SMTP id 006d021491bc7-71b16539e0dsf2814989eaf.0 for ; Sun, 22 Nov 2026 16:14:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1795392887; cv=pass; d=google.com; s=arc-20260327; b=cKs5NsmIpGQB2kNlzH30HZoFdYCcWX4TZd3lhWkcx6WJBzjJWFkPjTzgN2C8z3QawA BDlysG2FZledHrtmmy3GDAXTPjZM9xr6yvBwtQMkgK5MdZHAzYJEF7bKdvAvdJ/4ya2w wf07Gah2eshxMCkdRQIMnTaUwZWtKtIw6rqb9xzwqyV/mBimUJgTL6vtb6MswMUvgg3b 6odvxRv0KnjMVz2VhwP4rhgRNARStnyNqtKmOXZaeUngfb0bus1oIqk/aF3hfYQrRgUC 41xKbQehoaNuULtiV4YgGZP6BPDqLOOGuj9TvJSFLJOUycT2lor3KNTdJTJlDDOlzdoN bOJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:to:message-id:subject:date :mime-version:from:content-transfer-encoding:sender:dkim-signature; bh=eUFdPQLQih/CEgwrpyNzIs0vFTad+l286P7Z+DZlWRE=; fh=MDIBB9eQr990ReZMKutHelulw/Tp8iEdhvae/XuvIJE=; b=ih9xKr1a6tYritMaMVkrDXjMgzxYm2K+JRu/9x9TfbKGwOOlOiFFi+JuZFAsDmgi3I Yg1xnsnUqtcvdWMMQ97pheVYcTOaSLCEYCKBLhn6TpvlOzPodKIvEYliTkqilxSedZP7 zVco+SBfrIXRa37ihfb8vp/2boM5vvG8Rmg2vY+eGFjLptCF7uqoNG9ykpend3xhgGYP 16jqJIHnyB+amZHs+Kz+55L5PCHkH8rOD8sZP/ftuzQLS+PKYm3Ez6V1PRKm6PJZQMDX NuxrpuH3hyHLi5GgG8cx6bXUaQBePMvhuHoYoMJJbyTuHQSN7WXaNf2GWi83B5ko+YIl V3Ng==; darn=gnusha.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@jeanpablo.jp header.s=google header.b=F35iwgAn; spf=pass (google.com: domain of me@jeanpablo.jp designates 2a00:1450:4864:20::334 as permitted sender) smtp.mailfrom=me@jeanpablo.jp; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=jeanpablo.jp; dara=pass header.i=@googlegroups.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20260707; t=1795392887; x=1795997687; 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:to:message-id:subject:date:mime-version:from :content-transfer-encoding:content-type:sender:from:to:cc:subject :date:message-id:reply-to:content-type; bh=eUFdPQLQih/CEgwrpyNzIs0vFTad+l286P7Z+DZlWRE=; b=mp8k3EOGf0YMhGJdudLRMfjEu/WMPZejuIcDbHO/Y8KFFi38IGViPt2Ns2Gbk4tr6D y/arVJY4+hOSsNsPZG/EELuzx6i+sZs25iGw8rXU0ritsiTdRr6KR2d539OJAN7NxsEP K3boL+U4GtzumPhMDRq17odcmaWkevKP5vspFoWnPmH5O/0e/DQ5KjcMjW2eTFlCeSN6 oz7/ApOAVKAp0YkQ7z7ofusVpHgNzfBQd/DNm8RjLyW3NPyXibDt7YrhcG8haQErf2pv bp7C9rIOHEtq0H7cOV1icyqZv3ibJu5ADgJf2yA7fkPjHzCl4qVPM9DToZSX+dfm+1aT wEyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795392887; x=1795997687; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:to:message-id:subject:date:mime-version:from :content-transfer-encoding:content-type:x-gm-gg:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to:content-type; bh=eUFdPQLQih/CEgwrpyNzIs0vFTad+l286P7Z+DZlWRE=; b=f930+CzNC8Q1GEiyqdr6ASDEMHXvyjh4N3R2hrAGt6wTJOazC44SY9AB4hKpbPIHDy YAUDoKP2arA6ZZPxXuKwMcPFo9eQfOF8qEsXaxZdqA7uec+K+onFn204BKefCea3dIp9 rOV9E0IPaUvOKMZCYEL5YxOhDeDqarH26oB5D7p3/iALU887gwVgarkSZ/l1nA3+uPcE 83T1yLFR5ltGbTQFX1CrJk3adM1Ie9vGgw5w8Dgs9h/+CYrVvtjRJqEzQ/sBlePZyISN g5lNctBYeByKPfsXX2UK7UFe+/ds4NA1XIhNurUxwODY8L7ZkGHDC22MsMaRvGVTwVHa E8GQ== Sender: bitcoindev@googlegroups.com X-Forwarded-Encrypted: i=2; AL+hErEUOxcyjhVr8a/fIgCOFK2Fq7OCXQjI39FTjrN1rdHLvhhvMSesdenTFhLYHd1h1Rh/AxNZY53/B/e5@gnusha.org X-Gm-Message-State: APuU4Z/G+qyB8rzKrhPNRFSwC18FLUK1wlGSLy2bNgFhNUNtDmm2dx9s LjtaCqkdZz6uuOzjG45+bXWrU+mJaya+NgNH9bIFTIuO6bwv6L1wh7HD X-Received: by 2002:a05:6820:f026:b0:71a:fcbf:2472 with SMTP id 006d021491bc7-71b39290b02mr8368300eaf.13.1795392887302; Sun, 22 Nov 2026 16:14:47 -0800 (PST) X-BeenThere: bitcoindev@googlegroups.com; h="ATskLdchS97PMlr9eA7gtmIGSxttmUb52CyaZN45Uog/oTksDg==" Received: by 2002:a05:6870:d98:b0:48f:2438:a939 with SMTP id 586e51a60fabf-4bca03eae58ls3465163fac.0.-pod-prod-07-us; Sun, 22 Nov 2026 16:14:39 -0800 (PST) X-Received: by 2002:a05:6808:1a0f:b0:531:3bcd:41a with SMTP id 5614622812f47-57a0c094c8bmr9329679b6e.59.1795392879430; Sun, 22 Nov 2026 16:14:39 -0800 (PST) Received: by 2002:a05:600c:8287:b0:4bb:68a2:44bc with SMTP id 5b1f17b1804b1-4bb88ec2da0ms5e9; Sun, 22 Nov 2026 15:43:49 -0800 (PST) X-Received: by 2002:a05:600c:3b88:b0:4a2:191f:7cbd with SMTP id 5b1f17b1804b1-4bb888078a8mr233788625e9.11.1795391027856; Sun, 22 Nov 2026 15:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795391027; cv=none; d=google.com; s=arc-20260327; b=RpvYfCTFJqvygNE9t0JArMZGby5HMV6HMd26eSAANyotvy2pDqvbUkkQJHI5DCt+cT 6Ip5vh4Pxri2PTCrEM0nY6OCKEvT4mjbz0+EMwWRSf1aBeCzdh5Igx+RgWG8ib2FqjDU zuiGSTKd8d2gjQp/TJJMxa18GVyjm9dsUg21160bNbDV110MBWOoiXELwVbz4IM3Ga0e rxSronGH5Qmfh8iBbwRnxYYz7q48HBevlfYHtbRKKya29GNu6J5e31YdbCc/6sERwubP r6EPkTvuJVGbATJxLq6loWhoKvW2V2KO2gDKtfnEMW8j7hK1ZBCxvaBYuLyeFqa9FCfv x5MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=to:message-id:subject:date:mime-version:from :content-transfer-encoding:dkim-signature; bh=Rgq8j+GKbkoyIWpX3FW7w3h4UhvT2guKuzcq6KiiCBI=; fh=VcGcg+Zjs9gw1uDcHbxsAILhBAcecnbJzZRdxgKVDIc=; b=sy8BteMbS0Toagbd/w6oa/bEMinrEG2+FYMfklmSkShmZUAI4A8Y2zI5+y7goZrvPr WHs6hBH/hj3Ru/uAOeDLzB8AOGGLSdR6ShOiiBpp2lTI4K+UoRq8s8lGaGtYF76ogYK+ ZmZwgbF9yNOXZlfHbtB0bj8JKztGfyKWRuHM0zYlQjbiKyvk/hO8Ar3E30fpXiJb6r/f SANhmQWl8u36t2/5uHNf/rABZ18ji6nZBIbRBZKoBdhU1OdRonMhJuC6m8mBT9Z8JR/H KsAQC/rglXhVqMleGI9P6kYBSGkChVVBWyJSU7shifHFVEyy5wAxvhQS12AJHgqi4PNm hwfg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@jeanpablo.jp header.s=google header.b=F35iwgAn; spf=pass (google.com: domain of me@jeanpablo.jp designates 2a00:1450:4864:20::334 as permitted sender) smtp.mailfrom=me@jeanpablo.jp; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=jeanpablo.jp; dara=pass header.i=@googlegroups.com Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com. [2a00:1450:4864:20::334]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-4ab6bc8cf60si120997f8f.11.2026.11.22.15.43.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Nov 2026 15:43:47 -0800 (PST) Received-SPF: pass (google.com: domain of me@jeanpablo.jp designates 2a00:1450:4864:20::334 as permitted sender) client-ip=2a00:1450:4864:20::334; Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4bb6adaf0f1so23145995e9.0 for ; Sun, 22 Nov 2026 15:43:47 -0800 (PST) X-Gm-Gg: AZFdTZcQXMf/G/yk5o11N8c1K/SbV3ZxhZJsuq4/J7omgnap96tY5YcF1RcXk1d5+oI 5f7F51jDKikKDXhbH5tsUPqQ51RV1/CmCRH4gCsl1Y1Yu4psgEgQ34wSnLaq1Yx4uz28g0IVNlc EE2C1inKXiRZMF7GAp2ySqqhaKtG/Ba53Wm0nq6ScbaqrwKjf2QIbZA9XL1B2ESs6Muwoh2H8H4 zP83Q9RZbH+13frejaEcNQeO/uQNLG5gd/l84CrsC+ivlKs5QUTSZuEXQEBPoTAVeyJzvKbzES3 l0XvHm9cp98IGrSBdsSF8PB1RjcXa70i5gxHL9ERKYqnLvJP2VRKiXO6wtSM2GtzgnafPvuKNt1 ++3277XaCt6dn/Nnf2zXlh7CX86R3X2fKp61gS/+EQY/Z47vYVmql5Ns6K3fFXeIzw9GK9teUNG w/F1Jbk6A48ZfKOuPxZ6TKAhbfUnG1dgZmBUndwl34j/0lku+YY13H/RxSO3KLDGcRj5f5t17iG YmswSTY8jifsArukP6s7C349TPQ4XDhVGs9pUCK17qYGHLZ1AlpjrNXBIaEvE6271tWJ0LoEunw nATE3D3pS9hYLw6NCY+LXlbNYRCH3/YU8Kdx/b4CvvXzNkxLKjcOFdg= X-Received: by 2002:a05:600c:3b1a:b0:4a7:8fe8:130c with SMTP id 5b1f17b1804b1-4bb8881d4damr209620055e9.28.1795391026926; Sun, 22 Nov 2026 15:43:46 -0800 (PST) Received: from smtpclient.apple ([2001:818:c7ab:3600:a4a3:8b83:762a:b9fd]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb88442995sm308077805e9.2.2026.11.22.15.43.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Nov 2026 15:43:46 -0800 (PST) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: Jean Pablo Mime-Version: 1.0 (1.0) Date: Sun, 22 Nov 2026 23:43:35 +0000 Subject: [bitcoindev] [BIP Proposal] Witness Transaction Inclusion Proofs Message-Id: To: bitcoindev@googlegroups.com X-Mailer: iPhone Mail (24B156) X-Original-Sender: me@jeanpablo.jp X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@jeanpablo.jp header.s=google header.b=F35iwgAn; spf=pass (google.com: domain of me@jeanpablo.jp designates 2a00:1450:4864:20::334 as permitted sender) smtp.mailfrom=me@jeanpablo.jp; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=jeanpablo.jp; 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.8 (/) There's no BIP for proving that a transaction is in a block by its wtxid. A= J asked for one, with test vectors, when reviewing the Core PR that adds th= ose proofs to gettxoutproof [0]. Sjors picked that work up with a sketch [1= ] and said the vectors could become a BIP, preferably written by someone el= se [2]. I didn't see anyone take it up, so I wrote a draft: https://github.com/jeanpablojp/bips/blob/witness-inclusion-proofs/bip-witne= ss-inclusion-proofs.md Knots, Sjors's sketch, the Electrum protocol draft [3] and an electrs PR [4= ] each have their own format, and the checks a verifier makes are in Somber= Night's comment on the Core PR [5] and in each implementation's code. The d= raft writes those checks down and comes with a Python reference, 31 proofs = that must verify and 62 that must be rejected. It reuses the five blocks of= Sjors's fixtures, and its Merkle branches match the sketch's over nine blo= cks, except in block 481823. Miners were adding the commitment output months before segwit activated. Of= the mainnet coinbases I sampled, 12 of 51 between heights 436,000 and 481,= 000 have it, and all 42 between 481,700 and 481,823. None has a witness. I = ran Sjors's sketch on block 481823: it builds each proof in the witness tre= e and then rejects all but the coinbase's. In the draft the verifier takes = "segwit is active for this block" as an input. The coinbase witness can't s= ettle that, because a prover can strip the witness without changing the txi= d. A branch can also verify at a position past the last transaction. In block = 481823 the branch of position 1695 reaches the root at seven other position= s, up to 2047. A node can check the position against the transaction count,= which is what Sjors's sketch does. A client with only headers can't, so th= e draft rejects a right-hand node equal to its left sibling, as Core's part= ial Merkle tree does. There are two formats and a JSON form. Format 1 is a plain branch per trans= action, as in Sjors's sketch and Electrum. Format 2 is a BIP 37 partial tre= e with the same bytes as Core's CPartialMerkleTree, as in Knots and as AJ s= uggested [6]. Ten transactions of block 481823 take 4,523 bytes in format 1= and 3,325 in format 2. I'm not sure two formats are worth it. I'm also uns= ure about requiring the padding bits of the last flag byte to be zero: BIP = 37 doesn't say what they are and Core doesn't check them. Feedback welcome. [0] https://github.com/bitcoin/bitcoin/pull/32844#pullrequestreview-3400680= 165 [1] https://github.com/Sjors/bitcoin/pull/116 [2] https://github.com/bitcoin/bitcoin/pull/32844#issuecomment-4690626677 [3] https://github.com/spesmilo/electrum-protocol/pull/16 [4] https://github.com/Blockstream/electrs/pull/235 [5] https://github.com/bitcoin/bitcoin/pull/32844#issuecomment-3021260691 [6] https://github.com/bitcoin/bitcoin/pull/32844#discussion_r2478855640 --=20 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 e= mail to bitcoindev+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/bitcoindev/= C899B11E-4971-4AAF-8BA3-81EBAFBF7739%40jeanpablo.jp.