Skip to content

sayandas-sd/pow-Blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proof Of Work Blockchain

Proof of work Blockchain, finds a nonce for a valid block to add to the blockchain.

  • Blocks store data, position, Timestamp, hash, previousHash.
  • Each blocks previous Hash is linked to the one before it and that create blockchain.

Create Folder

mkdir project

cd project

go mod tidy

go run main.go

Port

http://localhost:8080

Test Endpoint

  curl -X POST http://localhost:8080 -H "Content-Type: application/json" -d '{"name": "89"}'

Nonce

Screenshot 2025-01-02 at 8 31 04 PM

Output

Screenshot 2025-01-02 at 8 27 38 PM Screenshot 2025-01-02 at 8 29 03 PM

About

Proof of work Blockchain, finds a nonce for a valid block to add to the blockchain.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages