Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitfede/file-validation-certification-dapp
This Dapp helps proving that a file existed on a certain point in time and also helps prove its integrity over future times
https://github.com/bitfede/file-validation-certification-dapp
Last synced: 22 days ago
JSON representation
This Dapp helps proving that a file existed on a certain point in time and also helps prove its integrity over future times
- Host: GitHub
- URL: https://github.com/bitfede/file-validation-certification-dapp
- Owner: bitfede
- License: mit
- Created: 2019-09-29T18:45:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T23:05:47.000Z (about 2 years ago)
- Last Synced: 2024-11-20T23:19:39.355Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.43 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# File Integrity & Existence Certificate Dapp
This Decentralized Application will take a SHA256 digital signature of your file and write it to the Ethereum blockchain to prove its existence at the present time and future integrity.
## Installation
Clone the repo and `npm install` inside the root folder and inside the `client/` folder.
## Run and Test on a local blockchain
Run `truffle develop` or start Ganache, make sure the correct port is specified in the `truffle-config.js` file.
Then run `truffle compile` to compile the solidity contracts into bytecode, and finally run `truffle migrate` to deploy them to the local blockchain.
Then `cd` into the `client` folder and run `npm start` to start the front end on `localhost:3000`.
You should now be on the browser, make sure you have MetaMask installed. Connect with MetaMask to the `Localhost PORT_NUMBER` blockchain.
Send some ether to the metamask address using the truffle console by entering `web3.eth.sendTransaction({ from: accounts[0], to: '0x123_YOUR_METAMASK_ADDRESS', value: 10000000000000000000 })`. This sends 10 ETH to MetaMask.
You are now ready to use the dApp on localhost.
*Keep in mind that every time you restart the local blockchain you have to migrate your contracts again and also reset MetaMask by going to SETTINGS > ADVANCED > RESET ACCOUNT.*
## Deploy on testnet
To deploy on testnet we need a parity or geth node running so truffle can publish our contract to a testnet through the host:port using JSON RPC.
### How I did it
I wrote how I deployed the dApp on testnet on my blockchain-focused blog Blockchainlion.com.
The link to the full article is here [https://blockchainlion.com/deploy-ethereum-dapp-with-a-cloud-server/](https://blockchainlion.com/deploy-ethereum-dapp-with-a-cloud-server/)
## Deploy on mainnet
Same reasoning as deploying on testnet, but:
- Parity needs to run a mainnet node
- The `truffle-config.js` file needs to have a network config for mainnet
- Real ether need to be sent to the account that will deploy the contracts