简体   繁体   中英

Can we find the endorser details in smart contract during execution(Hyperledger Fabric)?

我们可以在执行期间在智能合约中找到背书者的详细信息(Hyperledger Fabric)吗?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM