如何使用 fabric node SDK 将现有身份更新到 hyperledger CA

How to update the existing identity into hyperledger CA using fabric node SDK

我正在尝试实现 https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#dynamically-updating-identities

中提到的各种功能

但是当我在 fabric 节点 sdk 身份服务中看到时我感到很困惑 class https://hyperledger.github.io/fabric-sdk-node/release-1.4/IdentityService.html#update__anchor

在这个class中提到了一些函数,比如用于更新身份的update,但是如何实现它没有显示在这个里面。

谁能在 HLF 上完成身份服务方面的工作。

提前致谢。

我发现文档解释得很好。该文档告诉您它正在使用 FabricCAClient (https://hyperledger.github.io/fabric-sdk-node/release-1.4/FabricCAClient.html#newIdentityService__anchor), it describes the function (https://hyperledger.github.io/fabric-sdk-node/release-1.4/IdentityService.html#update__anchor) and the parameters (https://hyperledger.github.io/fabric-sdk-node/release-1.4/global.html#IdentityRequest)。只需将身份更新为注册商,稍后将其注册为最终用户。

一个例子(用create代替update,但几乎一样):https://books.google.es/books?id=UMzaDwAAQBAJ&lpg=PA1&hl=es&pg=PA73#v=onepage&q&f=false