Skip to content

Latest commit

 

History

History

block-chain

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Simple BlockChain

This is simple block-chain library for java. ledger

  • ledger - Keeps the ordered sequence of blocks.
  • genesis block - First block in the ledger. Hash of previous block in genesis block is empty or of any value.
  • hash - contains hash of data and previous block hash combined.
  • data - useful data payload.

Build & Test

gradle clean install test publishToMavenLocal

Include dependency

<dependency>
  <groupId>itx.blockchain</groupId>
  <artifactId>blockchain</artifactId>
  <version>1.0.0</version>
</dependency>
compile 'itx.blockchain:blockchain:1.0.0'

Features implemented

  1. Basic Ledger - basic ledger implementation itx.blockchain.api.* Example of use: itx.blockchain.test.LedgerTest
  2. Proof-of-work ledger - extensions for proof-of-work ledger itx.blockchain.pow.* Example of use: itx.blockchain.test.PowTests
  3. Signed Data payload - utilities for signed data payload io operations itx.blockchain.signed. Example of use: itx.blockchain.test.SignedDataTests