baseline
baseline copied to clipboard
SRI Zero-Knowledge Component: IPFS preparation tasks
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
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:
- 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.
- If we are sure that we will not use IPFS cluster then js is ok, and we can stick with ts throughout the stack
- 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?
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.