masa-finance / masa-oracle

Masa Oracle: Decentralized Data Protocol 🌐
https://developers.masa.ai/docs/category/oracle-node
MIT License
16 stars 15 forks source link

feat: On chain content-addressable system #381

Open mudler opened 3 months ago

mudler commented 3 months ago

This card depends on https://github.com/masa-finance/masa-oracle/issues/380 .

As we have a on-chain ledger, now we want to be able to store large portion of data that can't fit in the ledger itself.

We want to keep the ledger state as lightweight as possible and we do not want to store large blobs of data in it, ideally because:

Is your feature request related to a problem? Please describe. With a ledger, now we need to store permanent data somewhere. This card is about implementing a mechanism, similar to what is defined in https://github.com/masa-finance/masa-oracle/issues/345#issuecomment-2167399111 that allows to synchronize data across nodes in a distributed fashion, be able to push content and retrieve it via CID.

In this way the on-chain ledger can be just used as an index, while we store the data by using a specific protocol in the oracle network.

Describe the solution you'd like

Describe alternatives you've considered using IPFS as backing storage, and have masa-oracles nodes be pinning services for the CID in the blockchain

Additional context

345

Blocked by: #380

Acceptance criteria

mudler commented 3 months ago

I know that @jdutchak you want to work so hard on it ;) but let's assign the cards only when in progress