Skip to content

Commit

Permalink
add art method (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtracID authored Aug 10, 2022
1 parent 290ea42 commit 117ff27
Show file tree
Hide file tree
Showing 9 changed files with 171 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module.exports = {
require('../implementations/did-ssb.json'),
require('../implementations/did-algo.json'),
require('../implementations/did-cheqd.json'),
require('../implementations/did-art.json'),
...brokenFixtures
]
};
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module.exports = {
require('../implementations/did-ssb.json'),
require('../implementations/did-algo.json'),
require('../implementations/did-cheqd.json'),
require('../implementations/did-art.json'),
...brokenFixtures
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ module.exports = {
require('../implementations/did-ssb.json'),
require('../implementations/did-algo.json'),
require('../implementations/did-cheqd.json'),
require('../implementations/did-art.json'),
...brokenFixtures
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module.exports = {
require('../implementations/did-ssb.json'),
require('../implementations/did-algo.json'),
require('../implementations/did-cheqd.json'),
require('../implementations/did-art.json'),
...brokenFixtures
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module.exports = {
require('../implementations/universal-resolver-did-web.json'),
require('../implementations/universal-resolver-did-work.json'),
require('../implementations/universal-resolver-resolver-tests.json'),
require('../implementations/universal-resolver-did-art.json'),
require('../implementations/resolver-did-orb.json'),
require('../implementations/resolver-nft-3box-labs.json'),
require('../implementations/resolver-example-didwg.json'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
require('../implementations/dereferencer-spruce-webkey.json'),
require('../implementations/dereferencer-ssb.json'),
require('../implementations/dereferencer-cheqd.json'),
require('../implementations/dereferencer-art.json'),
...brokenFixtures
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"didMethod": "did:art",
"implementation": "ArtracID DID Method",
"implementer": "ART GROUP LIMITED ARTRACX.COM",
"expectedOutcomes": {
"defaultOutcome": [ 0, 1 ]
},
"executions": [
{
"function": "dereference",
"input": {
"didUrl": "did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c",
"dereferenceOptions": {
"accept": "application/did+json"
}
},
"output": {
"dereferencingMetadata": {
"contentType": "application/did+ld+json"
},
"contentStream": "{ \"@context\": [ \"https://www.w3.org/ns/did/v1\", \"https://w3c-ccg.github.io/ld-cryptosuite-registry/#ecdsasecp256k1signature2019\" ], \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\", \"verificationMethod\": [ { \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\", \"type\": \"EcdsaSecp256k1VerificationKey2019\", \"controller\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\", \"publicKeyMultibase\": \"fef2823c7d237bd094d633a1765d5896b0f442481a997da2f83d7a928ddce7e65\", \"blockchainAccountId\":\"enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\" } ], \"authentication\": [ \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\" ], \"assertionMethod\": [ \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\" ], \"service\": [ { \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#service\", \"type\": \"LinkedDomains\", \"serviceEndpoint\": \"https://did.artrac.id\" } ] }",
"contentMetadata": {}
}
},
{
"function": "dereference",
"input": {
"didUrl": "did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey",
"dereferenceOptions": {
"accept": "application/did+json"
}
},
"output": {
"dereferencingMetadata": {
"contentType": "application/did+json"
},
"contentStream": "{ \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\", \"type\": \"EcdsaSecp256k1VerificationKey2019\", \"controller\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\", \"publicKeyMultibase\": \"fef2823c7d237bd094d633a1765d5896b0f442481a997da2f83d7a928ddce7e65\", \"blockchainAccountId\":\"enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\" }",
"contentMetadata": {}
}
}
]
}

75 changes: 75 additions & 0 deletions packages/did-core-test-server/suites/implementations/did-art.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"didMethod": "did:art",
"implementation": "ArtracID DID Method",
"implementer": "ART GROUP LIMITED ARTRACX.COM",
"supportedContentTypes": [
"application/did+json",
"application/did+ld+json"
],
"dids": [
"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c"
],
"didParameters": {
"versionId": "did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c?versionId=0.1.0",
"versionTime": "did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c?versionTime=2022-04-01T00:00:00Z"
},
"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c": {
"didDocumentDataModel": {
"properties": {
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3c-ccg.github.io/ld-cryptosuite-registry/#ecdsasecp256k1signature2019"
],
"id": "did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c",
"verificationMethod": [
{
"id": "did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey",
"type": "EcdsaSecp256k1VerificationKey2019",
"controller": "did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c",
"publicKeyMultibase": "fef2823c7d237bd094d633a1765d5896b0f442481a997da2f83d7a928ddce7e65",
"blockchainAccountId":"enq:f045c5c7d50145b65ca2702c38b4e2d46658293c"
}
],
"authentication": [
"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey"
],
"assertionMethod": [
"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey"
],
"service": [
{
"id": "did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#service",
"type": "LinkedDomains",
"serviceEndpoint": "https://did.artrac.id"
}
]
}
},
"application/did+json": {
"didDocumentDataModel": {
"representationSpecificEntries": {}
},
"representation": "{ \"@context\": [ \"https://www.w3.org/ns/did/v1\", \"https://w3c-ccg.github.io/ld-cryptosuite-registry/#ecdsasecp256k1signature2019\" ], \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\", \"verificationMethod\": [ { \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\", \"type\": \"EcdsaSecp256k1VerificationKey2019\", \"controller\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\", \"publicKeyMultibase\": \"fef2823c7d237bd094d633a1765d5896b0f442481a997da2f83d7a928ddce7e65\", \"blockchainAccountId\":\"enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\" } ], \"authentication\": [ \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\" ], \"assertionMethod\": [ \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\" ], \"service\": [ { \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#service\", \"type\": \"LinkedDomains\", \"serviceEndpoint\": \"https://did.artrac.id\" } ] }",
"didDocumentMetadata": {},
"didResolutionMetadata": {
"contentType": "application/did+json"
}
},
"application/did+ld+json": {
"didDocumentDataModel": {
"representationSpecificEntries": {
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3c-ccg.github.io/ld-cryptosuite-registry/#ecdsasecp256k1signature2019"
]
}
},
"representation": "{ \"@context\": [ \"https://www.w3.org/ns/did/v1\", \"https://w3c-ccg.github.io/ld-cryptosuite-registry/#ecdsasecp256k1signature2019\" ], \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\", \"verificationMethod\": [ { \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\", \"type\": \"EcdsaSecp256k1VerificationKey2019\", \"controller\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\", \"publicKeyMultibase\": \"fef2823c7d237bd094d633a1765d5896b0f442481a997da2f83d7a928ddce7e65\", \"blockchainAccountId\":\"enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\" } ], \"authentication\": [ \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\" ], \"assertionMethod\": [ \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\" ], \"service\": [ { \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#service\", \"type\": \"LinkedDomains\", \"serviceEndpoint\": \"https://did.artrac.id\" } ] }",
"didDocumentMetadata": {},
"didResolutionMetadata": {
"contentType": "application/did+ld+json"
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"didMethod": "did:art",
"implementation": "ArtracID DID Method",
"implementer": "ART GROUP LIMITED ARTRACX.COM",
"expectedOutcomes": {
"defaultOutcomes": [
0
],
"invalidDidErrorOutcome": [],
"notFoundErrorOutcome": [],
"representationNotSupportedErrorOutcome": [],
"deactivatedOutcome": []
},
"executions": [
{
"function": "resolveRepresentation",
"input": {
"did": "did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c",
"resolutionOptions": {
"accept": "application/json"
}
},
"output": {
"didResolutionMetadata": {
"contentType": "application/did+ld+json",
"didUrl": {
"did": {
"method": "art",
"methodSpecificId": "f045c5c7d50145b65ca2702c38b4e2d46658293c"
},
"didUrlString": "f045c5c7d50145b65ca2702c38b4e2d46658293c",
"fragment": null,
"parameters": {},
"path": "",
"query": null
},
"driverUrl": "https://did.artrac.id/$1",
"duration": 5379,
"identifier": "f045c5c7d50145b65ca2702c38b4e2d46658293c"
},
"didDocumentStream": "{ \"@context\": [ \"https://www.w3.org/ns/did/v1\", \"https://w3c-ccg.github.io/ld-cryptosuite-registry/#ecdsasecp256k1signature2019\" ], \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\", \"verificationMethod\": [ { \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\", \"type\": \"EcdsaSecp256k1VerificationKey2019\", \"controller\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\", \"publicKeyMultibase\": \"fef2823c7d237bd094d633a1765d5896b0f442481a997da2f83d7a928ddce7e65\", \"blockchainAccountId\":\"enq:f045c5c7d50145b65ca2702c38b4e2d46658293c\" } ], \"authentication\": [ \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\" ], \"assertionMethod\": [ \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#masterkey\" ], \"service\": [ { \"id\": \"did:art:enq:f045c5c7d50145b65ca2702c38b4e2d46658293c#service\", \"type\": \"LinkedDomains\", \"serviceEndpoint\": \"https://did.artrac.id\" } ] }",
"didDocumentMetadata": {}
}
}
]
}

0 comments on commit 117ff27

Please sign in to comment.