Hyperledger Fabric : Register and enroll new peer identity using fabric-ca-client (Javascript)

痞子三分冷 提交于 2020-01-06 04:18:16

问题


In the documentation of fabric-ca there is only CLI description of identities creation,

using the nodejs module "fabric-ca-client" we can register and enroll new user using:

fabric_ca_client.register({enrollmentID: 'user1', affiliation: 'org1.department2', role: ''}, admin_user);
fabric_ca_client.enroll({enrollmentID: 'user1', enrollmentSecret: secret});

but what about peers and order ? I can't find any documentation about that.

来源:https://stackoverflow.com/questions/52890307/hyperledger-fabric-register-and-enroll-new-peer-identity-using-fabric-ca-clien

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!