10.4.1.5 Get DID Document
Function name | getDidDocument(String did) | |||
Description | The information in the DID Document is a record and description of the DID, and anyone can query the corresponding DID Document from the chain by the DID. It can be used to verify the DID and obtain the DID public key. | |||
Request Parameters | ||||
No. | Parameter | Type | Required | Description |
---|---|---|---|---|
1 | did | String | Y | DID |
Response Parameters | ||||
No. | Parameter | Type | Required | Description |
1 | didDocument | DidDocument | Y | DID Document |
DidDocument | ||||
No. | Parameter | Type | Required | Description |
1 | did | String | Y | DID |
2 | version | String | Y | Version |
3 | created | String | Y | Created date |
4 | updated | String | Y | Updated date |
5 | authentication | PublicKey | Y | Primary public key |
6 | recovery | PublicKey | Y | Recovery public key |
7 | proof | Proof | Y | Signature |
PublicKey | ||||
1 | type | String | Y | Algorithm type |
2 | publicKey | String | Y | Public key |
Proof | ||||
1 | type | String | Y | Algorithm type |
2 | creator | String | Y | DID |
3 | signatureValue | String | Y | Signature value |