Return a DID Document
GET/:ssiId/ssi/v1/dids/quarkid/:did
Endpoint Description
This endpoint requires the inclusion of a DID to resolve its DID document.
Once resolved, several important elements can be observed within the DID document:
- Verification Methods
In the verificationMethod section, two methods are found. First, there is the method corresponding to BBS keys. These are necessary for the DID to generate verifiable credentials. On the other hand, there is the didcomm method along with its keys for messaging encryption.
- Service
In the Service section, the messaging transport layer can be observed.
Request
Path Parameters
ssiId stringrequired
did stringrequired
Query Parameters
apikey stringrequired
Responses
- 200
Returned DID Document
- application/json
- Schema
- Example (from schema)
Schema
- any
{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3id.org/security/suites/jws-2020/v1",
{
"@vocab": "https://www.w3.org/ns/did#"
}
],
"id": "did:quarkid:zksync:EiCY48D6bMjczREIOGty-URlqhd1P7EWVEstch-uFTT7uw",
"verificationMethod": [
{
"id": "#didcomm",
"controller": "did:quarkid:zksync:EiCY48D6bMjczREIOGty-URlqhd1P7EWVEstch-uFTT7uw",
"type": "X25519KeyAgreementKey2019",
"publicKeyJwk": {
"kty": "EC",
"crv": "Ed25519",
"x": "6jjTd6ImyjlgV82HGcrBcA",
"y": "EndeDOHUZdLtF-21aDwoNg"
}
},
{
"id": "#bbs",
"controller": "did:quarkid:zksync:EiCY48D6bMjczREIOGty-URlqhd1P7EWVEstch-uFTT7uw",
"type": "Bls12381G1Key2020",
"publicKeyJwk": {
"kty": "EC",
"crv": "Bls12381G2Key2020",
"x": "p2qKqpTDLLxLm2GF-kyK2uVu7fLL8kj-DGFVw5i-4tmIwE1GHS-ypTdsef3-9i_U",
"y": "AyjkDYrtD1BrKuOrrxlKWmRrQXL1XHlN2VVLVF8a55MOt_jk2n0QhPhTz5g8N0KF"
}
}
],
"keyAgreement": [
"#didcomm"
],
"assertionMethod": [
"#bbs"
]
}
Loading...