ChainAgnostic / CASA

Chain Agnostic Standards Alliance organizational homebase
https://alliance.chainagnostic.org
114 stars 41 forks source link

AuthZ Group - special meeting about UCANs, ReCaps, CACAOs and IPLD syntax/interop #54

Closed bumblefudge closed 1 year ago

bumblefudge commented 1 year ago

23 Nov - Special Session - UCAN/ReCap

Context

PRs to refine/move to close

Ongoing projects/topics

example of proposal UCAN syntax:

{
  //...,
  att: [
    {
      'example.com': {
        "crud/read": {},
        "crud/create": {
          "mime": "jpg"
        }
      }
    }
  ]
}

proposal Rebase syntax

{
   "def":[
      "read"
   ],
   "tar":{
      "my.resource.1":[
         "append",
         "delete"
      ],
      "my.resource.2":[
         "append"
      ],
      "my.resource.3":[
         "append"
      ]
   },
   "ext":{
       "parentCapability": "bafybeigk7ly3pog6uupxku3b6bubirr434ib6tfaymvox6gotaaaaaaaaa"
   }
},
{
   "def":[
      "read"
   ],
   "tar":{
      "my.resource.4":[
         "append",
         "delete"
      ],
      "my.resource.5":[
         "append"
      ],
      "my.resource.6":[
         "append"
      ]
   },
   "ext":{
       "parentCapability": "baakrwer7ly3pog6uupxku3b6bubirr434ib6tfaymvox6gotaaaaaaaaa"
   }
}

Rebase status quo for multiple namespaces:

example.com wants you to sign in with your Ethereum account:
0x0000000000000000000000000000000000000000

I further authorize https://example.com to perform the following actions on my
behalf: (1) example1: read for any. (2) example1: append, delete for
my.resource.1. (3) example1: append for my.resource.2, my.resource.3. (4)
example2.biz: read for any. (5) example2.biz: append, delete for my.resource.4.
(6) example2.biz: append for my.resource.5, my.resource.6.

URI: https://example.com
Version: 1
Chain ID: 1
Nonce: n-0S6_WzA2Mj
Issued At: 2022-06-21T12:00:00.000Z
Resources:
- urn:recap:example.com:eyJkZWYiOlsicmVhZCJdLCJ0YXIiOnsibXkucmVzb3VyY2UuMSI6WyJhcHBlbmQiLCJkZWxldGUiXSwibXkucmVzb3VyY2UuMiI6WyJhcHBlbmQiXSwibXkucmVzb3VyY2UuMyI6WyJhcHBlbmQiXX19
- urn:recap:example2.biz:eyJkZWYiOlsicmVhZCJdLCJ0YXIiOnsibXkucmVzb3VyY2UuMSI6WyJhcHBlbmQiLCJkZWxldGUiXSwibXkucmVzb3VyY2UuMiI6WyJhcHBlbmQiXSwibXkucmVzb3VyY2UuMyI6WyJhcHBlbmQiXX19