summaryrefslogtreecommitdiff
path: root/bf/2be36cc056f66fddd8e59f0794a9680716982f
blob: 79e355b7ff31254aa22d4992db6df2360ecfb364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
Delivery-date: Thu, 30 May 2024 15:00:09 -0700
Received: from mail-oo1-f59.google.com ([209.85.161.59])
	by mail.fairlystable.org with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.94.2)
	(envelope-from <bitcoindev+bncBAABBYPN4OZAMGQEVCV4ULQ@googlegroups.com>)
	id 1sCnof-0000p1-E7
	for bitcoindev@gnusha.org; Thu, 30 May 2024 15:00:09 -0700
Received: by mail-oo1-f59.google.com with SMTP id 006d021491bc7-5b9cc90b70asf1282230eaf.0
        for <bitcoindev@gnusha.org>; Thu, 30 May 2024 15:00:08 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1717106403; cv=pass;
        d=google.com; s=arc-20160816;
        b=zysCVJ8rkeNFGEDyRLa2Iaft0PIBp1kg73xpWIXD8ig76U7TlXlaxVOi0XGNKtyZxC
         DYbNitOsCH+1/r1OJB9Bi9Q5+MkKc9H1N9x7sc6d3RHsasHsN5BIlXpKfJ0nLaVR+Y5G
         OJE4MIV6EHJbzVC/RwlPBAr4VtKwagmxEA7j79j++9TqthaHZQoFkeKigDxcHxU7ATwK
         rbM51EDBIUJxcHvVUHD0q74Sbq8dcmqv/9aUkTV9IdNTWYeQl+GOO8aC6UJTVijmnh6u
         kEjzq9j1Sbui5j1mkPftkUtD6uW1wVp8mwBlbBSVL6tlqCRrolwlUrqZUgUHByRd1P6Y
         ew0A==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:subject:from:to:content-language
         :mime-version:date:message-id:sender:dkim-signature;
        bh=FgLIS/R1dQyLQXhco/GV673qKrdDfl1tbDYSwUm4slQ=;
        fh=Gehg/gg2vdoG/V/JE2Vbr8L3sMfrc0Xc1yvkFUsT4rU=;
        b=Po4IqprdhSPyCajV1CCkzjBv1JnVDxwlnWMvB2F6AGmdoEReuIr1iDNU3OeypcMjns
         KjVhDdAa/JiMtULlVN8GG0sWra+EJijtQ1/Cde85COdHrFsI+id5a/pyZJp6OY4xip6s
         +pbQ30VpYVhkhlQ0tF0hIzzPr5u30x61oLoPX5Y/Vg9naFcb4T+Xm9rAesfwdmIjxapA
         X26foTdLURgr5vYuex07JotUPNhYQa9XJ93INNtWhDD+EG1Q6b3pw68dcFgndiCZxjfq
         /jSXw7ORKgqigN3r8khgDTyThj16UGCDFQLfyL9ZvxIKigBHg3aAiuVP65BaDrhR0A4G
         9B9A==;
        darn=gnusha.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
       dkim=pass header.i=@mattcorallo.com header.s=1717104062 header.b=P1XN5QAP;
       dkim=pass header.i=@clients.mail.as397444.net header.s=1717104064 header.b=el8NKxuX;
       spf=pass (google.com: domain of lf-lists@mattcorallo.com designates 2620:6e:a000:1::99 as permitted sender) smtp.mailfrom=lf-lists@mattcorallo.com;
       dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=mattcorallo.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20230601; t=1717106403; x=1717711203; 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:subject:from:to:content-language:mime-version
         :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to;
        bh=FgLIS/R1dQyLQXhco/GV673qKrdDfl1tbDYSwUm4slQ=;
        b=BBE2wKFPuKUGmPMgJa/4TlRKDYGjJBIfarDQejH+4S5k2K+oj/wPpsyiaLOU5hUMYr
         vZ7mA0xvNUuqR/gT/EH+GTYIqmKjcTDdHaWzWIx1TSvAzUeHAHenUUUDjb2qWoaANQPw
         rUKVq1M3yURqwa18/nTSS2cnxxxsOTfHVywN/mh2N4YO0Qz6/mE4jnTIf3QiiKTvnrBV
         zXTMeniy2R9VhyxL38GHb5BHC79Vk2rdYqJb/0gyjaV9L2eHW6VWKkfw9MRrCGFnoJ5B
         DLQhBeQ4sJlM7mndiUmxuxCPQeDUfhKqLK4wEVs/46xS8OxzCVFEpiv9JyF/j4O5VhS8
         I95Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1717106403; x=1717711203;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:subject:from:to:content-language:mime-version
         :date:message-id:x-beenthere:x-gm-message-state:sender:from:to:cc
         :subject:date:message-id:reply-to;
        bh=FgLIS/R1dQyLQXhco/GV673qKrdDfl1tbDYSwUm4slQ=;
        b=m9ABHr9k5KrsACA/4yiB5FE/KPOiUEWl/9/MXvlZso8Fu7/7upXwhe2ym6VL/5Am+/
         3pBrnzH8UgglIXVZDn9GkLi0k+kpxr6v8nVld3czTd8Qmxx9nfnAgN5/8hybXQouAMkO
         U7VUkGzBQ6mW38KZh/Lyo757Vdv0yCNXn+44UWzQc7Qz+EAKVJPD0aPSlZqpqx/zfXXq
         ZjG3bzwVRWpCT0FptldDLI7FJ8mSCYAfSD5+mskQY98go3PZYH1p58TzF1i4KxHOpwSI
         Hnnzgv8jgRJFp8X62yj+uHdzJPMUyi7GrUU/BzoBqz89jCF6+LlUc95880wMlEl1gO0F
         JMQA==
Sender: bitcoindev@googlegroups.com
X-Forwarded-Encrypted: i=2; AJvYcCWqP9OWJ8Njd+zutYwIe/2q7dxpvO6Wp6qOXI1goW0eDcfCy5sRj5K1prHwCApLprDXrHjMBNGA51u7Hb2FaNCGSPIfemU=
X-Gm-Message-State: AOJu0YwY5RTu4nEa1XWHAW8uFfxvIunNgKW+E+XHW+TvjOlhuLwGJxyQ
	8uwEqaxvsJJZtK7er7xyH8x3Z+JsL9MuQJFNi8isWHUJFQcCKbEH
X-Google-Smtp-Source: AGHT+IFs1imszxeZoFZbQ1uAreBte8Ora8BQKA1w9B8SM8KEokt/PGzMBtqdNypcIm/yp+3NyyTeiQ==
X-Received: by 2002:a05:6820:1ac4:b0:5b9:f802:ba3d with SMTP id 006d021491bc7-5ba05ca4957mr164405eaf.4.1717106402834;
        Thu, 30 May 2024 15:00:02 -0700 (PDT)
X-BeenThere: bitcoindev@googlegroups.com
Received: by 2002:a4a:aa46:0:b0:5ae:1f6c:8988 with SMTP id 006d021491bc7-5b9ea86d127ls573202eaf.1.-pod-prod-00-us;
 Thu, 30 May 2024 15:00:01 -0700 (PDT)
X-Received: by 2002:aca:2807:0:b0:3d1:d17d:1f68 with SMTP id 5614622812f47-3d1dd1bbd1emr15780b6e.0.1717106401393;
        Thu, 30 May 2024 15:00:01 -0700 (PDT)
Received: by 2002:aca:b01:0:b0:3d1:e316:3fb2 with SMTP id 5614622812f47-3d1e31640aemsb6e;
        Thu, 30 May 2024 14:54:45 -0700 (PDT)
X-Received: by 2002:a17:902:e5d2:b0:1f4:9308:2ddb with SMTP id d9443c01a7336-1f6370bfbbamr854965ad.59.1717106084665;
        Thu, 30 May 2024 14:54:44 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1717106084; cv=none;
        d=google.com; s=arc-20160816;
        b=nOvjDUAtFkIHIncEe+7JgC5SmxkS8LnpC+vxpiOZgZjS588qEIddXrl9x86lr3sRMa
         VtVPNci4QijOloxf7FwtSE3vC5OjmjqbaCJYcKYh/+2GmivbszN5K9JpKSC5L1u7yxql
         DolUp7/3uUevSgp3YrMou0b7tWhoZauUAU0wmM4mZ3KhYdU2mvIE40U/8R5mzDEBZ+uF
         4Xq1Yo+pmpsfRsafBwPsjak4xeXicCYM/hQdj6ePFBS0+QYslrcgAJogX51INpAIjRfl
         e/MmbBaopWTJT3rV5iD+owNF0KRQFhkUXdGklfHjBrRVU31HMltD1B3z8tGGPNI1V+jO
         Uqzw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:subject:from:to:content-language
         :mime-version:date:message-id:dkim-signature:dkim-signature;
        bh=KMjZpJSm9r68fm54ljZeYQQi9TlWMk9VGkRNgcnZqBA=;
        fh=DMP0F9ULS1guKiqimntQRCN8ZraraesEgQuVcn7F0Z0=;
        b=aT8YmH5MY/TWm0tWlhMv+alKE9JQ5/eHOr/22XvxToEg4vfdpM97/HBo/4T3ECLbyR
         5ggp44Di6YeDFVk7lyA0EeneSLTZ0nYNujjno7x4N8JLrUMrk9pmJKl7Gvw+CmZTvWaB
         a5S/a8xy9OdYxKvP22RDDnmuJ0AWuoPgknsJPqCvBVFfrI9/Tf2LTJtiprIS3qjddN3l
         LzjIxvFH2lkqBZege3ZqFSLYb0gYeZUGxP48FU1v5M8KIRme+9venhb42YdVgZd7ezbL
         sfJ59aGKtfQmDW9o5IZx4FSmg7HCD7E3vChEgCbrl6+gEQsWdwzj6tRvcKnviRt2X8Rf
         +cYg==;
        dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       dkim=pass header.i=@mattcorallo.com header.s=1717104062 header.b=P1XN5QAP;
       dkim=pass header.i=@clients.mail.as397444.net header.s=1717104064 header.b=el8NKxuX;
       spf=pass (google.com: domain of lf-lists@mattcorallo.com designates 2620:6e:a000:1::99 as permitted sender) smtp.mailfrom=lf-lists@mattcorallo.com;
       dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=mattcorallo.com
Received: from mail.as397444.net (mail.as397444.net. [2620:6e:a000:1::99])
        by gmr-mx.google.com with ESMTPS id d9443c01a7336-1f632338b6bsi244945ad.2.2024.05.30.14.54.44
        for <bitcoindev@googlegroups.com>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Thu, 30 May 2024 14:54:44 -0700 (PDT)
Received-SPF: pass (google.com: domain of lf-lists@mattcorallo.com designates 2620:6e:a000:1::99 as permitted sender) client-ip=2620:6e:a000:1::99;
X-DKIM-Note: Keys used to sign are likely public at
X-DKIM-Note: https://as397444.net/dkim/mattcorallo.com and
X-DKIM-Note: https://as397444.net/dkim/clients.mail.as397444.net
X-DKIM-Note: For more info, see https://as397444.net/dkim/
Received: by mail.as397444.net with esmtpsa (TLS1.3) (Exim)
	(envelope-from <lf-lists@mattcorallo.com>)
	id 1sCnjO-009AFC-35 for bitcoindev@googlegroups.com;
	Thu, 30 May 2024 21:54:43 +0000
Message-ID: <93c14d4f-10f3-48af-9756-7e39d61ba3d4@mattcorallo.com>
Date: Thu, 30 May 2024 17:54:26 -0400
MIME-Version: 1.0
Content-Language: en-US
To: Bitcoin Development Mailing List <bitcoindev@googlegroups.com>
From: Matt Corallo <lf-lists@mattcorallo.com>
Subject: [bitcoindev] BIP 21 Updates
Content-Type: text/plain; charset="UTF-8"; format=flowed
X-Original-Sender: lf-lists@mattcorallo.com
X-Original-Authentication-Results: gmr-mx.google.com;       dkim=pass
 header.i=@mattcorallo.com header.s=1717104062 header.b=P1XN5QAP;
       dkim=pass header.i=@clients.mail.as397444.net header.s=1717104064
 header.b=el8NKxuX;       spf=pass (google.com: domain of lf-lists@mattcorallo.com
 designates 2620:6e:a000:1::99 as permitted sender) smtp.mailfrom=lf-lists@mattcorallo.com;
       dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=mattcorallo.com
Precedence: list
Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com
List-ID: <bitcoindev.googlegroups.com>
X-Google-Group-Id: 786775582512
List-Post: <https://groups.google.com/group/bitcoindev/post>, <mailto:bitcoindev@googlegroups.com>
List-Help: <https://groups.google.com/support/>, <mailto:bitcoindev+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/bitcoindev
List-Subscribe: <https://groups.google.com/group/bitcoindev/subscribe>, <mailto:bitcoindev+subscribe@googlegroups.com>
List-Unsubscribe: <mailto:googlegroups-manage+786775582512+unsubscribe@googlegroups.com>,
 <https://groups.google.com/group/bitcoindev/subscribe>
X-Spam-Score: -0.8 (/)

It was recently pointed out at [1] that BIP 21 mandates only base58 adresses, and doesn't allow for 
segwit or taproot addresses in the body of the URI. This is obviously somewhat nonsensical as nearly 
every wallet supporting BIP 21 today handles Segwit (and many even Taproot) just fine in that 
position today.

Further, nearly every BIP 21-handling lightning wallet today also supports decoding lightning 
payment instructions in the query parameters. With Silent Payments and BOLT 12 starting to get 
adoption and BIP 21 being the obvious place to put extra payment instructions with an (optional) 
on-chain fallback, there needs to be a standard way to decide which query parameter describes which 
payment instruction, and BIP 21 should document this in-practice usage.

Further, as future payment schemes (and existing ones like Silent Payments) may wish to not have the 
standard on-chain fallback, I'm also proposing the body of the URI be made optional.

None of these changes impact any existing wallets, as wallets already support bech32 and bech32m 
addresses, new query parameters are ignored by any existing spec-compliant wallet, and a BIP 21 URI 
with no body would only exist to provide a URI *without* a fallback for existing wallets, which 
would correctly reject them as invalid.

Thus, I'm proposing a change to (the already "Final") BIP 21. The relatively minimal change set is 
available at https://github.com/bitcoin/bips/pull/1555 but I'm open to discussion on it here as well.

[1] https://github.com/bitcoin/bips/pull/1394

-- 
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 on the web visit https://groups.google.com/d/msgid/bitcoindev/93c14d4f-10f3-48af-9756-7e39d61ba3d4%40mattcorallo.com.