Skip to content

Commit

Permalink
moved HypersignCredentialStatus2023.jsonld to a seperate github repo;…
Browse files Browse the repository at this point in the history
… added context for X25519KeyAgreementKeyEIP5630 type
  • Loading branch information
arnabghose997 committed Nov 6, 2023
1 parent 3e63994 commit e818923
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 13 deletions.
35 changes: 35 additions & 0 deletions x/ssi/ld-context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const X25519KeyAgreement2020Context string = "https://ns.did.ai/suites/x25519-20
const Secp256k1Recovery2020Context string = "https://ns.did.ai/suites/secp256k1-2020/v1"
const BbsSignature2020Context string = "https://ns.did.ai/suites/bls12381-2020/v1"
const Secp256k12019Context string = "https://ns.did.ai/suites/secp256k1-2019/v1"
const X25519KeyAgreementKeyEIP5630 string = "https://raw.githubusercontent.com/hypersign-protocol/hypersign-contexts/main/X25519KeyAgreementKeyEIP5630.jsonld"

// As hid-node is not supposed to perform any GET request, the complete Context body of their
// respective Context urls has been maintained below.
Expand Down Expand Up @@ -609,4 +610,38 @@ var ContextUrlMap map[string]contextObject = map[string]contextObject{
},
},
},
X25519KeyAgreementKeyEIP5630: {
"id": "@id",
"type": "@type",
"@protected": true,
"proof": map[string]interface{}{
"@id": "https://w3id.org/security#proof",
"@type": "@id",
"@container": "@graph",
},
"X25519KeyAgreementKeyEIP5630": map[string]interface{}{
"@id": "https://w3id.org/security#X25519KeyAgreementKeyEIP5630",
"@context": map[string]interface{}{
"@protected": true,
"id": "@id",
"type": "@type",
"controller": map[string]interface{}{
"@id": "https://w3id.org/security#controller",
"@type": "@id",
},
"revoked": map[string]interface{}{
"@id": "https://w3id.org/security#revoked",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
},
"publicKeyMultibase": map[string]interface{}{
"@id": "https://w3id.org/security#publicKeyMultibase",
"@type": "https://w3id.org/security#multibase",
},
"blockchainAccountId": map[string]interface{}{
"@id": "https://w3c.github.io/vc-data-integrity/vocab/security/vocabulary.jsonld#blockchainAccountId",
"@type": "https://w3id.org/security#blockchainAccountId",
},
},
},
},
}
13 changes: 0 additions & 13 deletions x/ssi/ld-context/contexts/HypersignCredentialStatus2023.jsonld

This file was deleted.

0 comments on commit e818923

Please sign in to comment.