首页 文章

结构CA中的角色与认可政策中的角色有何不同?

提问于
浏览
0

当我使用Hyperledger Fabric时,我可以确认Fabric CA和Endorsement Policy中的角色 . Fabric CA中的角色

fabric-ca-client register -d --id.name admin2 --id.affiliation org1.department1 --id.attrs'“hf.Registrar.Roles = peer,user”,hf.Revoker = true'

认可政策的作用

peer chaincode deploy -C testchainid -n mycc -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 -c'{“Args”:[“init”,“a”,“100”,“b “,”200“]}'-P”AND('Org1.member','Org2.member')“

  • 有什么区别?

1 回答

  • 0

    hf.Registrar.Roles 确定您可以注册的身份 . 在这种情况下,您可以使用admin2注册对等方或用户 .

    认可政策决定了调用需要哪种认可 . 使用 -P " AND ('Org1.member', 'Org2.member')" ,您需要得到两个组织的认可 .

相关问题