Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 423 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 423 Bytes

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