11.2.1.2 Add DID Document to the chain


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 KeyInfo Y Primary public key
6 recovery KeyInfo Y Recovery public key
7 proof Proof Y Signature
KeyInfo
1 publicKey String Y Public key
2 type String Y Algorithm
Proof
1 creator String Y DID involved in the calculation of the Signature value
2 type String Y Algorithm
3 signatureValue String Y Signature value
Interface response parameter
No. Parameter Type Description
1 Boolean Return true if success, return false if failed
© 2019-2021 Red Date (Hong Kong) Technology Limited. all right reserved,powered by GitbookFile Modify: 2021-11-01 00:07:50

results matching ""

    No results matching ""

    results matching ""

      No results matching ""