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

[EPIC] Credentials support in asset #98

Closed alexcos20 closed 3 years ago

alexcos20 commented 3 years ago

In order to support credentials based access, we are going to add the following attribute to DDO (as a root object)

 "credentials":{
      "allow":[
         {
            "type":"address",
            "values":[
               "0x123",
               "0x456"
            ]
         }
      ]
   },
   "deny":[
      {
         "type":"address",
         "values":[
            "0x2222",
            "0x333"
         ]
      }
   ]
}

where:

For future usage, we can extend that with different credentials types. Example:

         {
            "type":"credential3Box",
            "values":[
               "profile1",
               "profile2"
            ]
         }

All conditions are OR based

Action list:

alexcos20 commented 3 years ago

OEP already updated in https://github.com/oceanprotocol/OEPs/tree/master/7/v0.3#credentials

alexcos20 commented 3 years ago

this is done, we can close it