Post
Topic
Board Development & Technical Discussion
Merits 8 from 4 users
Question about Wt in the SHA-256 algorithm
by
w0lverine
on 14/03/2018, 11:16:40 UTC
⭐ Merited by malevolent (3) ,DannyHamilton (2) ,ETFbitcoin (2) ,criptix (1)
Hi everyone I have recently gotten into trying to understand the math behind Bitcoin and cryptography.
Right now I am concentrating on the SHA-256 process mostly using http://www.righto.com/2014/09/mining-bitcoin-with-pencil-and-paper.html & https://en.wikipedia.org/wiki/SHA-2#Pseudocode & https://csrc.nist.gov/csrc/media/publications/fips/180/4/final/documents/fips180-4-draft-aug2014.pdf as a starting point

I have trouble understanding the following:
Where does the Wt value comes from, how to calculate it and how it relates to the previous block. I cannot understand the origin of this value at all.


Thank you

Edit:

Basically I am trying to understand this:

Wt =

Mt (i) for ≤ t ≤ 15

ROTL1 (Wt−3 ⊕Wt−8 ⊕Wt−14 ⊕Wt−16 ) for 16 ≤ t ≤ 79