trustoverip / tswg-acdc-specification-archived

Authentic Chained Data Containers (ACDC)
Other
3 stars 4 forks source link

Addition of payload attribute to support ACDCs as a Verifiable Proof for W3C VC Data Model credentials #74

Open m00sey opened 1 year ago

m00sey commented 1 year ago

For ACDCs to be considered a viable format for a Verifiable Proof the addition of an optional p block within the attribute block, comprised of a d digest (of the block) field, c cargo field, a digest of a W3C VC Data Model compliant credential, and optional schema field s schema field.

{
  "v": "ACDC...",
  ...
  "a" : {
  ...
    "p": {
      "d": "<Digest of payload block>",
      "c": "<Digest of payload>"
      "s": "<SAID of Schema>"
    }
  }
}

potential schema update:

{
  "p": {
    "oneOf": [
      {
        "description": "Payload block SAID",
        "type": "string"
      },
      {
        "$id": "EDh9sp5cPk0-yo5sFMo6WJS1HMBYIOYCwJrnPvNaH1vI",
        "description": "Payload block",
        "type": "object",
        "properties": {
          "d": {
            "description": "Payload block SAID",
            "type": "string"
          },
          "c": {
            "description": "Cargo SAID",
            "type": "string"
          },
          "s": {
            "description": "SAID of schema of the credential pointed to by this node",
            "type": "string"
          }
        }
      }
    ],
    "additionalProperties": false,
    "required": [
      "d",
      "c"
    ]
  }
}
dhh1128 commented 1 year ago

Title is intriguing. Curious for details.

SmithSamuelM commented 1 year ago

How about c for cargo, credential, claims