10.4.1.4 Upload DID Document
| Function name | storeDidDocumentOnChain(DidDocument didDocument) | |||
| Description | Store the DID document on-chain. Firstly to execute the verification, so that you can call this function if you want to store the DID Document on chain. | |||
| Request Parameters | ||||
| No. | Parameter | Type | Required | Description |
|---|---|---|---|---|
| 1 | DidDocument | Y | ||
| 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 | ||||
| No. | Parameter | Type | Required | Description |
| 1 | type | String | Y | Algorithm type |
| 2 | publicKey | String | Y | Public key |
| Proof | ||||
| No. | Parameter | Type | Required | Description |
| 1 | type | String | Y | Algorithm type |
| 2 | creator | String | Y | DID |
| 3 | signatureValue | String | Y | Signature value |
| Response Parameters | ||||
| No. | Parameter | Type | Required | Description |
| 1 | Boolean | Y | Storage result | |