public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: Jimmy Song <jaejoon@gmail.com>
To: Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Subject: [bitcoin-dev] PSBT global key for network
Date: Thu, 3 Oct 2019 15:14:22 -0500	[thread overview]
Message-ID: <CAJR7vkqjWs2PqLhS2P4LGFc5A5Sh3ZFMOnVPVS9S_8C9HHD=GQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 914 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1170 bytes --]

             reply	other threads:[~2019-10-03 20:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-03 20:14 Jimmy Song [this message]
2019-10-04  5:54 ` [bitcoin-dev] PSBT global key for network 木ノ下じょな

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJR7vkqjWs2PqLhS2P4LGFc5A5Sh3ZFMOnVPVS9S_8C9HHD=GQ@mail.gmail.com' \
    --to=jaejoon@gmail.com \
    --cc=bitcoin-dev@lists.linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox