https://github.com/jeroenouw/blockchaingo
Blockchain Proof-Of-Work with IPFS
https://github.com/jeroenouw/blockchaingo
blockchain go golang gpg-encryption ipfs p2p proof-of-work
Last synced: about 2 months ago
JSON representation
Blockchain Proof-Of-Work with IPFS
- Host: GitHub
- URL: https://github.com/jeroenouw/blockchaingo
- Owner: jeroenouw
- License: mit
- Created: 2018-03-17T14:29:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-01T14:31:31.000Z (about 8 years ago)
- Last Synced: 2025-05-28T21:06:40.051Z (about 1 year ago)
- Topics: blockchain, go, golang, gpg-encryption, ipfs, p2p, proof-of-work
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```json
[
{
"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