Datastore Node
Last updated
Last updated
Documents are saved to the IPFS network for quick access. The system requires connection to at least one IPFS node. The connection addresses are specified in the ipEHR gateway configuration file.
For long-term storage of documents, the decentralized file storage Filecoin is used.
A deployed Lotus node is required as a connection point to the Filecoin network for file storage transactions
On the Lotus node a wallet must be created with a positive balance of FIL tokens, which are used to pay for file storage transactions.
By default, file storage transactions are for a period of 6 months.
Attention! At the moment the functionality of storage extension is not implemented. After the expiration of this period the availability of documents is not guaranteed. Extension of transactions will be implemented in the next versions.
validation
compression and encryption
saving to IPFS
saving in a smart contract on the blockchain the meta-information about the document
saving meaningful information from a document into a smart contract on the blockchain using homomorphic encryption for search and filtering purposes
saving the document to Filecoin:
searching for a suitable miner to conclude a transaction using the FilRep service, taking into account the criteria: overall rating, minimum/maximum data size, statistics on previous transactions, price, etc.
signing a deal with the miner in the Filecoin network
transaction status tracking
checking access rights to the document
Search for meta-information about the document in the smart contract
searching for the document in IPFS by CID
if the document is not found in IPFS, the recovery procedure from Filecoin is launched
loading the document by DealCID and minerAddress
saving to IPFS
the document is decrypted and transmitted to the user