From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 01 Dec 2026 00:18:49 -0800 Received: from mail-oa1-f62.google.com ([209.85.160.62]) by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1xYJ4a-000Vhs-Cz for bitcoindev@gnusha.org; Tue, 01 Dec 2026 00:18:49 -0800 Received: by mail-oa1-f62.google.com with SMTP id 586e51a60fabf-4566537e644sf11506150fac.0 for ; Tue, 01 Dec 2026 00:18:48 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1796113122; cv=pass; d=google.com; s=arc-20260327; b=X+AeDLbTJdqNpIwcouoAggE1mYa62ypLb1cU4JUujkgvnfLCXGu/lvC6oA0r8OCskn 2e9YtgH5Ta5DlQy0bzMo7yEdwuKEncr1+Qytfv2MAXMRh+yo2rFA6tmbGzptiYAXCold bWwU61ZOdRLG3nPz/4IBqVnXLagyuikiADwzcHQfdCPfQOJj2JbRzibLsVluhXjoWtZQ ZvMCz3zPGP9qWJROTuesg6wWCyBKxdZ/uLwgTN8wYZGca3yLbEixg58s8ayeBJcZ7q36 v0H+tClXFnHhzsA79NUbB7TMToBdbf9VicZlGqP2VijELIw1wn/H4LEjs3ICGQOP544z qYOw== ARC-Message-Signature: i=3; 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:subject:message-id:date:from :mime-version:sender:dkim-signature:dkim-signature; bh=QgkveTRuo+r74rT1OYpV9ZUIfLKIpVHpPyTRkwIyvI0=; fh=en89ZcMOi3yVjBIxfb+yLZ43zPemyj+uCyjNCUqU4vk=; b=ldSXpN1idpO8GtXsluI19RUy5H8gHO8hvb7QBBTnWNtpkqKGde2gPfJoQQt7oWIG6f 0i4D1Uhq8k6CMTOuhpWnOT0Wc0RrgUPxXMJsIPUEJtO8qggNcYfzsFq4NAI+Osuq5T1f QTde/OqYJZS5tLQUAztr9dW7FiGtz8TMyPTIzC0gqpsGnCJ/BZ7e/6lPv8vJddUH0rt5 1DYwJ+7knfa51yK+5JkUgJ2+EsPp95SRlsaLR93P55ucQgXLFTXFNw9YV3eREIqPLNy5 Dm3pYe9Z+4//oDoDpnHjUayVja6UDHd6V0TlBf8eAhCZ2skLEgVbkT9IIa9z4HoTOsGK GGEw==; darn=gnusha.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20260707 header.b=x4Ft7xvk; arc=pass (i=1); spf=pass (google.com: domain of craigraw@gmail.com designates 2607:f8b0:4864:20::835 as permitted sender) smtp.mailfrom=craigraw@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=20260707; t=1796113122; x=1796717922; 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:content-type:to:subject:message-id:date:from :mime-version:sender:from:to:cc:subject:date:message-id:reply-to :content-type; bh=QgkveTRuo+r74rT1OYpV9ZUIfLKIpVHpPyTRkwIyvI0=; b=Vp1YFMvC5++7XP98UhuJPRaT69m+i04s9r1dIMw1zq6iP4WICFoxa8ff3BYcqI2znA uem/WFFqYmR/Wya3RHFBXEYS91Esszuk7dleMHnELrJiFMeeqncCgPlmn/2NPXokSYRN UQP6bu6RedY+nza0JkZPGxSlwN4r7ibPWJuEfYV69X+SUfStAybeLndtvgLHjj1cJGtl nZW2rzWLn59Q0+3GBuRqlD+R+5EZL6t6HsU6iNblwWDIhqdxfbMUDIAU6ap+uVJCfbsL LpkUlRGEGN7jhFXNjtF4k4LW/sj7vGopOIICWhcsbdTGrKvlXkNOHgGqfvnbULiqjeSr oowg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796113122; x=1796717922; 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:content-type:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to :content-type; bh=QgkveTRuo+r74rT1OYpV9ZUIfLKIpVHpPyTRkwIyvI0=; b=zw2UXZTJ+LAasSuSFCISIXIiMkg1WlP7G1qIp0nL/Men7a/aH3jlTYpeib6N9hQ+N0 tnteArEof6lyBRe1XbIMxLBZrpPkaLB7QdDgZV6Lza5iQwA+qdeY/wE0Mc7andfCcCzJ H4/JyEMMFXacO1qAHw1OFAQxlOBB7ELDopSVu4NLWlHvB4pqqj3Zui+ydgoBjq4M/Oc8 O5r7vHKvBVRpCwF19yzm2Zlr9dz0Rl5Ioodzt5TXUDguv0HA8qca2pv7Vyosrtrsqjn+ 5OVR6FSfMF3b/5C/0wxHh3wfsP4D0Z2ocH7EVKGgaN6HHcl+LWOCzgIQq7nj4/pSViuR U8uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796113122; x=1796717922; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:content-type:to:subject:message-id:date:from :mime-version:x-gm-gg:x-beenthere:x-gm-message-state:sender:from:to :cc:subject:date:message-id:reply-to:content-type; bh=QgkveTRuo+r74rT1OYpV9ZUIfLKIpVHpPyTRkwIyvI0=; b=iT4GqkBr1HimBLRwuOyTJDA/aDMkTrYZYBoPKd5gT5LQWEo+NCfY9rVQqf7M3jHiKp rWHumhFC+lF28suoz+rsGc59c43p97fWE0WT9zXk4C78jphb8fe8AURAPsh5z1Q3TJu3 7RG0rljtSOOgCXIPxhQjGmyqksJqKlCE0amXTR/MyZ1EUSIserKJnT0cxNqnVr24vT30 LQHtgpapM4tPH6gzeino92iHlrYkvHF7n8O/9NFDk6XKLbRiD56GcsP/G4jZfVyXmepu 1ChXjL9u+u04AfYrpbMu80RU0s9Ndnm4v7YlcDwQfX5PXLcNmTuHvn63r4Pxta8Q5WbQ VflA== Sender: bitcoindev@googlegroups.com X-Forwarded-Encrypted: i=3; AL+hErGzrUPpLVY3Oiq670JF/eYbk7dnTwJLP1j5D0JFK1waFiWc40LIXdjjZ8YPOXuv6aXVzBTKWD20FSlN@gnusha.org X-Gm-Message-State: APuU4Z8BcY9YBZMcE1FbsMFjs/No1H+haXOXk69A7WLeORe2DTaZbAON 0M0JoGDTp47XNyNur8uZw2IFZGLhK302ymx52T9NEpVvSUAwx0Ws/IqP X-Received: by 2002:a05:6871:c923:b0:4af:155e:78e9 with SMTP id 586e51a60fabf-4bc7bea21f0mr35057652fac.5.1796113122292; Tue, 01 Dec 2026 00:18:42 -0800 (PST) X-BeenThere: bitcoindev@googlegroups.com; h="ATskLdcSZowis99Cy88esc48rfNWdi/iQ6dkCPANCq+MdvM4fg==" Received: by 2002:a05:687c:4396:10b0:448:7b8c:24ee with SMTP id 586e51a60fabf-4bc703c1043ls7264926fac.0.-pod-prod-05-us; Tue, 01 Dec 2026 00:18:37 -0800 (PST) X-Received: by 2002:a05:6808:151f:b0:4b2:8d7b:390b with SMTP id 5614622812f47-57a0a936138mr34110563b6e.19.1796113117659; Tue, 01 Dec 2026 00:18:37 -0800 (PST) Received: by 2002:a05:620a:4725:b0:93c:7a40:550c with SMTP id af79cd13be357-949aab769d5ms85a; Tue, 1 Dec 2026 00:03:33 -0800 (PST) X-Received: by 2002:a05:6214:528a:b0:91c:7a0e:3385 with SMTP id 6a1803df08f44-92134b28611mr700160906d6.49.1796112212396; Tue, 01 Dec 2026 00:03:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1796112212; cv=pass; d=google.com; s=arc-20260327; b=DY2i/mrhinRE0Y8dDCGQ105roIwiXBNrIjh5eeXsffl3uNHjRjcztacF5XMF1NhOJt E/a1JE5c9DL3Sg4Mlhr67N8CNwhITnrBdKd1f/kvvE2l53Y2NQeOHEWEhqacc6OdM+dO IgRddIBaovzHSCI/J619kuXAgzRtYvbZyMwRL9Eum8bIQsNhrjRP+sho+HLAoW2bEvNv jT5cAwolSxxhs4qxDpIkySMpmkDqUuKJ1B1Sr6rDBBC6r9qvnO68l9vDgDuoX8N2wW2d RI8B1bNfTxnFlw4pAYI7BplMQ/OtVi5lhepmWqFaqyA4DCooK6sdzT9OBpfyFZAlCcB6 iiUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=e3cBek6syArS9YxVp3f0X+oKMDnswVhoifsByGZyFbc=; fh=DMP0F9ULS1guKiqimntQRCN8ZraraesEgQuVcn7F0Z0=; b=hVqIFUVwqmJe0IHIGNFrdeitwTUOvApvMmZ3W2zAQrcQGCc7wZBh0P+/Aktll8HHor Nx3oI09AnTa//s4lUYW4oUj8jqRmYNUoQw5Orc3fl7TP+PsoENGy8SCje0YWqhBK8LrA XwYByDqNRTJF1wNzmWVSUIuLqM7WKTE2jQUnkkFApBn3wfrTfjKgJ65LjQJv9aBV/JRv SBO2jtvcKnDXnX1bzI0kWl/r8fuUwioQVTi6YBCHHaMRhz7FvJwNI9ZPmJX3J2TXgVNf dCm1+ULA5cWyRAYkKLnfzSWkRJcYsZmXMuJq0vi8SOicFYJ9elscD0N56hCCVUzo5r0c Rrkw==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20260707 header.b=x4Ft7xvk; arc=pass (i=1); spf=pass (google.com: domain of craigraw@gmail.com designates 2607:f8b0:4864:20::835 as permitted sender) smtp.mailfrom=craigraw@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com. [2607:f8b0:4864:20::835]) by gmr-mx.google.com with ESMTPS id 6a1803df08f44-92134729f84si7139526d6.0.2026.12.01.00.03.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2026 00:03:32 -0800 (PST) Received-SPF: pass (google.com: domain of craigraw@gmail.com designates 2607:f8b0:4864:20::835 as permitted sender) client-ip=2607:f8b0:4864:20::835; Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-5363316fa0cso120559831cf.3 for ; Tue, 01 Dec 2026 00:03:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796112212; cv=none; d=google.com; s=arc-20260327; b=nS+5hDyNPV8YPD1TNSjjqF8PPYJr6VVsJ7DkGof3SDqsr3eB3OqTQ/9dhyGdRm6QWg On9/sZZEX6dt8CESfZgMFNQHLM1Z8pT24pqjnBr0A5iSatumztMX/cn8NnKg29XOEJYE 6GLm5KzkrzPwXHy+XswC49tEFxxJXiX+QqLcD1jOYeX3Km40wYYbpUaKdBNK1njnpdrq ZSkJPrkBII0NW64pjkNNbDChUt405kpbUVYAK3iugB6iqJgOn/eSp2FWO9Q27A0jmjm+ YQ8fYQCY0r089WSb+ruUFa1cZePr55sVEKLhnoAsY8y0seBi3AED8ij9HOCPmsv8Y1cs PweA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=e3cBek6syArS9YxVp3f0X+oKMDnswVhoifsByGZyFbc=; fh=DMP0F9ULS1guKiqimntQRCN8ZraraesEgQuVcn7F0Z0=; b=LKHrGxnuL16rDju1snGtqtC6//ZX6mKe3x6RYAoC4/B4g1pomGBmq9n6uTnSFaKhVX VJS1HF9Jczki52CwWHrr5PyjNcfpXQ2VUKHb1JBd/fFcd2sOv1VAX4ant0t2PqDYrzoz +sRWxkAqyGuYoG6yrs93BRJc3Zhhv4mfCFP6PR3aIRZBOEaoJaz9Kcl28v1UZtw5K8p7 pKCHVnfoPs4CBPvYYBX2HpZs4D3ZtrU9zLvbyHtRQBze+XJOU2KCRec6gb9R6fZKLJtE OPh7Th/JDMhi06FqK05uJGYPP3ds1Uv8J8zUtnbG8FuJv8ug1Wg+IhyieWq0Fewg9Mv/ 0FnQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; arc=none X-Gm-Gg: AZFdTZcXVns8FBZESQdfcheJrh2ro6AHndvh62+XktBUvRTYZjLD85tdpoLTC17X8lp UaCVDI6QFLy6CS8TgQFtjXOSNYSXSP5EdolSQYGhbb6BTs9Vkq7rYxB/EOet0enbu3Ve3JAGeJS 06Udm/dsNKt7Y32gZ9cVaCc0x1xnK2ZKD+xhZQmdY40H8mElKdGTouI+yJloIcCbGkR1ePSiMpY +dAoGnCSi+uOsm0BTDq0NTNlDZqWp2WTdP7YMdpn73v59qYAfSRQ5vv29xHqiLVYkYuczTdwRxT kVrRF3Jqe9cq1C/E/yuuitg9A2DQh4L7UfePJTb3kHG2npPJe4NhJYYuCDxs6EMWN/KP6q8beVe pPlwXuh2do48XTMhA1CWfOLvJc8GKCVDb/zEf95oJZlwP6NMLPYs1wsyZmGklMGA30hWrOZm8Xv pEKeVV1ZqQ5QwYg3FiuzrS9orG8UFKsZd4XeSfS2jVrIsymAbvNU9DcD6iX6lFH5ziSOcDlPrkt GCRkp335BrmmhlNtwjsZgzYoCozqji84BO6LklavYkGegHE X-Received: by 2002:a05:622b:209:20b0:55d:3721:872c with SMTP id d75a77b69052e-55e036c427dmr20865111cf.72.1796112211852; Tue, 01 Dec 2026 00:03:31 -0800 (PST) MIME-Version: 1.0 From: Craig Raw Date: Tue, 1 Dec 2026 10:03:21 +0200 X-Gm-Features: Aa3M54p0-PzKSOPEAEPHhwyExpXtJSyUq7E3C6iVL_Sh6ZpGNJK5Jg4qvTCaO0s Message-ID: Subject: [bitcoindev] [BIP Proposal] Canonical Form for Output Script Descriptors To: Bitcoin Development Mailing List Content-Type: multipart/alternative; boundary="0000000000005d44d206618df66f" X-Original-Sender: craigraw@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20260707 header.b=x4Ft7xvk; arc=pass (i=1); spf=pass (google.com: domain of craigraw@gmail.com designates 2607:f8b0:4864:20::835 as permitted sender) smtp.mailfrom=craigraw@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 (/) --0000000000005d44d206618df66f Content-Type: text/plain; charset="UTF-8" Hi all, For any wallet that is not single-signature, the output script descriptor is an essential part of the backup. Users are routinely asked to compare one descriptor with another: to check that a restored wallet matches the original, or that each participant in a multisig holds the same wallet. Descriptors do not currently support this well. The same wallet has many valid textual representations, differing in such things as the hardened derivation marker, the case of hexadecimal and the order of the keys in a sortedmulti(). Each representation has its own BIP380 checksum, so the checksums of two backups of the same wallet may not match, and confirming by eye that the strings describe the same wallet is difficult. Implementations have responded to this individually, and they do not agree. Some preserve the order in which the keys were supplied, while others sort them, variously by the public keys derived at some index or by the text of the key expressions, with or without key origin information. Each choice is reasonable, but because none is specified, they do not interoperate. This BIP proposal defines a canonical form for output descriptors: a deterministic textual encoding such that descriptors that differ only in how they are written produce the same string, and therefore the same checksum. Canonicalization is a purely textual operation that derives no keys. In summary: - Hardened derivation is written with h, hexadecimal and Bech32 in lowercase, and miniscript in its sugared form - Compressed raw public keys in taproot positions are written as x-only keys, except for the participants of musig() - The keys of sortedmulti(), sortedmulti_a() and musig(), the two children of each tr() script tree branch, and annotation pairs are sorted in ASCII order of their canonical text - Everything else, including the keys of multi(), retains its written order Because key origin information is written first where present, sortedmulti() keys that include it are ordered by master fingerprint, which a person can check by eye. A descriptor has no canonical form if it performs hardened derivation after an xpub (unless the final step is a hardened wildcard), or if it contains expressions whose canonical form has not been specified. Example: these two descriptors (keys abbreviated) wsh(sortedmulti(2,[b7868815/48'/0'/0'/2']xpub6FA5r.../<0;1>/*,[1cf0bf7e/48'/0'/0'/2']xpub6FL8F.../<0;1>/*,[4fc1dd4a/48'/0'/0'/2']xpub6EebM.../<0;1>/*)) wsh(sortedmulti(2,[4fc1dd4a/48h/0h/0h/2h]xpub6EebM.../<0;1>/*,[b7868815/48h/0h/0h/2h]xpub6FA5r.../<0;1>/*,[1cf0bf7e/48h/0h/0h/2h]xpub6FL8F.../<0;1>/*)) have the same canonical form: wsh(sortedmulti(2,[1cf0bf7e/48h/0h/0h/2h]xpub6FL8F.../<0;1>/*,[4fc1dd4a/48h/0h/0h/2h]xpub6EebM.../<0;1>/*,[b7868815/48h/0h/0h/2h]xpub6FA5r.../<0;1>/*))#jecfc8v2 The same wallet can also be described by genuinely different descriptors, for example by deriving the xpub to a different depth. Canonicalization does not unify these, so the document separately recommends which descriptor to export: in general, the xpub at the last hardened derivation step, with receiving and change combined in one BIP389 multipath descriptor. It also describes how future descriptor BIPs can specify their own canonical form. Note that the canonical form does not change how descriptors are parsed or the scripts they produce, and implementations must continue to accept descriptors in any valid form. Implementations that use descriptor text as a key for stored state, such as BIP388 wallet policy registrations, are advised to leave that state unchanged and apply the canonical form only on export, display and comparison. The canonical form is not intended as a wallet identifier, although one could be defined on top of it. I see strong demand for interwallet communication, which may require some form of wallet identifier, and this BIP is a stepping stone to that goal. The full text of the BIP, including test vectors, can be found at https://github.com/craigraw/bips/blob/canonical-descriptor/bip-canonical-descriptor.md Feedback is welcome. --Craig -- 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/CAPR5oBOVkQAy5aOVM-dCtJvEcw_PSqV_De3z234Yph%2Bn7PFGWQ%40mail.gmail.com. --0000000000005d44d206618df66f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

For any wallet that is not single-signature= , the output script descriptor is an essential part of the backup. Users ar= e routinely asked to compare one descriptor with another: to check that a r= estored wallet matches the original, or that each participant in a multisig= holds the same wallet. Descriptors do not currently support this well. The= same wallet has many valid textual representations, differing in such thin= gs as the hardened derivation marker, the case of hexadecimal and the order= of the keys in a sortedmulti(). Each representation has its own BIP380 che= cksum, so the checksums of two backups of the same wallet may not match, an= d confirming by eye that the strings describe the same wallet is difficult.=

Implementations have responded to this individually, and they do no= t agree. Some preserve the order in which the keys were supplied, while oth= ers sort them, variously by the public keys derived at some index or by the= text of the key expressions, with or without key origin information. Each = choice is reasonable, but because none is specified, they do not interopera= te.

This BIP proposal defines a canonical form for output descriptor= s: a deterministic textual encoding such that descriptors that differ only = in how they are written produce the same string, and therefore the same che= cksum. Canonicalization is a purely textual operation that derives no keys.= In summary:

- Hardened derivation is written with h, hexadecimal an= d Bech32 in lowercase, and miniscript in its sugared form
- Compressed r= aw public keys in taproot positions are written as x-only keys, except for = the participants of musig()
- The keys of sortedmulti(), sortedmulti_a()= and musig(), the two children of each tr() script tree branch, and annotat= ion pairs are sorted in ASCII order of their canonical text
- Everything= else, including the keys of multi(), retains its written order

Beca= use key origin information is written first where present, sortedmulti() ke= ys that include it are ordered by master fingerprint, which a person can ch= eck by eye.=C2=A0A descriptor has no canonical form if it performs hardened= derivation after an xpub (unless the final step is a hardened wildcard), o= r if it contains expressions whose canonical form has not been specified.
Example: these two descriptors (keys abbreviated)

wsh(sortedmu= lti(2,[b7868815/48'/0'/0'/2']xpub6FA5r.../<0;1>/*,[1c= f0bf7e/48'/0'/0'/2']xpub6FL8F.../<0;1>/*,[4fc1dd4a/48= '/0'/0'/2']xpub6EebM.../<0;1>/*))
wsh(sortedmulti(= 2,[4fc1dd4a/48h/0h/0h/2h]xpub6EebM.../<0;1>/*,[b7868815/48h/0h/0h/2h]= xpub6FA5r.../<0;1>/*,[1cf0bf7e/48h/0h/0h/2h]xpub6FL8F.../<0;1>/= *))

have the same canonical form:

wsh(sortedmulti(2,[1cf0bf7e= /48h/0h/0h/2h]xpub6FL8F.../<0;1>/*,[4fc1dd4a/48h/0h/0h/2h]xpub6EebM..= ./<0;1>/*,[b7868815/48h/0h/0h/2h]xpub6FA5r.../<0;1>/*))#jecfc8v= 2

The same wallet can also be described by genuinely different descr= iptors, for example by deriving the xpub to a different depth. Canonicaliza= tion does not unify these, so the document separately recommends which desc= riptor to export: in general, the xpub at the last hardened derivation step= , with receiving and change combined in one BIP389 multipath descriptor. It= also describes how future descriptor BIPs can specify their own canonical = form.

Note that the canonical form does not change how descriptors a= re parsed or the scripts they produce, and implementations must continue to= accept descriptors in any valid form. Implementations that use descriptor = text as a key for stored state, such as BIP388 wallet policy registrations,= are advised to leave that state unchanged and apply the canonical form onl= y on export, display and comparison.

The canonical form is not inten= ded as a wallet identifier, although one could be defined on top of it. I s= ee strong demand for interwallet communication, which may require some form= of wallet identifier, and this BIP is a stepping stone to that goal.
The full text of the BIP, including test vectors, can be found at https://github.com/craigraw/bips/blob/canonical-descriptor= /bip-canonical-descriptor.md

Feedback is welcome.

--Craig=

--
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.com/d/= msgid/bitcoindev/CAPR5oBOVkQAy5aOVM-dCtJvEcw_PSqV_De3z234Yph%2Bn7PFGWQ%40ma= il.gmail.com.
--0000000000005d44d206618df66f--