summaryrefslogtreecommitdiff
path: root/82/95bccba090fa26544dcd5294dd7b629a3d4c4c
blob: a34d89de5a8be16543361c75611a20e0608eba8f (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
120
121
Return-Path: <karljohan-alm@garage.co.jp>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id 8470FBE0
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed,  5 Sep 2018 03:10:11 +0000 (UTC)
X-Greylist: delayed 00:09:15 by SQLgrey-1.7.6
Received: from mo.garage.hdemail.jp (mo.garage.hdemail.jp [46.51.242.127])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 71217713
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed,  5 Sep 2018 03:10:09 +0000 (UTC)
Received: from ip-10-217-1-36.ap-northeast-1.compute.internal
	(localhost.localdomain [127.0.0.1])
	by mo.garage.hdemail.jp (hde-mf-postfix) with SMTP id AFAA114C0EE
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed,  5 Sep 2018 12:00:52 +0900 (JST)
	(envelope-from karljohan-alm@garage.co.jp)
X-Received: from unknown (HELO mo.garage.hdemail.jp) (127.0.0.1)
	by 0 with SMTP; 5 Sep 2018 12:00:52 +0900
X-Received: from mo.garage.hdemail.jp (localhost.localdomain [127.0.0.1])
	by mo.garage.hdemail.jp (hde-ma-postfix) with ESMTP id A39DC4C086
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed,  5 Sep 2018 12:00:52 +0900 (JST)
	(envelope-from karljohan-alm@garage.co.jp)
Received: from gw18.oz.hdemail.jp
	(ip-10-158-195-2.ap-northeast-1.compute.internal [10.158.195.2])
	by mo.garage.hdemail.jp (hde-mf-postfix) with ESMTP id A12BF14C0EC
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed,  5 Sep 2018 12:00:52 +0900 (JST)
	(envelope-from karljohan-alm@garage.co.jp)
X-Received: from mail-qk1-f200.google.com (lb07.oz.hdemail.jp [54.238.57.67])
	(using TLSv1 with cipher AES128-SHA (128/128 bits))
	(No client certificate requested)
	by gw18.oz.hdemail.jp (Postfix) with ESMTP id 392B5148C0E0
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed,  5 Sep 2018 12:00:52 +0900 (JST)
X-Received: by mail-qk1-f200.google.com with SMTP id e3-v6so4042534qkj.17
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Tue, 04 Sep 2018 20:00:52 -0700 (PDT)
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:cc;
	bh=wYi7P5ifmE2bnNOgjEttNmZeQfsIeVy1ut56XNhscnU=;
	b=hVPEMgukgoImojY41K7D+/BQo3kZMkO52sZl5mBK6rpHbyvrcSVYujwk9+bP6Yqjvv
	yb5ow6tkp8qhouIXFZyDpGzOmlzXefv0+HGhUSbWpTAl47chrYYFH2TpBy142LPpOh0H
	9qdYYVzHR5HI7YFTNso3bT+CHx5C/kW0wyV7uAw63+9cJ951g2Gyvayl6NEP3VbU4BsM
	YwcKk7uxJhzTg4PVSOV6x3g6bnS4pEkqX6h3fB78MdoyyCRXZwVIq27Mca4r+u/f0Ado
	P0CXEx5rd4UI2hTaQTedI3JYmr4IP0De3APQdXwKR0CloXQtpw12ZHAnYsAYkGmaqjlQ
	nB9A==
X-Gm-Message-State: APzg51ClFhi/iMvFSVKWuU7CTDbC75Em+/TIpdBCw+60DzmEk1yhmo4y
	j/xq60oVHMwYaq1xIvMeYykyESQR9cKdb7SWK3eLqytg3Sfc93CWlQ5CemAMelZHQUe0LJUOwcv
	jISFsRcGBinc1jUyZra7QBqI0MgTdC6z+mkwPF55OPXZoC8T1sjT+6cHjNR+Oxg3kEB4C9zSFiN
	nUnz6MywB0ZlkaRw8AQjyBTOXbX+l8ReVFWsh1nj6LGs1QmYIBAd/R8V/FKZ3+I5q/mmWeZ0Aht
	QFJQP/3J/5pLU54HiYaeBWeJCTp7gOSCQOvYX2sahgrPl4LVhLNUrsGk38AhuSnuGzy40cAV/F9
	AzI/+SZywoiofToqVY00w7LPuXk=
X-Received: by 2002:a37:1626:: with SMTP id
	g38-v6mr31179059qkh.176.1536116450791; 
	Tue, 04 Sep 2018 20:00:50 -0700 (PDT)
X-Google-Smtp-Source: ANB0VdYzf4hh0uxESq9XWxeBaEBqyqQVHpb6fiItxY1dQmSKLJqYQu9Yyp/nXWp3TGhXza8R7ERSOPePSDGUAcQM1Uw=
X-Received: by 2002:a37:1626:: with SMTP id
	g38-v6mr31179043qkh.176.1536116450507; 
	Tue, 04 Sep 2018 20:00:50 -0700 (PDT)
MIME-Version: 1.0
References: <CABuOfuh7M6siJW1FzXajsBSeYSu=TBEgx9SAmCbwnP=yb7rJOQ@mail.gmail.com>
	<20180830200239.ujuzh7pitcuatdt3@petertodd.org>
	<7E247E56-38A5-4B99-941A-A2CC837D2567@xbt.hk>
	<CAAS2fgSF=hx581aGUBVv6zardKG4gex43B-jZbAu0a9Rupg1WQ@mail.gmail.com>
In-Reply-To: <CAAS2fgSF=hx581aGUBVv6zardKG4gex43B-jZbAu0a9Rupg1WQ@mail.gmail.com>
From: Karl-Johan Alm <karljohan-alm@garage.co.jp>
Date: Wed, 5 Sep 2018 12:00:39 +0900
Message-ID: <CALJw2w6a2YMS=nso5_6Rsom8qgNt93me3sv7Gr1vrHNcrZOVHQ@mail.gmail.com>
To: Gregory Maxwell <greg@xiph.org>, 
	Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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: Wed, 05 Sep 2018 13:43:50 +0000
Cc: shiva@blockonomics.co
Subject: Re: [bitcoin-dev] Testnet3 Reest
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: Wed, 05 Sep 2018 03:10:11 -0000

On Fri, Aug 31, 2018 at 9:43 PM Gregory Maxwell via bitcoin-dev
<bitcoin-dev@lists.linuxfoundation.org> wrote:
> We looked at doing this previously in Bitcoin core and jtimon had some
> patches,  but the existing approach increased the size of the
> blockindex objects in memory  while not in signed testnet mode.   This
> could probably have been fixed by turning one of the fields like the
> merkel root into a union of it's normal value and a pointer a
> look-aside block index that is used only in signed block testnet mode.

I am currently working on an implementation that simply puts a global
mapping of block hash to signature that is transparently
(de)serialized in the block header.

We were looking into various ways to stuff the signature into the
actual header itself without changing its size, but this looked like
it required truncating the prevblock/merkleroots and such, which
seemed a bit too invasive.

I don't think my approach with a global mapping to sig differs in any
meaningful way from your suggested union, but corrections welcome.

The code is here: https://github.com/kallewoof/bitcoin/tree/signet

I believe jtimon is interested in helping out, and Jeremy Rubin has
also said he wants to help.