Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
32284878
Topic
3122822
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:
W
t
=
M
t
(i)
for ≤ t ≤ 15
ROTL
1
(W
t−3
⊕W
t−8
⊕W
t−14
⊕W
t−16
) for 16 ≤ t ≤ 79