oceanprotocol / pm

Zenhub needs each issue associated with one repo. This repo is a workaround, to mark issues that span >1 repos.
4 stars 0 forks source link

Public data service #182

Closed alexcos20 closed 6 months ago

alexcos20 commented 1 year ago

For publicly available datasets, it does make sense to reduce consume friction, by not encrypting the url and allow consumers to bypass smartcontracts/provider, although this completely removes traceability & provenance.

Proposal: Add a new key to service object, called "publicData". This will contain an array of files object (see https://docs.oceanprotocol.com/core-concepts/did-ddo#files). In a nutshell, this is equivalent with original files object before being encrypted by the provider in the current setup

Service example:

{
  "services": [
    {
      "id": "1",
      "type": "publicData",
      "files": [{
                   "type": "url",
                   "url": "https://url.com/file1.csv",
                   "method": "GET",
                   "headers":
                           [
                              {"Authorization": "Bearer 123"}, 
                              {"APIKEY": "124"},
                   ]
      }],
      "name": "Download service",
      "description": "Download service",
    },

To Do: