Created
March 5, 2018 19:18
-
-
Save kemalyen/75f66ed4409263ea42f5436404dd1049 to your computer and use it in GitHub Desktop.
Basit bir BlockChain modeli
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
package com.gazatem.java.blockchain.tutorial.model; | |
import java.util.Date; | |
public class Block { | |
private String hash; | |
private String previousHash; | |
private String storedData; | |
private long timeStamp; | |
private int nonce; | |
public Block(String storedData,String previousHash ) { | |
this.storedData = storedData; | |
this.previousHash = previousHash; | |
this.timeStamp = new Date().getTime(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment