Skip to content

Commit be7a1b8

Browse files
authored
Merge pull request #296 from holashchand/offline-verify-issue
added https://www.w3.org/ns/did/v1 response to support offline
2 parents 2a25572 + fab4d8c commit be7a1b8

File tree

2 files changed

+115
-1
lines changed

2 files changed

+115
-1
lines changed

services/credentials-service/src/credentials/documents.ts

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,5 +867,62 @@ export const DOCUMENTS = {
867867
}
868868
}
869869
}
870-
}
870+
},
871+
"https://www.w3.org/ns/did/v1": {
872+
"@context": {
873+
"@protected": true,
874+
"id": "@id",
875+
"type": "@type",
876+
"alsoKnownAs": {
877+
"@id": "https://www.w3.org/ns/activitystreams#alsoKnownAs",
878+
"@type": "@id"
879+
},
880+
"assertionMethod": {
881+
"@id": "https://w3id.org/security#assertionMethod",
882+
"@type": "@id",
883+
"@container": "@set"
884+
},
885+
"authentication": {
886+
"@id": "https://w3id.org/security#authenticationMethod",
887+
"@type": "@id",
888+
"@container": "@set"
889+
},
890+
"capabilityDelegation": {
891+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
892+
"@type": "@id",
893+
"@container": "@set"
894+
},
895+
"capabilityInvocation": {
896+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
897+
"@type": "@id",
898+
"@container": "@set"
899+
},
900+
"controller": {
901+
"@id": "https://w3id.org/security#controller",
902+
"@type": "@id"
903+
},
904+
"keyAgreement": {
905+
"@id": "https://w3id.org/security#keyAgreementMethod",
906+
"@type": "@id",
907+
"@container": "@set"
908+
},
909+
"service": {
910+
"@id": "https://www.w3.org/ns/did#service",
911+
"@type": "@id",
912+
"@context": {
913+
"@protected": true,
914+
"id": "@id",
915+
"type": "@type",
916+
"serviceEndpoint": {
917+
"@id": "https://www.w3.org/ns/did#serviceEndpoint",
918+
"@type": "@id"
919+
}
920+
}
921+
},
922+
"verificationMethod": {
923+
"@id": "https://w3id.org/security#verificationMethod",
924+
"@type": "@id"
925+
}
926+
}
927+
}
871928
}

services/identity-service/src/vc/documents.ts

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,5 +867,62 @@ export const DOCUMENTS = {
867867
}
868868
}
869869
}
870+
},
871+
"https://www.w3.org/ns/did/v1": {
872+
"@context": {
873+
"@protected": true,
874+
"id": "@id",
875+
"type": "@type",
876+
"alsoKnownAs": {
877+
"@id": "https://www.w3.org/ns/activitystreams#alsoKnownAs",
878+
"@type": "@id"
879+
},
880+
"assertionMethod": {
881+
"@id": "https://w3id.org/security#assertionMethod",
882+
"@type": "@id",
883+
"@container": "@set"
884+
},
885+
"authentication": {
886+
"@id": "https://w3id.org/security#authenticationMethod",
887+
"@type": "@id",
888+
"@container": "@set"
889+
},
890+
"capabilityDelegation": {
891+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
892+
"@type": "@id",
893+
"@container": "@set"
894+
},
895+
"capabilityInvocation": {
896+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
897+
"@type": "@id",
898+
"@container": "@set"
899+
},
900+
"controller": {
901+
"@id": "https://w3id.org/security#controller",
902+
"@type": "@id"
903+
},
904+
"keyAgreement": {
905+
"@id": "https://w3id.org/security#keyAgreementMethod",
906+
"@type": "@id",
907+
"@container": "@set"
908+
},
909+
"service": {
910+
"@id": "https://www.w3.org/ns/did#service",
911+
"@type": "@id",
912+
"@context": {
913+
"@protected": true,
914+
"id": "@id",
915+
"type": "@type",
916+
"serviceEndpoint": {
917+
"@id": "https://www.w3.org/ns/did#serviceEndpoint",
918+
"@type": "@id"
919+
}
920+
}
921+
},
922+
"verificationMethod": {
923+
"@id": "https://w3id.org/security#verificationMethod",
924+
"@type": "@id"
925+
}
926+
}
870927
}
871928
}

0 commit comments

Comments
 (0)