Skip to content

Instantly share code, notes, and snippets.

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