Skip to content

Instantly share code, notes, and snippets.

View shion1118's full-sized avatar

Shion Fukushima shion1118

  • Japan
View GitHub Profile
@shion1118
shion1118 / Block.java
Created January 21, 2018 09:43
Block
public class Block {
private int index;
private long timeStamp;
private ArrayList<Transaction> transactions;
private int proof;
private String previousHash;
public Block(int index, long timeStamp, ArrayList<Transaction> transactions, int proof, String previousHash) {
this.index = index;
@shion1118
shion1118 / block.json
Last active January 21, 2018 09:32
Block Structure
{
"index": 2,
"timeStamp": 1516526517931,
"transactions":[
{
"sender": "0",
"recipient": "1",
"amount": 1
}
],