Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class Block {
constructor(index, previousHash, timestamp, data, hash) {
this.index = index;
this.previousHash = previousHash.toString();
this.timestamp = timestamp; = data;
this.hash = hash.toString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment