summaryrefslogtreecommitdiff
path: root/d7/600219bf35e0d8be06b5b434b7653b461a2f54
blob: 6600350fde14c29209ead5babb6c84a46951f615 (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
Return-Path: <jaejoon@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id 0065414BF
	for <bitcoin-dev@lists.linuxfoundation.org>;
	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 <bitcoin-dev@lists.linuxfoundation.org>;
	Thu,  3 Oct 2019 20:14:35 +0000 (UTC)
Received: by mail-vk1-f172.google.com with SMTP id f1so947851vkh.9
	for <bitcoin-dev@lists.linuxfoundation.org>;
	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 <jaejoon@gmail.com>
Date: Thu, 3 Oct 2019 15:14:22 -0500
Message-ID: <CAJR7vkqjWs2PqLhS2P4LGFc5A5Sh3ZFMOnVPVS9S_8C9HHD=GQ@mail.gmail.com>
To: Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
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 <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=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

<div dir=3D"ltr"><div>Hey all,</div><div><br></div><div>I wanted to propose=
 a new key in the global context for BIP174, Partially-Signed Bitcoin Trans=
actions.</div><div><br></div><div>=3D Rationale</div><div><br></div><div>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&#39;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&#39; and 1&#39; as coins for mainnet Bitcoin and testnet Bitcoin =
respectively.</div><div><br></div><div>=3D Proposal</div><div><br></div><di=
v>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><div><br></div><=
div>---------------------------</div><div><br></div><div>Best,</div><div><b=
r></div><div>Jimmy<br></div><div><br></div></div>

--000000000000e55b7f0594073b36--