1 Star 0 Fork 0

徒手千行代码无bug/indy-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
step3.java 901 Bytes
一键复制 编辑 原始数据 按行查看 历史
Daniel Hardman 提交于 2018-03-27 14:25 +08:00 . Improve 'Rotate Key' how-to
System.out.println("\n9. Generating new Verkey of Trust Anchor in the wallet\n");
String newTrustAnchorVerkey = Did.replaceKeysStart(walletHandle, trustAnchorDID, "{}").get();
System.out.println("New Trust Anchor's Verkey: " + newTrustAnchorVerkey);
System.out.println("\n10. Building NYM request to update new verkey to ledger\n");
String nymUpdateRequest = buildNymRequest(trustAnchorDID, trustAnchorDID, newTrustAnchorVerkey, null, "TRUST_ANCHOR").get();
System.out.println("NYM request:\n" + nymUpdateRequest);
System.out.println("\n11. Sending NYM request to the ledger\n");
String nymUpdateResponse = signAndSubmitRequest(pool, walletHandle, trustAnchorDID, nymUpdateRequest).get();
System.out.println("NYM response:\n" + nymUpdateRequest);
System.out.println("\n12. Applying new Trust Anchor's Verkey in wallet\n");
Did.replaceKeysApply(walletHandle, trustAnchorDID);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kevin0616/indy-sdk.git
git@gitee.com:kevin0616/indy-sdk.git
kevin0616
indy-sdk
indy-sdk
1.6.x

搜索帮助