From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 04 Dec 2026 08:41:28 -0800 Received: from mail-oo1-f64.google.com ([209.85.161.64]) by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1xZWLg-000dR9-6U for bitcoindev@gnusha.org; Fri, 04 Dec 2026 08:41:28 -0800 Received: by mail-oo1-f64.google.com with SMTP id 006d021491bc7-71addb06a78sf1151846eaf.3 for ; Fri, 04 Dec 2026 08:41:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1796402482; cv=pass; d=google.com; s=arc-20260327; b=pw8B0/bFOgGMQgtB+Ylqt1AYwVcaSzetUw1bRfknxgYJyeX3/siFaXzMbH04ssPras IuM3no8lMs/NC5TLyFEcYVORobkjLWK4vgZSnnCnBBQyE2v9VgXuOGVToamiMkmWjWn5 Cy7Zxfe+ZleUQP1/LY0s7p0sHDrEdb+WYMw6Zw9N5W8CyM3gHgPdN9W9io2A+jyE+L+z Vq40DhL0o7Ycl6TxC9FmE2RmUokLRj588/3yNCCif1zvnxPFmMWNDsvZdkVfFcHHPLR6 3CnjxO34mV1yC3dXv6fgdbbMU0b+FKL5kdssIc1wLxI1RBWk6pWNG/fmOwFYhVmfco66 ZbSQ== 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=fjLTFIX3RZQtZGHA5VmKhvA2tY2hIwmjqCxw7M9b7tU=; fh=qc2eXKSppfu9C5rwNujeCep7UPa9mrFuvaJQAqnGxxM=; b=DTGysKDbvSBnv/P1NjXvOi6ikTIA1Gv6e6jTewHS4vWmbl5WlM7cOig4gbymqIuTG1 xdNpU8d4CTo0onwf+hJkao6h855a7BlJ4QjYe/8xhM+xLqVv/L0RvQEU+ZsHF037SJJd nEvuNQH8wpklWn4Xy/XvRjCJREcyaBMnd4FetH5ydujYTNEwJ5SEnOy7pakeivbvhpip YQjl+FdiZe9BjZAfp4KCZPETL09CI7tUgLecwKeS1pAm0b51DDpaB9yQIewxQDNQ/MIn k+9p+Ju6EAs6eYyl/PGF3Ta1D7cmkgOLAZTrxDCJujkgMhhmIrUyaRWNv+GOKPgXih+f B+lA==; darn=gnusha.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@jeanpablo.jp header.s=google header.b=mnmhcQYJ; spf=pass (google.com: domain of me@jeanpablo.jp designates 2a00:1450:4864:31::5 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=1796402482; x=1797007282; 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=fjLTFIX3RZQtZGHA5VmKhvA2tY2hIwmjqCxw7M9b7tU=; b=LrdbBMlNFS7sgYTOdGdJImFVhkD5k6eJDSsFOISVo/lQX2vIHX2fOfP7MdbGKQ6j5s rRIlU25HHhQEDNrCUSdLzC0wJg+k5Z73INTQLakvbpOdNpZFvtyf/dynKgB38qDgMUTZ /2IwGP++pYqx7JeK9VLYWm2LYVV8PKJU/1aqAEvEJxAguYPoCAqFutg9HUPGcFjuA7kG ikCZXZgI5NIh3djW/LstYC2VYil0iM8ukxnW/VC2D1eMWduyByzYpaegW9XKoFZ51tgj xZf4LAPiJzIdlJwO6jeAcSR0JV2tW/ozzmV5GSMm8NtjmfSTWhE9QRWdY2InHcdy20x6 rNtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796402482; x=1797007282; 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=fjLTFIX3RZQtZGHA5VmKhvA2tY2hIwmjqCxw7M9b7tU=; b=vIZX/kwuU3StQbyw5ZV2i++goSO79i+ooX8PQrvynk65hHtk+2UTurPrZNQ3BLpK1/ DkCne63qalA/+vuSwgxwt8gf4gWyQ9hf9lY1oJbtPUy8bw2EVWG3hdPJwst9uHSemYtg ZLe/T++gIHzQz6uOqr5FENPupkxeBEWOoxeliwCc+/vlbd0lcOJet2hnV0VHTCsOqnJr ZJFuxFaBIp9Q7JqcU+F2owZvVPD+4RoprSXeyZOxymsnb2ic4lMevy1VVgJEpRMDg/Wq 3WpRfEXQSq021ulvAO/gApo3VTnk8dJ2zn0ISB5AW2bUyrZbEx8H3g2pzmtZ7xFJ9ZOL YDyw== Sender: bitcoindev@googlegroups.com X-Forwarded-Encrypted: i=2; AL+hErFwYdqdYqCvoZyivgDwG69zsPa4M0mov9JM8kjrv0eSlStpjHxFfBQXSjLqbRa+whxOi2uVHaeInM57@gnusha.org X-Gm-Message-State: APuU4Z8zBOCc+aFvFahHfSvdx8chFLMZdkowDguvVvkgZvsGJ2xXH64/ O6THjJJ70kuBEuRBZIHmtQeTJIN42xHt3Do748519IY1cz+RpTANPqTi X-Received: by 2002:a05:6820:350b:10b0:71b:8238:4e2a with SMTP id 006d021491bc7-71bf1ac3ae2mr1585071eaf.6.1796402481949; Fri, 04 Dec 2026 08:41:21 -0800 (PST) X-BeenThere: bitcoindev@googlegroups.com; h="ATskLderkeCowAH4UbAi9pn6L8p/I0tx73M4zxodDk2DsZ11cg==" Received: by 2002:a05:6820:7090:10b0:71a:d538:2f96 with SMTP id 006d021491bc7-71befdef11fls955909eaf.0; Fri, 04 Dec 2026 08:41:16 -0800 (PST) X-Received: by 2002:a05:6808:17a4:b0:4f6:243:cb9d with SMTP id 5614622812f47-57f208292dcmr2540559b6e.61.1796402476096; Fri, 04 Dec 2026 08:41:16 -0800 (PST) Received: by 2002:a05:6504:42cd:b0:31e:691b:f27a with SMTP id a1c4a302cd1d6-323ea6388f1msc7a; Fri, 4 Dec 2026 08:39:34 -0800 (PST) X-Received: by 2002:ac2:51d6:0:b0:5bf:e540:8606 with SMTP id 2adb3069b0e04-5c3861b810amr775058e87.59.1796402372679; Fri, 04 Dec 2026 08:39:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796402372; cv=none; d=google.com; s=arc-20260327; b=QsAdVzIM93CZsFsJBK8cGmnILaZi19u2b+CtcaZJG86Vz1we1QamQEM2AVVuWaIcF2 FCRzt0zxei7iWI92u2+jLs0e3j3HtuQ+xhwMS/4t69H/FJHDo4OgSy3g+/ePLRaCPSt+ uLdQ9Et3vA2mHOJaZjp30gaY348kRYEQshdc4LGsjBaZf/fRSBaBW6HPfcdv14sMzpMG hKHwRtuVS8UNzhzmqBrOVhsZSMgpHukpABYn4j/9I/V8SXoKVssoV8VXb4JBfP5tkD1F ZehBDq7BPPz2Qml/Kly6sOZQir9l0xe2FweYytErGxnXhymt+WzQRyV9szpptcRrId1k tovA== 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=lVQ8STe54EWDeVVze3lmtjjmhJOHawwYSJaL+swclHk=; fh=VcGcg+Zjs9gw1uDcHbxsAILhBAcecnbJzZRdxgKVDIc=; b=a2RTA+N/+erBZPazWw5cbHDt4Ir+o3FuA/8paOrS71xXAe8IRQxd3JWqqcAQ8LXVdI AgdEr36dMaWdvE0jS05NkuvhCvflooy+5oHU+RUGwPlgVTqRCBuCbLBTSQ5wxTnVVBu8 veHBsFZbPXW+5K+k5S6jCHpeWjEp0xP9eTYdE7rsOuIyWUf9FJitxtIB71stXevPU1jP M4KRGFdBy5wZcbwGJ8U4/WbbyqMbuhX7VKfg0ud4vf87xksF+sZjBt4fQr/ReVqsdO+R HmuDSRBDF3R73XSTzleIUy3lh815w4sNriXv+uilYZ/YQNoazPuMwLpOmigbI2/ieIgV u7vQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@jeanpablo.jp header.s=google header.b=mnmhcQYJ; spf=pass (google.com: domain of me@jeanpablo.jp designates 2a00:1450:4864:31::5 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-wm2-x05.google.com (mail-wm2-x05.google.com. [2a00:1450:4864:31::5]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-5c384a27e11si26084e87.7.2026.12.04.08.39.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 08:39:32 -0800 (PST) Received-SPF: pass (google.com: domain of me@jeanpablo.jp designates 2a00:1450:4864:31::5 as permitted sender) client-ip=2a00:1450:4864:31::5; Received: by mail-wm2-x05.google.com with SMTP id 5b1f17b1804b1-4b886ebe069so3281745e9.1 for ; Fri, 04 Dec 2026 08:39:32 -0800 (PST) X-Gm-Gg: AZFdTZeRdDJsFeHeaCX0h/kEVBUuQL3BRkWL+kJK5gMEuSbAvzNi2yEto2VvFQaYYCq kvOZSZNkgT8WmAypftRjwgVWfb/lmdj078//p9Wg35TdxcfxOIt7vBNca/rlD3RTVyZH5PYygkz OjIHgKdgFpQ5QjJr8pWnmJRFB8k14uXC06nrL4WaT+Vr337OMoEVoM5kBgzJ0W+PnkUduKNVZYc 7/FOzngVDVlhJdiM6ZgMPqRGosMejmh5cYyck2va/PHP/sAT0wBur2ZD+HwthysRIFsYOE9z3Pl /JNjxoy5fS06F5SnE5LcujoBKT6GoZcrQ3u1I5758u+FchxspVk7u/EZwhdnPouIk3qnms8sQka ffqPs0vSaKzlgDfS9uOxxO1AMEnvoiLBi4vGzDxR8vLtP6BBsHJ1bdfdfpFYGxRjBUbK6XUZdUb wB9MTwjH6A1NoNPa03HkPJGCGuHbYqPFf48OF0GtHzjLQYf4wGEqt35/WloQcPTB5w6J9FkiBbi 0uKR7v6YNfQAyjqljiTckFNAFaycyip1GLSW/paRffD8AI2BgdHPQu9LCFSiDIVtSqXNnkNEREq RsYPjs01xztDE8xxysBu8goud1b/qpfPgqKdtok9obdlGITM6Yd4Dg== X-Received: by 2002:a05:600c:1da2:b0:4bb:8701:a2df with SMTP id 5b1f17b1804b1-4bbeb895a79mr51525295e9.17.1796402371710; Fri, 04 Dec 2026 08:39:31 -0800 (PST) Received: from smtpclient.apple ([2001:818:c7ab:3600:b5da:5fc2:eae6:4946]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d173ab8d87sm5996416f8f.40.2026.12.04.08.39.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 08:39:31 -0800 (PST) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: Jean Pablo Mime-Version: 1.0 (1.0) Date: Fri, 4 Dec 2026 16:39:20 +0000 Subject: [bitcoindev] [BIP Proposal] mr() Output Script Descriptors Message-Id: <3E4E6F84-74C2-49EF-9191-37E10E8B120D@jeanpablo.jp> 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=mnmhcQYJ; spf=pass (google.com: domain of me@jeanpablo.jp designates 2a00:1450:4864:31::5 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 (/) BIP 360 defines P2MR, but there's no descriptor for it, so I wrote a draft = for mr(), which takes a BIP 386 tree and no internal key: https://github.com/jeanpablojp/bips/blob/mr-descriptors/bip-mr.mediawiki It follows the shape of BIP 394, the rawtr() one I wrote, and the vectors r= euse keys from BIPs 386, 390 and 394. The one rule that isn't copied from tr() is that the tree needs at least tw= o leaves, since BIP 360 makes a depth-zero tree anyone-can-spend. One of th= e spend vectors I added to BIP 360 in bips#2232 spends such a tree with no = signature. The reference implementation is on top of my regtest P2MR branch of Core [0= ], with the vector generator and a separate Python check that recomputes al= l 16 scripts without Core. Three of the seven positive construction vectors= in BIP 360 can be written as mr(), and they reproduce their scriptPubKeys.= The rest are the single-leaf case or need raw leaves. I left three things out and would like opinions on them. Leaf versions othe= r than 0xc0 have no syntax in BIP 386, and the rawleaf() idea [1], which fa= metrano already has in btclib, would cover tr() and mr() alike. Hashed EC k= eys, as in ajtowns's hpkh([origin]HASH) sketch [2], matter most for P2MR bu= t apply to tr() too, so I didn't define them for mr() alone. And musig() un= der mr() would need a change to BIP 390, like the one bips#2050 made for ra= wtr(). Feedback welcome. [0] https://github.com/jeanpablojp/bitcoin/tree/p2mr-descriptors [1] https://delvingbitcoin.org/t/tr-rawnode-and-rawleaf-support/901 [2] https://delvingbitcoin.org/t/public-key-recovery-for-ec-leaves-in-p2mr-= bip-360/2603/14 --=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/= 3E4E6F84-74C2-49EF-9191-37E10E8B120D%40jeanpablo.jp.