Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Geremia on March 23, 2015, 07:16:57 AM



Title: What is a midstate?
Post by: Geremia on March 23, 2015, 07:16:57 AM
This (https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list) defines "midstate" as the "precomputed hash state after hashing the first half of the data."

I've heard "midstate" used in the context of speeding up hashing. How does using a midstate speed up hashing?


Title: Re: What is a midstate?
Post by: emrebey on March 23, 2015, 07:53:36 AM
it's initial hash of the first half of the data - later using as an input to the double-hash of the second part of the data. I don't think "using" it speeding up hashing? where did you heart of it?

you already use it since it's a part of the getwork protocol afaik.