Skip to content

Instantly share code, notes, and snippets.

@kemalyen
Created March 5, 2018 19:18
Show Gist options
  • Save kemalyen/75f66ed4409263ea42f5436404dd1049 to your computer and use it in GitHub Desktop.
Save kemalyen/75f66ed4409263ea42f5436404dd1049 to your computer and use it in GitHub Desktop.
Basit bir BlockChain modeli
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