Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 6C40B5AA for ; Thu, 18 Oct 2018 14:21:15 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 806EF623 for ; Thu, 18 Oct 2018 14:21:14 +0000 (UTC) Received: by mail-lf1-f50.google.com with SMTP id p143-v6so11665362lfp.13 for ; Thu, 18 Oct 2018 07:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=clarkmoody-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=rGtjM/Cnwmno8u2u7EemObzHn/hfUG+iF794xGWbdQY=; b=VpWH6e2BQtvD4LSrsarq4NLiAaoynSX25uQD8XL6NdE3HIVn0J2rgvYjSTPqdMDB7z uxMG4tSglrDw7lsDQw2Pj6azpE4EWVwQTENsFBPm5FNjRS2UF7y8wxulFU+fkC3Tav3h xDIWNDGr4RzoSPO+Sls8NoB9bWsm2XBpz6leTaNqBaW+TJzrIKgi5RTLRqGo+cUTg1/j zkN2PRtED7l1JxgCkc/JiLLu9Irm5S+GF0gYrTu0uywvHicU6R67VAm+c3CtDC/Ni1Bs E+EmuBkXTtAJc4XVJJXaKASbWuavfxiIPjtNfBBcSzqbvMF2bd21g5gvYHyEa3LOGuhP u0sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=rGtjM/Cnwmno8u2u7EemObzHn/hfUG+iF794xGWbdQY=; b=fKhdO5g88MZen3rd+udYZYf0iLb6kTKwAmL5qZWtmFAwhg2DTyty5LX+h86a6/Wi1Y avaEYxD51e5pfqGC+JwpOF36abGDGeW8PnJ7RCoKC6M0XF88cgHeVMk3baR7FozGIDn7 W6ebpt0Pt8vuIMoK1FOyQuTI00t2fyX/jjWk+q2Ccsm8ibUq4fdET9nqqQ1AWMFQPqkd J4xcq0bUK7zYJKBBjFPAqpPyLVz78weM25j1n7DuodjXS84I/CY362HprvnESUAmPRo1 XBNQNQfesS0bR0F7QdFnVFv+qnDKrSW1uq1XDe1d5mLUSjL7lseEhRsaFvJ9hGAEfwca hQ6g== X-Gm-Message-State: ABuFfojEDwVSGYDjg/cu/pNbBBQgrujAxrh2SjeBeOYcAtPns0e5w82P 8QX3oz+yLMdHC6XKeYBxfL2XrQH793Sj5RezTOs= X-Google-Smtp-Source: ACcGV63Cb00L6nq3KESudQM7tDJLAj4xbsgPgeJsUYbMQZRJhXSLQAWYvE6d3QWEBIFahm20Tni+Ca5WxUurihqLFy0= X-Received: by 2002:a19:1cc3:: with SMTP id c186-v6mr337418lfc.16.1539872472631; Thu, 18 Oct 2018 07:21:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Clark Moody Date: Thu, 18 Oct 2018 09:20:45 -0500 Message-ID: To: srintuar@gmail.com, Bitcoin Protocol Discussion Content-Type: multipart/alternative; boundary="000000000000bb0eaf0578817fbe" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org X-Mailman-Approved-At: Thu, 18 Oct 2018 14:32:31 +0000 Subject: Re: [bitcoin-dev] BIP for segwit compatibility URIs X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2018 14:21:15 -0000 --000000000000bb0eaf0578817fbe Content-Type: text/plain; charset="UTF-8" Since we don't know what sort of address changes will happen later on, you could make this future-proof by passing a list of addresses to `addr`. The syntax is bitcoin:
[?addr=
[,
[,
]]] The addresses passed as a comma-separated list to the `addr` parameter are in descending order of preference, with highest first. A consumer of this URI should attempt to understand each address in the list before falling back to the next address and finally to the base address after `bitcoin:`. Example: bitcoin:3xBase58compatibleAddress?addr=fancyFutureEncoding0x01,bech32address1qx01 The spending wallet would attempt to spend to "fancyFutureEncoding0x01" then to "bech32address1qx01" and finally to "3xBase58compatibleAddress". Thanks, -Clark On Sun, Oct 14, 2018 at 3:14 PM Srintuar via bitcoin-dev < bitcoin-dev@lists.linuxfoundation.org> wrote: > > An extremely simple BIP write-up for a backward compatible URI scheme to > help with segwit adoption by online stores and merchants. > > > > ==== > > This BIP is a modification of an earlier [[bip-0021.mediawiki|BIP 0021]] > by Nils Schneider and Matt Corallo > > ==Abstract== > This BIP proposes a URI scheme which allows for backward compatibility > with native segwit (bech32) wallets and legcy wallets (base58) > > ==Motivation== > The purpose of this URI scheme is to enable all users to easily make > payments from any wallet, without allowing backward compatibility to be a > barrier to segwit adoption. This BIP allows a merchant to preferentially > receive payments to a bech32 address, while gracefully allowing older > clients to make base58 encoded payments. > > ==Specification== > > === Query Keys === > > *addr: an alternative bitcoin destination which is preferred over the > "bitcoinaddress" field of the url > > == Appendix == > > === Simpler syntax === > > > bitcoin:
[?amount=][?label=