Author: Stefan Thomas 2011-09-29 11:48:25
Published on: 2011-09-29T11:48:25+00:00
BitcoinJS utilizes OpenSSL to calculate midstate, as seen in the code on line 380 of their native.cc file. In a mailing list exchange between developers in September 2011, Nils Schneider proposed removing dependencies on cryptopp in the internal reference miner and instead relying solely on OpenSSL. However, cryptopp was also being used to calculate getwork "midstate," which is redundant and could be calculated from the blockheader. While some expressed concern about losing compatibility with miners, others agreed that deprecating midstate would result in cleaner code. A pull request for marking midstate as deprecated was submitted and can be found at https://github.com/bitcoin/bitcoin/pull/538.
Updated on: 2023-06-04T20:09:55.589534+00:00