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 node: what is the difference between simnet and regtest?

How to check if Electrum is masking my IP with the Tor proxy?

When mining with 2 computers, do I need to use 2 separate wallets addresses?