Erstellen einer Hashblock -Methode mit SHA256 -Hashing -Algorithmus

Blockchain.prototype.hashBlock = function(prevBlockHash, currentBlockData, nonce) {
    const dataString  = prevBlockHash + nonce.toString() + JSON.stringify(currentBlockData);
    const hash = sha256(dataString);

    return hash;
}
Outrageous Ostrich