Skip to content

ckrielen/simpleblockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Simple Block Chain Go Project

My first Go Project trying to make a simple Block chain

The Chain allows you to add previous/current block to the Chain and get a new block via the method CreateNewBlock

The block are linked with the Previous Hash Value and the Index (ToDo check on index on validate and Add)

The Block has methods

  • createHash to creat the hash of the block
  • Validate to validate is correct with prevHash
  • ToString to help with printing to console

The first block is created with a fixed prevHash

TODO

  • Update Add to check the Index
  • Update Validate to check the Index

About

A simple block chain created in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages