Skip to content

Review property name for the anchored index object #857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
troyronda opened this issue Nov 3, 2021 · 3 comments
Closed

Review property name for the anchored index object #857

troyronda opened this issue Nov 3, 2021 · 3 comments
Labels

Comments

@troyronda
Copy link
Contributor

Current data model example:

{
  "@context": "https://w3id.org/activityanchors/v1",
  "attachment": [
    {
      "contentObject": {
        "properties": {
          "https://w3id.org/activityanchors#generator": "https://w3id.org/orb#v0",
          "https://w3id.org/activityanchors#resources": [
            {
              "id": "did:orb:uEiAL-T2TdNkqL5gRIX8BZvrXESPOzoIYy98YUBxc5xAG0w:EiCIZ0W-fdodoK39vGPl1rxDJTinYN2kTBhddS9xnen-Aw",
              "previousAnchor": "hl:uEiAL-T2TdNkqL5gRIX8BZvrXESPOzoIYy98YUBxc5xAG0w"
            }
          ]
        },
        "subject": "hl:uEiA30C_KU_wogvUhJKLUA8bXHqSM_75X1QZQN3z_4VacXQ:uoQ-BeEJpcGZzOi8vYmFma3JlaWJ4MmF4NHV1NzRmY2Jwa2lqZXVsa2Focnd4ZDJzaXo3NTZrN2txbXVieHB0NzZjdnU0bHU"
      },
      "generator": "https://w3id.org/orb#v0",
      "tag": [
        {
          "href": "hl:uEiAdjYmJQEhKreYkikrMUfyFPVyEKLmfoHWmKhebWyNpUw",
          "rel": [
            "witness"
          ],
          "type": "Link"
        }
      ],
      "type": "AnchorObject",
      "url": "hl:uEiCF5Mr8n7NPsAGenkNIoY0tJtnqDUWMk_XdYpgOm5yNnA"
    },
    {
      "contentObject": {
        "@context": [
          "https://www.w3.org/2018/credentials/v1",
          "https://w3id.org/security/suites/jws-2020/v1"
        ],
        "credentialSubject": "hl:uEiCF5Mr8n7NPsAGenkNIoY0tJtnqDUWMk_XdYpgOm5yNnA",
        "id": "https://orb2.domain1.com/vc/1da2c6c8-6ef4-4860-be92-45cc88c3614b",
        "issuanceDate": "2021-10-29T18:06:34.556862797Z",
        "issuer": "https://orb2.domain1.com",
        "proof": [
          {
            "created": "2021-10-29T18:06:34.566Z",
            "domain": "http://orb.vct:8077/maple2020",
            "jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..XRafN3mZOI-NuEtYWVSxNLCRd-tMg3nOgyHW4ke8P8YoGhu2O5h8t7yMj2lRcpElA1oE7zn_u3_nM6W1TvsXCA",
            "proofPurpose": "assertionMethod",
            "type": "Ed25519Signature2018",
            "verificationMethod": "did:web:orb.domain1.com#orb1key"
          },
          {
            "created": "2021-10-29T18:06:34.723037523Z",
            "domain": "https://orb.domain2.com",
            "jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..Hz-J6lY5Ombe-pj6qv5SVhou_O-zqsBkmtoYEs76wyrZef4YoBm9B0jfYn1o0Iu1cm1g4ent_5xq7SMp5LlUAQ",
            "proofPurpose": "assertionMethod",
            "type": "Ed25519Signature2018",
            "verificationMethod": "did:web:orb.domain2.com#orb2key"
          }
        ],
        "type": "VerifiableCredential"
      },
      "generator": "https://w3id.org/orb#v0",
      "type": "AnchorObject",
      "url": "hl:uEiAdjYmJQEhKreYkikrMUfyFPVyEKLmfoHWmKhebWyNpUw"
    }
  ],
  "attributedTo": "https://orb.domain1.com/services/orb",
  "index": "hl:uEiCF5Mr8n7NPsAGenkNIoY0tJtnqDUWMk_XdYpgOm5yNnA",
  "parent": "hl:uEiAL-T2TdNkqL5gRIX8BZvrXESPOzoIYy98YUBxc5xAG0w:uoQ-BeEJpcGZzOi8vYmFma3JlaWFsN2U2emc1Z3pmaXh6cWVqYnA0YXduNnd4Y2VyNDV0dWNkZGY1NmdjcWRyb29vZWFnMm0",
  "published": "2021-10-29T18:06:34.554883376Z",
  "type": "AnchorEvent",
  "url": "hl:uEiAyUitoMn-ujmlFC6DBW2AlWabxGfVpGw0b3ymcqwzSHQ:uoQ-BeEJpcGZzOi8vYmFma3JlaWJza2l2d3FtdDd2Mmhnc3JpbHVkYXZ3eWJmbGd0cGNncHZuZW5xMmc2N2Znb2t3ZGdzZHU"
}
@troyronda
Copy link
Contributor Author

troyronda commented Nov 3, 2021

In w3c/vc-data-model#831, there is a proposal for a new property name anchoredResource.

This anchoredResource property has similarity to the index property in AnchorEvent above and the witness VC credentialSubject.

@troyronda
Copy link
Contributor Author

@dmitrizagidulin - we also have the need for referring to anchored resources in Orb. ^^^

@dmitrizagidulin
Copy link

@troyronda - Oh, very interesting! Thanks for the heads up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants