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

Bitcoin Core errors with database block

sendrawtransaction and txn-mempool-conflict