10.4.1.2 Create DID


Function name createDid(Boolean isStorageOnChain)
Description Call this function to create a DID. isStorageOnChain indicates whether the DID Document is stored on-chain or not.
Request Parameters
No. Parameter Type Required Description
1 isStorageOnChain Boolean Y On-chain marker. true means DID Document is stored on-chain; false means DID Document is not stored on-chain.
Response Parameters
No. Parameter Type Required Description
1 DidDataWrapper Y
DidDataWrapper
No. Parameter Type Required Description
1 did String Y DID
2 authPublicKey KeyPair Y Primary public/private key information
3 recyPublicKey KeyPair Y Recovery public/private key information
4 document DocumentInfo N DID Document
5 didSign String Y DID signature
6 address String Y Account address
DocumentInfo
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
KeyPair
No. Parameter Type Required Description
1 privateKey String Y Private key
2 publicKey String Y Public key
3 type String Y Algorithm type
PublicKe
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
© 2019-2024 Red Date (Hong Kong) Technology Limited. all right reserved,powered by GitbookFile Modify: 2024-10-18 15:00:20

results matching ""

    No results matching ""

    results matching ""

      No results matching ""