Take the 2-minute tour ×
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It's 100% free, no registration required.

I have written my own hardware implementation for hash computation. I am participating in a pool, that is I get sent the midstate and some data which should then be hashed.

I wonder, whether there are any testvectors out there, that is I need input the midstate plus data, and see then whether my implementation finds the appropriate nonce that is also supplied with the testvectors.

Many thanks for your help, Patrick

share|improve this question
    
New implementation, cool! CPU/GPU? Why don't you test it on a real pool? –  d33tah Nov 8 '12 at 18:44
add comment

1 Answer

The block headers in the blockchain are your test vectors, they already contain the appropriate nonce. Midstate can be computed from these headers, mining software does such a midstate computation (so crib this bit from their source code).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.