Skip to content

📦 Store file's hash on ethereum blockchain and verify it's original

Notifications You must be signed in to change notification settings

ochui/file-on-blockchain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/ochui/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 -m pip install -r requirements.txt
  3. python server.py

About

📦 Store file's hash on ethereum blockchain and verify it's original

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 77.2%
  • HTML 20.2%
  • Shell 2.6%