Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.exports = {
require('../implementations/did-knox.json'),
require('../implementations/did-webvh-dif-py.json'),
require('../implementations/did-webvh-dif-ts.json'),
require('../implementations/did-mdip.json'),
...brokenFixtures
]
};
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.exports = {
require('../implementations/did-knox.json'),
require('../implementations/did-webvh-dif-py.json'),
require('../implementations/did-webvh-dif-ts.json'),
require('../implementations/did-mdip.json'),
...brokenFixtures
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ module.exports = {
require('../implementations/did-knox.json'),
require('../implementations/did-webvh-dif-py.json'),
require('../implementations/did-webvh-dif-ts.json'),
require('../implementations/did-mdip.json'),
...brokenFixtures
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
require('../implementations/universal-resolver-did-work.json'),
require('../implementations/universal-resolver-resolver-tests.json'),
require('../implementations/universal-resolver-did-art.json'),
require('../implementations/universal-resolver-did-rm.json'),
require('../implementations/universal-resolver-did-rm.json'),
require('../implementations/universal-resolver-did-knox.json'),
require('../implementations/universal-resolver-did-webvh.json'),
require('../implementations/resolver-did-orb.json'),
Expand All @@ -62,6 +62,7 @@ module.exports = {
require('../implementations/resolver-ssb.json'),
require('../implementations/resolver-did-cheqd.json'),
require('../implementations/resolver-knox.json'),
require('../implementations/resolver-did-mdip.json'),
...brokenFixtures
],
};
75 changes: 75 additions & 0 deletions packages/did-core-test-server/suites/implementations/did-mdip.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"didMethod": "did:mdip",
"implementation": "MDIP DID Method",
"implementer": "Self ID",
"supportedContentTypes": [
"application/did+json",
"application/did+ld+json"
],
"dids": [
"did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb"
],
"didParameters": {
"atVersion": "did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb?atVersion=1",
"atTime": "did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb?atTime=2025-11-24T20:36:52Z"
},
"did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb": {
"didDocumentDataModel": {
"properties": {
"id": "did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb",
"verificationMethod": [
{
"id": "#key-1",
"controller": "did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb",
"type": "EcdsaSecp256k1VerificationKey2019",
"publicKeyJwk": {
"kty": "EC",
"crv": "secp256k1",
"x": "rRYs-Obi7HSuk7Jwns8mbW96Yb2m97ORQ4PqzRkFLAc",
"y": "gWAYGcry2GrHRvaAdZLUeXuTxikb_g0v0I_gnqD8IL4"
}
}
],
"authentication": [
"#key-1"
]
}
},
"application/did+json": {
"didDocumentDataModel": {
"representationSpecificEntries": {}
},
"representation": "{\"id\":\"did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb\",\"verificationMethod\":[{\"id\":\"#key-1\",\"controller\":\"did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"publicKeyJwk\":{\"kty\":\"EC\",\"crv\":\"secp256k1\",\"x\":\"rRYs-Obi7HSuk7Jwns8mbW96Yb2m97ORQ4PqzRkFLAc\",\"y\":\"gWAYGcry2GrHRvaAdZLUeXuTxikb_g0v0I_gnqD8IL4\"}}],\"authentication\":[\"#key-1\"]}",
"didDocumentMetadata": {
"created": "2025-11-24T20:36:52Z",
"versionId": "z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb",
"version": "1",
"confirmed": true,
"isOwned": true
},
"didResolutionMetadata": {
"contentType": "application/did+json"
}
},
"application/did+ld+json": {
"didDocumentDataModel": {
"representationSpecificEntries": {
"@context": [
"https://www.w3.org/ns/did/v1"
]
}
},
"representation": "{\"@context\":[\"https://www.w3.org/ns/did/v1\"],\"id\":\"did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb\",\"verificationMethod\":[{\"id\":\"#key-1\",\"controller\":\"did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"publicKeyJwk\":{\"kty\":\"EC\",\"crv\":\"secp256k1\",\"x\":\"rRYs-Obi7HSuk7Jwns8mbW96Yb2m97ORQ4PqzRkFLAc\",\"y\":\"gWAYGcry2GrHRvaAdZLUeXuTxikb_g0v0I_gnqD8IL4\"}}],\"authentication\":[\"#key-1\"]}",
"didDocumentMetadata": {
"created": "2025-11-24T20:36:52Z",
"versionId": "z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb",
"version": "1",
"confirmed": true,
"isOwned": true
},
"didResolutionMetadata": {
"contentType": "application/did+ld+json"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"didMethod": "did:mdip",
"implementation": "DID MDIP Test Suite",
"implementer": "Self ID",
"expectedOutcomes": {
"defaultOutcome": [
0,
2
],
"invalidDidErrorOutcome": [],
"notFoundErrorOutcome": [],
"representationNotSupportedErrorOutcome": [],
"deactivatedOutcome": [
1
]
},
"executions": [
{
"function": "resolve",
"input": {
"did": "did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb",
"resolutionOptions": {}
},
"output": {
"@context": "https://w3id.org/did-resolution/v1",
"didResolutionMetadata": {},
"didDocument": {
"@context": [
"https://www.w3.org/ns/did/v1"
],
"id": "did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb",
"verificationMethod": [
{
"id": "#key-1",
"controller": "did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb",
"type": "EcdsaSecp256k1VerificationKey2019",
"publicKeyJwk": {
"kty": "EC",
"crv": "secp256k1",
"x": "rRYs-Obi7HSuk7Jwns8mbW96Yb2m97ORQ4PqzRkFLAc",
"y": "gWAYGcry2GrHRvaAdZLUeXuTxikb_g0v0I_gnqD8IL4"
}
}
],
"authentication": [
"#key-1"
]
},
"didDocumentMetadata": {
"created": "2025-11-24T20:36:52Z",
"versionId": "z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb",
"version": 1,
"confirmed": true,
"isOwned": true
},
"didDocumentData": {},
"mdip": {
"version": 1,
"type": "agent",
"registry": "hyperswarm"
}
}
},
{
"function": "resolve",
"input": {
"did": "did:mdip:z3v8AuahkSHcnQsmZ7hExbAXnDCXFQmgy4eM7MYRxYzJzRSQXRo",
"resolutionOptions": {}
},
"output": {
"@context": "https://w3id.org/did-resolution/v1",
"didResolutionMetadata": {},
"didDocument": {
"id": "did:mdip:z3v8AuahkSHcnQsmZ7hExbAXnDCXFQmgy4eM7MYRxYzJzRSQXRo"
},
"didDocumentMetadata": {
"deactivated": true,
"created": "2025-11-24T20:39:44Z",
"deleted": "2025-11-24T20:39:57Z",
"versionId": "z3v8Auae2mC5d2moXWVcNRQhKgK34K8NbFLFwX5anf6qdRkbsFX",
"version": 2,
"confirmed": false,
"isOwned": true
},
"didDocumentData": {},
"mdip": {
"version": 1,
"type": "asset",
"registry": "hyperswarm"
}
}
},
{
"function": "resolveRepresentation",
"input": {
"did": "did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb",
"resolutionOptions": {
"accept": "application/did+json"
}
},
"output": {
"didResolutionMetadata": {
"contentType": "application/did+json"
},
"didDocumentStream": "{\"id\":\"did:mdip:z3v8AuacfyAXsREoDzbCMvvdjSpwegxkZdDHhhFTrvNaFvE5dHb\",\"verificationMethod\":[],\"service\":[]}",
"didDocumentMetadata": {}
}
}
]
}