📦 Store file's hash on ethereum blockchain and verify it's original
Switch branches/tags
Nothing to show
Clone or download
Latest commit a081f06 Mar 22, 2018
Permalink
Failed to load latest commit information.
app Add example files Mar 22, 2018
blockchain Delete unused file Dec 3, 2017
example Rebuild project struct Dec 2, 2017
.gitignore Init repo Nov 26, 2017
README.md Fix align problem Dec 7, 2017

README.md

File on blockchain

Index Upload result File info
upload result info
Check Exist None
check true false

Initialize blockchain environment

  1. git clone https://github.com/JungWinter/file-on-blockchain
  2. cd file-on-blockchain/blockchain
  3. ./init.sh
  4. ./start.sh

Create account for deploying

  1. Open another terminal and move to file-on-blockchain/blockchain
  2. geth attach ./chain-data/geth.ipc
  3. In console, personal.newAccount() and enter password
  4. miner.start() and miner.stop()

Deploy simple contract

  1. cd file-on-blockchain/example
  2. python deploy_contract_and_test.py
  3. 🎉

Run server

  1. cd file-on-blockchain/app
  2. python server.py
  3. ⭐️