Created
February 24, 2017 21:20
-
-
Save lhartikk/87d32a28d0ac43a291a3fd70427e72a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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