summaryrefslogtreecommitdiff
path: root/c2/0eebadd1533a1b4830e51cc157efb35c7a9dfd
blob: 357d167bff1858d7185676924052be14bd33c2d5 (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
Return-Path: <jtimon@jtimon.cc>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id B4654826
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Fri, 21 Aug 2015 19:46:36 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com
	[209.85.217.181])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 6866E14C
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Fri, 21 Aug 2015 19:46:35 +0000 (UTC)
Received: by lbbsx3 with SMTP id sx3so49931021lbb.0
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Fri, 21 Aug 2015 12:46:33 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:cc:content-type
	:content-transfer-encoding;
	bh=LigbJb5W8qFk0EKeOD1UDbytpAy+yzxQIpSAnqPpHTY=;
	b=l8ID04dHWTUOvH5RFSjzBEPKms6tNKJCPTV4CHy4/xbdCObPCJ69mHLS3r+9l9zdIB
	G+XzgmhaqtrtcWSL8lcMLksP9mOHLSAYsRzoMeE6ZCvVMnrYCsqgy1eZ3/vmiMoSyJ1e
	IOaRPGt+YPW7KpuD4N0JBUdp597Y/cnrJg1H4hScGuLizjRttX93QbUPjyAlaWgY0tV2
	1z6NfpMWjHFouP6EC1Atb+3Lrqcvc34Byd/zJhTkbgE7ESuCmxOYyMulTtohrgtI/6NS
	xw31VCB7kwTyr+wEEU+Pczwblsszs6FWBrbN7tyAEHfqknJUyBqu+aPdOSefqZMEC2XG
	ZaLQ==
X-Gm-Message-State: ALoCoQnlRUL1ceoSdZbIg1J9rq6j6yBARz6ovzmIotraNwJ39Fy/POOHlZtqobcMNetRhdw4GUgw
MIME-Version: 1.0
X-Received: by 10.152.42.170 with SMTP id p10mr9043677lal.39.1440186393489;
	Fri, 21 Aug 2015 12:46:33 -0700 (PDT)
Received: by 10.25.15.22 with HTTP; Fri, 21 Aug 2015 12:46:33 -0700 (PDT)
In-Reply-To: <3390F712-879A-46E9-ABCD-D35B51190304@bitsofproof.com>
References: <CABm2gDrApVuxF8DFf32V=pQhDKvvVfcDK=LeCXJ9h9o8CY+wNQ@mail.gmail.com>
	<55B723EA.7010700@voskuil.org>
	<CABm2gDok2gH2R8=x3a8PmPiM56WFg3TKzCum_WS=uV9-T1Ss3g@mail.gmail.com>
	<55B939CF.1080903@voskuil.org>
	<CABm2gDq1wHP01Tncw3hu=SCWQHaAOMjWOVYQWdQsOZ+E7zp9Yw@mail.gmail.com>
	<CABm2gDr_ePfPeWB8pEO8QNHDjUZpybVuCAdDmMxJxMaC8+2bGA@mail.gmail.com>
	<C4EA4A39-1920-4F33-822C-FBD12DF81004@bitsofproof.com>
	<CABm2gDqkF20ZoexQSV8iORb3ukxxZr5RasTLxJqQfSTsTqHvog@mail.gmail.com>
	<3390F712-879A-46E9-ABCD-D35B51190304@bitsofproof.com>
Date: Fri, 21 Aug 2015 21:46:33 +0200
Message-ID: <CABm2gDpcEmiPNQWeUk5aTjuTSRAJSPYfgAKc7B_qrqw0w04xoA@mail.gmail.com>
From: =?UTF-8?B?Sm9yZ2UgVGltw7Nu?= <jtimon@jtimon.cc>
To: Tamas Blummer <tamas@bitsofproof.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,
	URIBL_BLACK autolearn=no version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	smtp1.linux-foundation.org
Cc: Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>,
	Libbitcoin <libbitcoin@lists.dyne.org>
Subject: Re: [bitcoin-dev] Libconsensus separated repository (was Bitcoin
 Core and hard forks)
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: Fri, 21 Aug 2015 19:46:36 -0000

On Thu, Aug 20, 2015 at 10:35 AM, Tamas Blummer <tamas@bitsofproof.com> wro=
te:
> Every re-implementation, re-factoring even copy-paste introduces a risk o=
f disagreement,
> but also open the chance of doing the work better, in the sense of softwa=
re engineering.

But you don't want something better, you want something functionally identi=
cal.
You may want to watch sipa's explanation on why "the implementation is
the specification" and the reasons to separate libconsensus:
https://youtu.be/l3O4nh79CUU?t=3D764

>> On Aug 20, 2015, at 10:06, Jorge Tim=C3=B3n <jtimon@jtimon.cc> wrote:
>>
>>
>> But the goal is not reimplementing the consensus rules but rather
>> extract them from Bitcoin Core so that nobody needs to re-implement
>> them again.
>
>
>
> My goal is different. Compatibility with Bitcoin is important as I also w=
ant to deal with Bitcoins,
> but it is also imperative to be able to create and serve other block chai=
ns with other rules and for those
> I do not want to carry on the legacy of an antique tool set and a spaghet=
ti style.
>
> Bits of Proof uses scala (akka networking), java (api service), c++ (leve=
ledb and now libconsensus)
> and I am eager to integrate secp256k1 (c) as soon as part of consensus. T=
he choices were
> made because each piece appears best in what they do.

Since you already depend on libconsensus for VerifyScript, wouldn't it
be nice that it also offered VerifyTx, VerifyHeader and VerifyBlock?
You would still have complete control over storage, concurrency,
networking, policy...
My plan is for the C API to interface with the external storage by
passing a function pointer to it.