bitcoin-core / bitcoincore.org

Bitcoin Core project website
https://bitcoincore.org/
MIT License
608 stars 474 forks source link

I seem to have found a software bug in the bitcoin core implementation in sha256.cpp #896

Closed DivEtImpera closed 2 years ago

DivEtImpera commented 2 years ago

I seem to have found a software bug in the bitcoin core implementation. >> https://github.com/bitcoin/bitcoin/blob/master/src/crypto/sha256.cpp

While function Transform() does this correctly - in the 3 chunk with 64 rounds for each chunk - because block header is 80 bytes long and at the end always the calculated values of the sigma functions flow in (see parameter k of function Round), it's different with function TransformD64 in the 2nd round and there fixed constants are used for parameter k. ;)

With kind regards...

fanquake commented 2 years ago

This is the repository for the website. You're probably looking for bitcoin/bitcoin.