Skip to content

Instantly share code, notes, and snippets.

@lhartikk
Created February 24, 2017 21:20
Show Gist options
  • Save lhartikk/87d32a28d0ac43a291a3fd70427e72a3 to your computer and use it in GitHub Desktop.
Save lhartikk/87d32a28d0ac43a291a3fd70427e72a3 to your computer and use it in GitHub Desktop.
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