summaryrefslogtreecommitdiff
path: root/3f/a941161dcd76da5786ffeba215edfe4ccf26f0
blob: 6074baf86f4d744001da65cc7b1d528e2e9c9fef (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
Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193]
	helo=mx.sourceforge.net)
	by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <nils@nilsschneider.net>) id 1R9Eyw-0003p9-PI
	for bitcoin-development@lists.sourceforge.net;
	Thu, 29 Sep 2011 11:40:50 +0000
Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of
	nilsschneider.net designates 217.11.48.105 as permitted sender)
	client-ip=217.11.48.105; envelope-from=nils@nilsschneider.net;
	helo=ngcobalt05.manitu.net; 
Received: from ngcobalt05.manitu.net ([217.11.48.105])
	by sog-mx-3.v43.ch3.sourceforge.com with esmtp (Exim 4.76)
	id 1R9Eyv-0005po-EV for bitcoin-development@lists.sourceforge.net;
	Thu, 29 Sep 2011 11:40:50 +0000
Received: from ngcobalt05.manitu.net (localhost [127.0.0.1])
	by ngcobalt05.manitu.net (8.10.2/8.10.2) with ESMTP id p8TBeh015065;
	Thu, 29 Sep 2011 13:40:43 +0200
X-manitu-Original-Sender-IP: 127.0.0.1
X-manitu-Original-Receiver-Name: ngcobalt05.manitu.net
Received: from [152.127.0.0] (static-ip-188-138-99-157.inaddr.ip-pool.com
	[188.138.99.157]) (Authenticated sender: u8956)
	by ngcobalt05.manitu.net (Postfix) with ESMTPSA id 01C705B46DC;
	Thu, 29 Sep 2011 13:40:40 +0200 (CEST)
Message-ID: <4E845935.8060601@nilsschneider.net>
Date: Thu, 29 Sep 2011 13:40:37 +0200
From: Nils Schneider <nils@nilsschneider.net>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13
MIME-Version: 1.0
To: John Smith <witchspace81@gmail.com>
References: <4E80D591.2080100@nilsschneider.net>
	<CAJNQ0stW-7HMw-O_C9Go8ViRrxBNtEpsbhSRyc3aOzm6OvR6dA@mail.gmail.com>
In-Reply-To: <CAJNQ0stW-7HMw-O_C9Go8ViRrxBNtEpsbhSRyc3aOzm6OvR6dA@mail.gmail.com>
X-Enigmail-Version: 1.1.2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Score: -1.5 (-)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
	See http://spamassassin.org/tag/ for more details.
	-1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for
	sender-domain
	-0.0 SPF_PASS               SPF: sender matches SPF record
X-Headers-End: 1R9Eyv-0005po-EV
Cc: bitcoin-development@lists.sourceforge.net
Subject: Re: [Bitcoin-development] Deprecating "midstate" in getwork?
X-BeenThere: bitcoin-development@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Thu, 29 Sep 2011 11:40:50 -0000

Yes, that's possible and what
https://github.com/bitcoin/bitcoin/pull/535 does. However, deprecating
midstate (and hash1) would allow for much cleaner code.

A pull request for marking midstate (and hash1) as deprecated can be
found at https://github.com/bitcoin/bitcoin/pull/538

On 29.09.2011 12:23, John Smith wrote:
> Nils,
> 
> Sounds good. I'm also doubtful of depending on two crypto libraries when
> OpenSSL does perfectly well.
> 
> However, losing compatibility with miners is not very nice. Is there
> really not a way to compute midstate with OpenSSL?
> 
> JS
> 
> On Mon, Sep 26, 2011 at 7:42 PM, Nils Schneider <nils@nilsschneider.net
> <mailto:nils@nilsschneider.net>> wrote:
> 
>     Hey,
> 
>     I'd like to simplify the internal reference miner and remove all
>     dependencies on cryptopp (it's the only place we use cryptopp instead of
>     OpenSSL).
> 
>     Unfortunately, cryptopp is also used to calculate getwork "midstate".
>     This field is redundant and the miner could easily calculate it from the
>     blockheader so I'd like to remove it.
> 
>     Any thoughts? Where should such a change should be announced so all
>     miners can be upgraded?
> 
>     ------------------------------------------------------------------------------
>     All the data continuously generated in your IT infrastructure contains a
>     definitive record of customers, application performance, security
>     threats, fraudulent activity and more. Splunk takes this data and makes
>     sense of it. Business sense. IT sense. Common sense.
>     http://p.sf.net/sfu/splunk-d2dcopy1
>     _______________________________________________
>     Bitcoin-development mailing list
>     Bitcoin-development@lists.sourceforge.net
>     <mailto:Bitcoin-development@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/bitcoin-development
> 
>