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
import java.security.MessageDigest; | |
import java.util.*; | |
class Block { | |
private String hash; | |
private String previousHash; | |
private String data; | |
private long timeStamp; | |
private int nonce; | |
public Block(String data, String previousHash, long timeStamp){ |