14.4.1.5 获取DID Document
方法名 | getDidDocument(String did) |
方法描述 | DID Document内的信息是对DID身份的记录和说明,所以任何人都可通过DID标识符查询链上对应的DID Document。可用于验证DID身份、获取DID公钥。 |
方法调用参数 | ||||
序号 | 参数 | 类型 | 必传 | 参数含义 |
---|---|---|---|---|
1 | did | String | 是 | DID标识符 |
方法返回参数 | ||||
序号 | 参数 | 类型 | 必传 | 参数含义 |
---|---|---|---|---|
1 | didDocument | DidDocument | 是 | DID Document |
DidDocument | ||||
1 | did | String | 是 | DID标识 |
2 | version | String | 是 | 版本号 |
3 | created | String | 是 | 创建时间 |
4 | updated | String | 是 | 更新时间 |
5 | authentication | PublicKey | 是 | 主公钥 |
6 | recovery | PublicKey | 是 | 备公钥 |
7 | proof | Proof | 是 | 签名信息 |
PublicKey | ||||
1 | type | String | 是 | 算法类型 |
2 | publicKey | String | 是 | 公钥 |
Proof | ||||
1 | type | String | 是 | 算法类型 |
2 | creator | String | 是 | DID标识符 |
3 | signatureValue | String | 是 | 签名值 |