summaryrefslogtreecommitdiff
path: root/78/42eca30db7a9cf67b8aff53052359d7d596ea8
blob: c3543d43b43330ea10db77b9edfb9f43cf147055 (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
Return-Path: <jrn@jrn.me.uk>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id C4AEE86
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sun,  9 Aug 2015 14:12:25 +0000 (UTC)
X-Greylist: from auto-whitelisted by SQLgrey-1.7.6
Received: from homiemail-a6.g.dreamhost.com (homie.mail.dreamhost.com
	[208.97.132.208])
	by smtp1.linuxfoundation.org (Postfix) with ESMTP id 51029183
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sun,  9 Aug 2015 14:12:25 +0000 (UTC)
Received: from homiemail-a6.g.dreamhost.com (localhost [127.0.0.1])
	by homiemail-a6.g.dreamhost.com (Postfix) with ESMTP id D3DDB598077
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sun,  9 Aug 2015 07:12:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jrn.me.uk; h=to:from
	:subject:message-id:date:mime-version:content-type:
	content-transfer-encoding; s=jrn.me.uk; bh=jIJAUZo8BJiAZrUFDEJg5
	4J+SfY=; b=L1H/utH6fP5TTagqzYCdn8udwSV42UmbUlAurqWSqhlijaxtAbJFg
	CYNxq/npDeI79Ok6H4AyuWISFlS78d+4/ZkpQDhXRKvfX8/91DbgBmmjZu/G2ddr
	6SuBEFU8iVxMHEJMK4WUX5u8YRug4Vc24uXSEi1jSBmVHdynHh6pBs=
Received: from [10.9.1.130] (unknown [89.238.129.18])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: jrn@jrn.me.uk)
	by homiemail-a6.g.dreamhost.com (Postfix) with ESMTPSA id 7503259806B
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sun,  9 Aug 2015 07:12:24 -0700 (PDT)
To: bitcoin-dev@lists.linuxfoundation.org
From: Ross Nicoll <jrn@jrn.me.uk>
Message-ID: <55C75FC8.6070807@jrn.me.uk>
Date: Sun, 9 Aug 2015 15:12:24 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101
	Thunderbird/38.1.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	smtp1.linux-foundation.org
Subject: [bitcoin-dev] Alternative chain support for payment protocol
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Bitcoin Development 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: Sun, 09 Aug 2015 14:12:25 -0000

BIP 70 currently lists two networks, main and test (inferred as 
testnet3) for payment protocol requests. This means that different 
testnets cannot be supported trivially, and the protocol cannot be used 
for alternative coins (or, lacks context to indicate which coin the 
request applies to, which is particularly dangerous in cases where coins 
share address prefixes).

I propose adding a new optional "genesis" field as a 16 byte sequence 
containing the SHA-256 hash of the genesis block of the network the 
request belongs to, uniquely identifying chains without any requirement 
for a central registry. For backwards compatibility, the "network" field 
would contain "main" for Bitcoin main net, "test" for Bitcoin testnet3, 
and "other" for other networks apart from those two.

I'd appreciate initial feedback on the idea, and if there's no major 
objections I'll raise this as a BIP.

Ross