baseline icon indicating copy to clipboard operation
baseline copied to clipboard

SRI Zero-Knowledge Component: IPFS preparation tasks

Open biscuitdey opened this issue 2 years ago • 2 comments

Overview

Setup IPFS for the storage of the Sparse Merkle tree.

Reference

Assumptions

  • The IPFS will be a private instance used to share data between the participants of the workgroup.

Acceptance

  • Can store and retrieve data from the IPFS

Tasks

  • [ ] Install IPFS implementation for node.js
  • [ ] Adding data to IPFS
  • [ ] Retrieving data from IPFS

biscuitdey avatar Aug 04 '22 11:08 biscuitdey

something to consider -> there are significant advantages to using IPFS cluster library e.g. redundancy, MFS, and performance. However, this is only available in go, and is not compatible with the js library (speaking from personal experience).

So:

  1. If we only want to use one langauge throughout the stack AND we want to be able to use IPFS cluster, we would have to write everything in go.
  2. If we are sure that we will not use IPFS cluster then js is ok, and we can stick with ts throughout the stack
  3. if we want to allow for mxing then we can do ts and use the ipfs cluster library

What are people's thoughts?

Or should we use a different storage solution in append-only mode e.g. Mongo or Postgres or Couch?

Therecanbeonlyone1969 avatar Aug 04 '22 18:08 Therecanbeonlyone1969

I agree with @Therecanbeonlyone1969 Or may be, we can have most of code base in TS, and using Kafka or normal axios call to a dedicated Go package that interacts with IPFS cluster for the merkle tree storage.

Manik-Jain avatar Aug 04 '22 19:08 Manik-Jain