Coder Social home page Coder Social logo

blockchaingo's Introduction

Blockchain with IPFS

Quick start

Clone this repo: git clone https://github.com/jeroenouw/BlockchainGO.git.
Change directory to this project
POST your IPFS hash with e.g. Postman: {"IPFSHash":"[QmQpfRyPKSrDXPQVRkvWDidukWjYs6JKS3P8V6EsEpK7gS]"}
Run go run main.go to run blockchain.
Navigate to http://localhost:8080/. To see active blockchain.

Example

[
 {
  "Index": 0,
  "Timestamp": "2018-03-18 16:14:51.012957277 +0100 CET m=+0.005850262",
  "IPFSHash": "",
  "Hash": "5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9",
  "PrevHash": "",
  "Difficulty": 1,
  "Nonce": ""
 },
 {
  "Index": 1,
  "Timestamp": "2018-03-18 16:15:13.911963367 +0100 CET m=+22.904169426",
  "IPFSHash": "QmQpfRyPKSrDXPQVRkvWDidukWjYs6JKS3P8V6EsEpK7gS",
  "Hash": "00e82bcabc8dcd0f9896183434a5b8303b41962319d461f105e4acd6763fb7eb",
  "PrevHash": "5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9",
  "Difficulty": 1,
  "Nonce": "2"
 }
]

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.