From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 18 Jul 2025 15:00:39 -0700 Received: from mail-yb1-f189.google.com ([209.85.219.189]) by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1uct8B-0004jt-8n for bitcoindev@gnusha.org; Fri, 18 Jul 2025 15:00:39 -0700 Received: by mail-yb1-f189.google.com with SMTP id 3f1490d57ef6-e8bb5b1a519sf3094575276.3 for ; Fri, 18 Jul 2025 15:00:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1752876033; cv=pass; d=google.com; s=arc-20240605; b=JAtDD+pPp6bLXFbPVZrfEh4fiWFmOORAH/7X9IgY9wrMhEJpY0S5SrNjcswkHH7gR+ rFh8gNXNSCC0W7+d4PEHONWopd3YwY4xQm0Iyd8YztzLCs+lI+HC0Soj1i+RruZmdZkH Iyicy78hQXyolBgBbF4aLLsk/nVUoxT9Pn6FeS49Ju29m80GeRUKocH5X/1FeiUgKYpK dTj3tjjFpUlexe/dWsym7d4Lreaqk3SGusyPItTSzahiEqMjbmUzfInTjC3QH0Syait4 tc0wdAWW7sCoOAYH+z8NpTZf5jnpi7OBljq8MxBWySAG3h3W3slbCOHxgdhJeAmKn+lX M2Jg== 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:to:subject:message-id:date:from :mime-version:sender:dkim-signature:dkim-signature; bh=mRjApYOSAqQRnVaZnkGufPRLPM0zX2uhiu5unlIFyIo=; fh=jhAtQDMydEX9iLyuGfXriHBNz/IBRvKRUBKWwn3zLTA=; b=JVvZ2mfNW7HlrcVAj6+Y5Llqg8PNiyeV4abbfjDA1XYzgiejDHujEzAbsMm+3582yL ALMWKA7Q5dDsC0rJh/pzboH5msLSh0bOsbUuPzLdhmdPHdYnwEOEbKsT6yulCjdUoCHA 4+CmYesFvmwgk+c1WGwT+gzpiMPzNGLptcTw2iEYvs9pA0K5Im908RwFP0+x2PoMTo/j W4bm/AEPbcfvRfLDfx+hiwi2EOQQ782JgXIBCmYU1Rt42GAvQUN/W27vJ7CXib1O0jOQ bzj5Emr7Doe6PORrwa3x31LGOrMdTcaws0Ggi9OT0FUOPDmg60HjsSp2TbeRa92jJc8g pZww==; darn=gnusha.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bDfsDopB; spf=pass (google.com: domain of eth3rs@gmail.com designates 2a00:1450:4864:20::52f as permitted sender) smtp.mailfrom=eth3rs@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=1752876033; x=1753480833; 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:subject:message-id:date:from:mime-version :sender:from:to:cc:subject:date:message-id:reply-to; bh=mRjApYOSAqQRnVaZnkGufPRLPM0zX2uhiu5unlIFyIo=; b=dhaKgfK0vXdXN0WIoM3MQ4Pi/mSsiUg1l/lS9sGL8/Xp0EXcMp36K6Z4+KNI3zRmC6 8dUJuTwjEujf+C7qmv1BsEx0fDpIVeJSvoxZkXNZKnbV3G1aCwJGSvckzMDTQng5JmhB aJ/xmu9uFhd/ohsGOnaqvyRYFSRRPfLFKk9OlW7C43Qpka00qFjMsTNn5QOmdJVHme17 LsrDLrPLXOkOpeQ/cFR9pC/p1bHqmV+ucX1NExGr6agofMGbjYf0rW+y++eBuLADwnKY 8aFqiRbvZPOdAkK0chjsijQ31pzM3G8aqbV8DE0saFhJ9uYotkRyWIqX8Z0DmpEQUSz+ ZnlQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752876033; x=1753480833; 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:subject:message-id:date:from:mime-version:from :to:cc:subject:date:message-id:reply-to; bh=mRjApYOSAqQRnVaZnkGufPRLPM0zX2uhiu5unlIFyIo=; b=kY/j6C2wdpd6+Nu45gzzGN6JcuxINj908iZfOyftGgLtB8R1gok/C4o01/f451KeR+ Oop0IzhYtuwPY8YANepwi0GC8wC4JllXCZ/JLx6RzO9KGbFkOrZ3qe1wSJRoZjd9CHUs ufG+Rxoc4FoKshE20SqTiHSWefi8Q3n/xDaSvg2Pit6/wrx7T9/ROr/NAAMCy4mhkNKK 1P4FzgT9WzDFkZTzeTKnJWdNSAw/9sI/mrhBrqw/cANlnU+c4JpmUlVGsZ8k5b8ynEtM 1u2EMgejaF8P6eTRvmKokWq+stci2Tutl83+YIlRGnJv1f//4M4UKhyijaXlqzDrqWUe hvlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752876033; x=1753480833; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:to:subject:message-id:date:from:mime-version :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=mRjApYOSAqQRnVaZnkGufPRLPM0zX2uhiu5unlIFyIo=; b=ZznCObkKt6wz+ReXICylH/RMybGuKYhWD0vqSzLHY13r9gMz+Ic8+s1beQhoTvRmHC WZNqFqgRcaqYRdM5o041mY3HmsqQPbUxB0XklsIAHWyHin2m1NqHTxt5YUS/BYtR7xVf a+4BcE1Y+R2VGWWxNDAPx2KM1VlbLAVTeDfnL57TR2UrS8xQ8xnrlhm2wVA9HKJhGs5q g1ozTtwV1dxMiWyaeiAe/BAEx5rFguxv1jl0qiVTtBVB9dimMFoS/Z2pO6SJlo7oOOZY V/naW4kyvGWkRWm0dJark+aXYhR6mtmT6xcIqyqmLDipC18+G5IqResTmHmUdlrP/5O9 XB5A== Sender: bitcoindev@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCW66jaIr5mjvOG2Ijh1bW9j65EaY6zLRu4wWqxJv2kYFAbqvptntFKFWNh8OMR67ip48aHv6QJvJ4Tw@gnusha.org X-Gm-Message-State: AOJu0YxThwZm+ateaaw3TU5ai6ITqUByekCaNs9lNtZJjX4iE0tdQc6N Z8BMdylIRIlp94LqiC91Bi/wMbBh35JcUKMRlTby49Q9WpgKxYa6xGxS X-Google-Smtp-Source: AGHT+IHvzrP00I4nxRi37Rf88A/auoZt10dpQMebMU8DdR4LfugdMyblkKws3iP7rPXkr2dvwleFmA== X-Received: by 2002:a05:6902:2b0c:b0:e8b:bb96:93cf with SMTP id 3f1490d57ef6-e8bc2524c91mr16674446276.41.1752876032446; Fri, 18 Jul 2025 15:00:32 -0700 (PDT) X-BeenThere: bitcoindev@googlegroups.com; h=AZMbMZe41KyVt//uVzY2/4rX7WfsygoUO/q5roYUQqjqMETu5g== Received: by 2002:a05:6902:2886:b0:e8b:bbe0:774a with SMTP id 3f1490d57ef6-e8bd438bc74ls3313970276.0.-pod-prod-08-us; Fri, 18 Jul 2025 15:00:27 -0700 (PDT) X-Received: by 2002:a05:690c:3747:b0:717:af29:865f with SMTP id 00721157ae682-7183747155cmr197373567b3.28.1752876027530; Fri, 18 Jul 2025 15:00:27 -0700 (PDT) Received: by 2002:a05:600c:4192:b0:456:11e5:963 with SMTP id 5b1f17b1804b1-4563a9a6eb6ms5e9; Fri, 18 Jul 2025 14:59:25 -0700 (PDT) X-Received: by 2002:a05:6000:2008:b0:39f:175b:a68d with SMTP id ffacd0b85a97d-3b60dd4aafemr11771475f8f.11.1752875963598; Fri, 18 Jul 2025 14:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1752875963; cv=none; d=google.com; s=arc-20240605; b=XCtndiY2g8IprRKZ0WOY5da2EAblAn3bELck1P6AVdqIgZJvoL0MCF/8hEUDTmo9jg i1O+LrwpUbVEVeUHjSRIuG24mhoUUyagFg+3LX6gQ0VwgxbrcFzrwdLdTPKZQsKZP7ih AvdrSeC3wCACMqZmQpbExBVCuAB5IIHALbiR4c2KUlMZ0VjQQsPDK2dIHuZ3Tzq6GNwM fuWcDMcYL2Y19yHJrfyevVm1oZwgEJYi1pCcUaX2yLCh5Gc4jM9SqR3R7tF8dYm15O5h 1C8hBhQuZq4TFHtT37HTfosBjjD83+XaiS9K+ksbaoM/wetBbJ/h8cDabqZ8R4RvhAk2 F//w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=5pbQV4Z/QZbZ53/ehw6inl2deQ4BOC+m6Mz8P66Hdw0=; fh=DMP0F9ULS1guKiqimntQRCN8ZraraesEgQuVcn7F0Z0=; b=PT4Z5UBRO6F+5IO1yZeXPyYSCBrZyWoVFVfyxXL2kW8hMPA5FpzX+IaeIqhP1a1DpF qR4B2g71CXY0xdlkuJPetz3TGzxqTdxQQFHOmwOjNizvmC+VtnCo5N+zolFGeUeXUb/0 4uGwHXmIJCayJiCkTabqtc47mNTwrEllIaAqdcyfb+dT4ObjuPOfYFdiSLobRi9s8Bmk 3h7lslBD8gKE9bCvNFNLx8/z4g6tWmXF4Iku9vqZ4QmGQjKXDk2W9q7FyoftfgUtR0Ef TGww1m7m70VDPEYgvwTPpIiRR+N0r/FgS/yErtxwkB+D8RGStdBhpe7b6e/2W/wu3Mxe 3INw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bDfsDopB; spf=pass (google.com: domain of eth3rs@gmail.com designates 2a00:1450:4864:20::52f as permitted sender) smtp.mailfrom=eth3rs@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com. [2a00:1450:4864:20::52f]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-4562e570043si2456785e9.0.2025.07.18.14.59.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Jul 2025 14:59:23 -0700 (PDT) Received-SPF: pass (google.com: domain of eth3rs@gmail.com designates 2a00:1450:4864:20::52f as permitted sender) client-ip=2a00:1450:4864:20::52f; Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-60780d74c85so4232565a12.2 for ; Fri, 18 Jul 2025 14:59:23 -0700 (PDT) X-Gm-Gg: ASbGncsnzwVNY2L0OMGSuKnGweQriFx8QKllrfQDxc68DSbFQ4Xx5D45dHzP5fbMull 7DRZ/W92PaVnyw0FNMOr6Do4fgT+pkkoDJvVpSN9SjxqGsdNwcisH4R3+bzrEMcIXVK+JmgAyAe 06lYqpi22o3UYNjB8/FA25zUcTLKvYOm7RiM66E2ZiOCPnb7eQlfw8QKKHXZCiaX0NVtP4hsHjP tn+UtjS6CtWmN+au7pAzYbUp718pdr58XAxI3fjXQ== X-Received: by 2002:a05:6402:845:b0:604:f62b:4118 with SMTP id 4fb4d7f45d1cf-61281e9d154mr10781686a12.5.1752875962600; Fri, 18 Jul 2025 14:59:22 -0700 (PDT) MIME-Version: 1.0 From: Ethan Heilman Date: Fri, 18 Jul 2025 17:58:46 -0400 X-Gm-Features: Ac12FXw3ahDfh6WdKTX9aZH7vc2jBFJs8HFhywXXCPa_SdBkdN5jpGWrpB8vpWo Message-ID: Subject: [bitcoindev] Human meaningful witness versioning To: Bitcoin Development Mailing List Content-Type: multipart/alternative; boundary="0000000000001613c2063a3b3d83" X-Original-Sender: eth3rs@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bDfsDopB; spf=pass (google.com: domain of eth3rs@gmail.com designates 2a00:1450:4864:20::52f as permitted sender) smtp.mailfrom=eth3rs@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 (/) --0000000000001613c2063a3b3d83 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I want to propose a new criteria for allocating Witness versions based on human meaningfulness and see if there is support for this approach or if the community is highly allergic to this idea. Bech32 (BIP-0173 ) was designed such that the Witness version is the first character in an address after the =E2=80=9Cbc1=E2=80=9D address prefix Witness Version 0: bc1q=E2=80=A6 Witness Version 1: bc1p=E2=80=A6 Witness version 2: bc1z=E2=80=A6 Witness version 3: bc1r=E2=80=A6 Witness version 4: bc1y=E2=80=A6 Witness version 5: bc19=E2=80=A6 Witness version 6: bc1x=E2=80=A6 Witness version 7: bc18=E2=80=A6 Witness version 8: bc1g=E2=80=A6 =E2=80=A6 So far we have been allocating Witness Versions in incrementing numeric order (0,1,...). I want to suggest we allocate Witness Versions mnemonic to make it easier to look at an address and determine the output type. This originally came up over the question of if BIP-360 should use Witness Version 3 to get bc1r=E2=80=A6 for P2QRH (r for resistant) or the next nume= rically available 2, but I want to see how the community feels about it as a general pattern for future softforks (z for compressed/zipped output, y for yield outputs, etc=E2=80=A6). Making it easier for users to understand the output type associated is likely to grow in importance over time as we retire output types, add policy restricting the relay of certain output types or output types become insecure due to cryptanalytic breaks. While wallet software should flag dangerous output types, some wallets may not invest in such functionality or the user may be using a paper wallet. This is the same argument as prefixing addresses with =E2=80=9Cbc=E2=80=9D for mainnet and =E2=80=9Ctc= =E2=80=9D for testnet. Note: the Witness version is sometimes called the SegWit version. Thanks, Ethan --=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/= CAEM%3Dy%2BWkLOVJ787jjr5zZgKsAHxHkgdZjANqGycEh4K7ZSddSA%40mail.gmail.com. --0000000000001613c2063a3b3d83 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I want to propose a new criteria for allocating Witness version= s based on human meaningfulness and see if there is support for this approa= ch or if the community is highly allergic to this idea.

<= /p>

Be= ch32 (BIP-0173) w= as designed such that the Witness version is the first character in an addr= ess after the =E2=80=9Cbc1=E2=80=9D address prefix

Witness V= ersion 0: bc1q=E2=80=A6
Witness Version 1: bc1p=E2=80=A6

<= p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><= span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);= background-color:transparent;font-variant-numeric:normal;font-variant-east-= asian:normal;font-variant-alternates:normal;vertical-align:baseline">Witnes= s version 2: bc1z=E2=80=A6

Witness version 3: bc1r=E2=80=A6

=

= Witne= ss version 4: bc1y=E2=80=A6
Witness version 5: bc19=E2=80=A6<= /p>

Wi= tness version 6: bc1x=E2=80=A6

Witness version 7: bc18=E2=80=A6=

W= itness version 8: bc1g=E2=80=A6

=E2=80=A6


So far we have been= allocating Witness Versions in incrementing numeric order (0,1,...). I wan= t to suggest we allocate Witness Versions mnemonic to make it easier to loo= k at an address and determine the output type.


This originally cam= e up over the question of if BIP-360 should use Witness Version 3 to get bc= 1r=E2=80=A6 for P2QRH (r for resistant) or the next numerically available 2= , but I want to see how the community feels about it as a general pattern f= or future softforks (z for compressed/zipped output, y for yield outputs, e= tc=E2=80=A6).


Making it easier for users to understand the output = type associated is likely to grow in importance over time as we retire outp= ut types, add policy restricting the relay of certain output types or outpu= t types become insecure due to cryptanalytic breaks. While wallet software = should flag dangerous output types, some wallets may not invest in such fun= ctionality or the user may be using a paper wallet. This is the same argume= nt as prefixing addresses with =E2=80=9Cbc=E2=80=9D for mainnet and =E2=80= =9Ctc=E2=80=9D for testnet.


Note: the Witness version is sometimes= called the SegWit version.

Thanks,
Ethan=

--
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/CAEM%3Dy%2BWkLOVJ787jjr5zZgKsAHxHkgdZjANqGycEh4K7ZSddSA%= 40mail.gmail.com.
--0000000000001613c2063a3b3d83--