Technologies Used
JavaScriptnodejs
solidity
ExpressJS
IPFS
Ethereum
About
Blockchain Document Upload System consists of several components, in addition to the smart contract code. The backend API communicates with the blockchain API through RPC (remote procedure calls) and will provide the files and data to save. Here is an example: ● Blockchain Document Upload System receives request from mobile app to store and record media file(s) ● Blockchain Document Upload System runs as an RPC service (on the backend servers) ● RPC request received from backend API to store specific file(s) with metadata about ownership, date/time, location, etc. ● Each media file is uploaded to IPFS/Swarm and permanent URL is returned. ● Metadata, along with IPFS URLs, are converted to structured JSON format and stored in IPFS/Swarm and permanent URL is returned. The JSON file format will conform to a versioned specification that will evolve over time. ● Hash values are calculated for each file and URL to represent the original and permanent record of the files and metadata ● Metadata URL and hash values are sent to the smart contract to record in Ethereum blockchain and block transaction information is returned and captured. ● All metadata and transaction information is saved to backend API using web service calls from blockchain API.
Comments
No comments yet