Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Edit: So I figured out that the block id requires the hashing blob to be prefixed with the size of hashing blob. So I'm now able to hash the blob to get the correct hash Id. But im still currently stuck at validating the difficulty.
Edit: So I figured out that the block id requires the hashing blob to be prefixed with the size of hashing blob. So I'm now able to hash the blob to get the correct hash Id. But im still currently stuck at validating the difficulty.
I'm trying to re-construct the "hashing blob" for an old block and calculate the correct hash to validate some code, but I can't seem to get the correct results. I've confirmed via(via unit tests against the monero source code) that my hash functions are correct mathematically, so it seems im getting the hashing blob contents wrong. If we take an old block as an example:
I'm trying to re-construct the "hashing blob" for an old block and calculate the correct hash to validate some code, but I can't seem to get the correct results. I've confirmed via unit tests that my hash functions are correct, so it seems im getting the hashing blob contents wrong. If we take an old block as an example:
I'm trying to re-construct the "hashing blob" for an old block and calculate the correct hash to validate some code, but I can't seem to get the correct results. I've confirmed (via unit tests against the monero source code) that my hash functions are correct mathematically, so it seems im getting the hashing blob contents wrong. If we take an old block as an example: