Reversing merkle root endianness

Reversing merkle root endianness

I have a message which is in little-endian SHA-256 hash and a merkle root which is in big-endian SHA-256 format. I need to verify the message against the merkle root. I thought of reversing the string that contains the message before hashing it and then passing the reversed message further to all the operations on the merkle path. I am not really sure what to do. Can you give me ideas on how to do it?

https://ift.tt/2vU9zcT

Comments

Popular posts from this blog

Need help to recover blpckchain.info wallet, my wife forgot her password and the brute force with btcrecover is not catching the password

When downloading the blockchain my application is become unusable, is there an issue with my code or am I using the BitcoinJ library incorrectly?

Mistakenly sent BTC from my personal wallet back to one of the exchange wallet addresses that I had received BTC from before - help recovering!