我们可以在执行期间在智能合约中找到背书者的详细信息(Hyperledger Fabric)吗?
Check out the below link, by using this library you access MSPid, fabric-ca certificate details inside the chaincode
https://github.com/hyperledger/fabric-chaincode-go/blob/main/pkg/cid/README.md
https://hyperledger-fabric.readthedocs.io/en/release-2.2/endorsement-policies.html
If you use the internal docker build mechanism then the only thing available to chaincode is CORE_PEER_LOCALMSPID
I've not tried but if you use an external builder you could add more information yourself during the run part see https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_launcher.html?highlight=builder#external-builder-and-launcher-api
and if you use chaincode as a service then it may be possible for you to bake something into the image you use in different orgs
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.