Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement