Skip to content

eminmuhammadi/blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain

A simple blockchain implementation in Go.

Installation

go get github.com/eminmuhammadi/blockchain

Usage

package main

import blockchain "github.com/eminmuhammadi/blockchain"

func main() {
	chain := blockchain.CreateChain()

	chain.AddBlock("First Block")
	chain.AddBlock("Second Block")

	fmt.Println(chain.Blocks)

	println(chain.IsValid())
}

Testing

go test

About

A simple blockchain implementation in Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages