<p>I have come across at least two times in bitcoin computations that the sha256 algorithm is applied twice - merkle root computation and address computation. Why is this?</p>
<p>Not sure of an appropriate tag - please edit.</p>

CC BY-SA 4.0
2021-03-22T06:36:34.597Z
Yes, didn't find that when I searched this question. Thanks
Prince M
CC BY-SA 4.0
2021-03-22T06:48:29.570Z
Thanks for mentioning that, I always feel a little embarrassed when my questions end up being duplicates. I don't entirely understand how a length extension attack could be employed with the merkle root calculation, but I'll spend some time researching the topic and post a more specific question that is not covered in the linked question if I can't figure it out.
Prince M
<sha256>
Why is the SHA256 regularly applied twice?
Prince M
# Why is the SHA256 regularly applied twice?

(Asked by: username_0 on 2021-03-22)

I have come across at least two times in bitcoin computations that the sha256 algorithm is applied twice - merkle root computation and address computation. Why is this?

Not sure of an appropriate tag - please edit.

**Tags:** sha256

> **Comments:**
> **username_0**: Yes, didn't find that when I searched this question. Thanks  
> **username_0**: Thanks for mentioning that, I always feel a little embarrassed when my questions end up being duplicates. I don't entirely understand how a length extension attack could be employed with the merkle root calculation, but I'll spend some time researching the topic and post a more specific question that is not covered in the linked question if I can't figure it out.  

---

## 0 answers

