Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 0065414BF for ; Thu, 3 Oct 2019 20:14:36 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-vk1-f172.google.com (mail-vk1-f172.google.com [209.85.221.172]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 978D6D3 for ; Thu, 3 Oct 2019 20:14:35 +0000 (UTC) Received: by mail-vk1-f172.google.com with SMTP id f1so947851vkh.9 for ; Thu, 03 Oct 2019 13:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=WFe1RbJv7qJ+WGxEtQTuPwvZmpVrJeZkdoTGXN01tro=; b=Stcu45xAVDVCSGKah/fRerUm+hAhe5l7vWz5jWkKLHWxwBPjAaYXIXZChwaF2iYrq4 MUaKIIkHWW0zngPeobcVeKtuo+G+yVWTHE9GFvy3I0dusv6dfqz6dT1bobzWZG2iyk0S eFZ3HefU1D2h5LECPU8kyUEdbtx9SiE031g8fCSikBEUVOswLntS4979L34N40Z8sYPy XBViWpMO7NGAdJQdKK2BJAH2PDXc1G6LfXlnTF78ssg/yVuy96kQbZYjFSsfbErS82D6 REmYsrY+tn8kR/GClc6wLFH5wNLsOlsp0S0VWMwjpkC5dNSbH1aRx1mIPcghEwnouNsG 49qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WFe1RbJv7qJ+WGxEtQTuPwvZmpVrJeZkdoTGXN01tro=; b=mJ1/nmMt7y67B3S6bTmccJgCzptSCB6h+63M6oKTEQ8fzDyRNQfHexFaPqdONz7nQE 1JNtfl+ad3CqlPZQtBdp3MkvZrKALEIwOGgevuq5AcLJaglxbQCg8Au0u6tbp8xgDTHE 0zH0cWDeMffoEXcIS90AuyteJE3PcfPpDaR29eaf6v1KFKkkT/NKU5Eklsqoe46L5yru RIcLCxb+cjF4TYf6l0rWy1htcy5Yac3thP0srZFyzebPk+JOG1Qo6AEM3EZfKV8ArMPO wrpIX+9TdNXRlUL1jbeaC0BlRYQAXJU4uqg6vUnargBTEsNLuCowiE/7WFxEXmyxCAnC Zxcw== X-Gm-Message-State: APjAAAW/U6Jdhk/65BoPUul/jh4lWuxp079co0ke6W2Wzoy+LUpGThmL h7AfQpymWWi/u5prA7TjJtAD7Fv+MPWuv/jzeggO3w== X-Google-Smtp-Source: APXvYqww4FoiFmher6ZB28CzeOy6GPhHVj4IPEn0FmG4oDocf8iwikjGTYdJREMhYDPpJq3UgzmFQFGSWCWvuxQoRL4= X-Received: by 2002:a1f:294a:: with SMTP id p71mr6119827vkp.74.1570133674120; Thu, 03 Oct 2019 13:14:34 -0700 (PDT) MIME-Version: 1.0 From: Jimmy Song Date: Thu, 3 Oct 2019 15:14:22 -0500 Message-ID: To: Bitcoin Protocol Discussion Content-Type: multipart/alternative; boundary="000000000000e55b7f0594073b36" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DOS_RCVD_IP_TWICE_B, 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: Fri, 04 Oct 2019 02:03:45 +0000 Subject: [bitcoin-dev] PSBT global key for network 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, 03 Oct 2019 20:14:36 -0000 --000000000000e55b7f0594073b36 Content-Type: text/plain; charset="UTF-8" Hey all, I wanted to propose a new key in the global context for BIP174, Partially-Signed Bitcoin Transactions. = Rationale Each signer should make sure that the inputs being referenced in the PSBT exist (with the exception of a Proof-of-Reserves input). In order to do this, it's critical to know which network the coins are on (mainnet or testnet). This could potentially be extended to other networks should they want to use something like PSBT, much in the same way that HD keys from BIP0044 reserved 0' and 1' as coins for mainnet Bitcoin and testnet Bitcoin respectively. = Proposal Add the key 0x03 for network in the global key-value store. Value is a variable integer with 0x00 indicating Bitcoin mainnet and 0x01 indicating Bitcoin testnet. Other coins that want to use the PSBT should use the coin network number from SLIP-0044 with the high bit removed. --------------------------- Best, Jimmy --000000000000e55b7f0594073b36 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey all,

I wanted to propose= a new key in the global context for BIP174, Partially-Signed Bitcoin Trans= actions.

=3D Rationale

Ea= ch signer should make sure that the inputs being referenced in the PSBT exi= st (with the exception of a Proof-of-Reserves input). In order to do this, = it's critical to know which network the coins are on (mainnet or testne= t). This could potentially be extended to other networks should they want t= o use something like PSBT, much in the same way that HD keys from BIP0044 r= eserved 0' and 1' as coins for mainnet Bitcoin and testnet Bitcoin = respectively.

=3D Proposal

Add the key 0x03 for network in the global key-value store. Value is a va= riable integer with 0x00 indicating Bitcoin mainnet and 0x01 indicating Bit= coin testnet. Other coins that want to use the PSBT should use the coin net= work number from SLIP-0044 with the high bit removed.

<= div>---------------------------

Best,
Jimmy

--000000000000e55b7f0594073b36--