14.4.1.2 创建DID

方法名 createDid(Boolean isStorageOnChain)
方法描述 创建DID的方法。isStorageOnChain表示DID Document是否上链。
方法调用参数
序号 参数 类型 必传 参数含义
1 isStorageOnChain Boolean 上链标记。true表示DID Document上链存储;false表示DID Document不上链
方法返回参数
序号 参数 类型 必传 参数含义
1 DidDataWrapper
DidDataWrapper
1 did String DID标识符
2 authKeyInfo KeyPair 主公私钥信息
3 recyKeyInfo KeyPair 备公私钥信息
4 document DocumentInfo DID Document
5 didSign String DID签名
6 address String 账户地址
DocumentInfo
1 did String DID标识符
2 version String 版本号
3 created String 创建时间
4 updated String 更新时间
5 authentication PublicKey 主公钥
6 recovery PublicKey 备公钥
7 proof Proof 签名信息
KeyPair
1 privateKey String 私钥
2 publicKey String 公钥
3 type String 算法类型
PublicKey
1 type String 算法类型
2 publicKey String 公钥
Proof
1 type String 算法类型
2 creator String DID标识符
3 signatureValue String 签名值
Copyright 北京红枣科技有限公司

results matching ""

    No results matching ""

    results matching ""

      No results matching ""