Search code examples
hyperledger-fabricblockchainhyperledgeripfs

IPFS is a good alternative to save pdf to hyperledger fabric?


I am creating a hyperledger network that is already working, it has a chaincode in typescript and an api client written in nodejs, so far the data that I am uploading has a field/value. But at the moment I have the requirement to upload PDF files, doing some research I found that an alternative is to use a private IPFS network, and inside hyperledger I store the hash generated when storing the file, but I would like to know if this is a good way to store this type of files, respecting all the characteristics of a blockchain network such as immutability.


Solution

  • IPFS is a good fit for storing large data offchain. IPFS files addressed using its hash and thus are immutable. One thing to note is that the data added to IPFS are not encrypted by default. You have to implement additional encryption if some data security is needed.