Skip to content

vvshulga/goblock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goblock

Go package educational package, implementing blockchain functions.

Installation

go get github.com/vvshulga/goblock

Usage

Create Blockchain:

miningDificulty int8 = 2
blockchain := CreateBlockchain(miningDificulty)

Add block to blockchain:

from := "Alice"
to   := "Bob"
amount := 5
blockchain.addBlock(from, to, amount)

Check if blockchain is valid:

blockchain.isValid()

About

Go package educational package, implementing blockchain functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages