digitalbazaar / vc

W3C Verifiable Credentials implementation in JavaScript
BSD 3-Clause "New" or "Revised" License
182 stars 52 forks source link

Vc 2.0 fix protected terms #173

Closed aljones15 closed 9 months ago

aljones15 commented 9 months ago

Features:

Logs:

protected term { term: 'Ed25519Signature2018' }
localCtx {
  "localCtx": {
    "id": "@id",
    "type": "@type",
    "dc": "http://purl.org/dc/terms/",
    "sec": "https://w3id.org/security#",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "EcdsaKoblitzSignature2016": "sec:EcdsaKoblitzSignature2016",
    "Ed25519Signature2018": "sec:Ed25519Signature2018",
    "EncryptedMessage": "sec:EncryptedMessage",
    "GraphSignature2012": "sec:GraphSignature2012",
    "LinkedDataSignature2015": "sec:LinkedDataSignature2015",
    "LinkedDataSignature2016": "sec:LinkedDataSignature2016",
    "CryptographicKey": "sec:Key",
    "authenticationTag": "sec:authenticationTag",
    "canonicalizationAlgorithm": "sec:canonicalizationAlgorithm",
    "cipherAlgorithm": "sec:cipherAlgorithm",
    "cipherData": "sec:cipherData",
    "cipherKey": "sec:cipherKey",
    "created": {
      "@id": "dc:created",
      "@type": "xsd:dateTime"
    },
    "creator": {
      "@id": "dc:creator",
      "@type": "@id"
    },
    "digestAlgorithm": "sec:digestAlgorithm",
    "digestValue": "sec:digestValue",
    "domain": "sec:domain",
    "encryptionKey": "sec:encryptionKey",
    "expiration": {
      "@id": "sec:expiration",
      "@type": "xsd:dateTime"
    },
    "expires": {
      "@id": "sec:expiration",
      "@type": "xsd:dateTime"
    },
    "initializationVector": "sec:initializationVector",
    "iterationCount": "sec:iterationCount",
    "nonce": "sec:nonce",
    "normalizationAlgorithm": "sec:normalizationAlgorithm",
    "owner": {
      "@id": "sec:owner",
      "@type": "@id"
    },
    "password": "sec:password",
    "privateKey": {
      "@id": "sec:privateKey",
      "@type": "@id"
    },
    "privateKeyPem": "sec:privateKeyPem",
    "publicKey": {
      "@id": "sec:publicKey",
      "@type": "@id"
    },
    "publicKeyBase58": "sec:publicKeyBase58",
    "publicKeyPem": "sec:publicKeyPem",
    "publicKeyWif": "sec:publicKeyWif",
    "publicKeyService": {
      "@id": "sec:publicKeyService",
      "@type": "@id"
    },
    "revoked": {
      "@id": "sec:revoked",
      "@type": "xsd:dateTime"
    },
    "salt": "sec:salt",
    "signature": "sec:signature",
    "signatureAlgorithm": "sec:signingAlgorithm",
    "signatureValue": "sec:signatureValue"
  }
}
protected term { term: 'name' }
localCtx {
  "localCtx": {
    "ex": "https://example.org/examples#",
    "schema": "http://schema.org/",
    "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
    "3rdPartyCorrelation": "ex:3rdPartyCorrelation",
    "AllVerifiers": "ex:AllVerifiers",
    "AlumniCredential": "ex:AlumniCredential",
    "Archival": "ex:Archival",
    "BachelorDegree": "ex:BachelorDegree",
    "Child": "ex:Child",
    "CLCredentialDefinition2019": "ex:CLCredentialDefinition2019",
    "CLSignature2019": "ex:CLSignature2019",
    "DisputeCredential": "ex:DisputeCredential",
    "IssuerPolicy": "ex:IssuerPolicy",
    "HolderPolicy": "ex:HolderPolicy",
    "Mother": "ex:Mother",
    "PrescriptionCredential": "ex:PrescriptionCredential",
    "RelationshipCredential": "ex:RelationshipCredential",
    "UniversityDegreeCredential": "ex:UniversityDegreeCredential",
    "ZkpExampleSchema2018": "ex:ZkpExampleSchema2018",
    "alumniOf": {
      "@id": "schema:alumniOf",
      "@type": "rdf:HTML"
    },
    "attributes": "ex:attributes",
    "child": {
      "@id": "ex:child",
      "@type": "@id"
    },
    "college": "ex:college",
    "currentStatus": "ex:currentStatus",
    "degree": "ex:degree",
    "degreeSchool": "ex:degreeSchool",
    "degreeType": "ex:degreeType",
    "familyName": "schema:familyName",
    "givenName": "schema:givenName",
    "issuerData": "ex:issuerData",
    "name": {
      "@id": "schema:name",
      "@type": "rdf:HTML"
    },
    "nonRevocationProof": "ex:nonRevocationProof",
    "parent": {
      "@id": "ex:parent",
      "@type": "@id"
    },
    "prescription": "ex:prescription",
    "primaryProof": "ex:primaryProof",
    "referenceId": "ex:referenceId",
    "documentPresence": "ex:documentPresence",
    "evidenceDocument": "ex:evidenceDocument",
    "signature": "ex:signature",
    "signatureCorrectnessProof": "ex:signatureCorrectnessProof",
    "spouse": "schema:spouse",
    "statusReason": "ex:statusReason",
    "subjectPresence": "ex:subjectPresence",
    "verifier": {
      "@id": "ex:verifier",
      "@type": "@id"
    }
  }
}
codecov-commenter commented 9 months ago

Codecov Report

Merging #173 (f1b675b) into update-vc-2.0 (fdc98f6) will not change coverage. The diff coverage is n/a.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## update-vc-2.0 #173 +/- ## ============================================== Coverage 89.43% 89.43% ============================================== Files 5 5 Lines 994 994 ============================================== Hits 889 889 Misses 105 105 ``` ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/digitalbazaar/vc/pull/173?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=digitalbazaar). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=digitalbazaar) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/digitalbazaar/vc/pull/173?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=digitalbazaar). Last update [fdc98f6...f1b675b](https://app.codecov.io/gh/digitalbazaar/vc/pull/173?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=digitalbazaar). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=digitalbazaar).