Interface Address |
/did/putDoc |
Description |
The DID Document is stored in the chain. The verification will be executed internally, so if you want to upload the DID Document to the chain, you can directly call this interface. |
Interface request parameter |
No. |
Parameter |
Type |
Required |
Description |
1 |
|
DidDocSotreReq |
Y |
Wrapper class |
DidDocSotreReq |
1 |
didDoc |
Document |
Y |
DID Document |
Document |
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 |
publicKey |
String |
Y |
Public key |
2 |
type |
String |
Y |
Algorithm type |
Proof |
1 |
creator |
String |
Y |
DID involved in the calculation of the Signature value |
2 |
type |
String |
Y |
Algorithm type |
3 |
signatureValue |
String |
Y |
Signature value |
Interface response parameter |
No. |
Parameter |
Type |
Description |
1 |
|
Boolean |
Return true if success, return false if failed |