Exam4Training

Which of the following transactions is inter-contract communication whose functionality is limited?

A smart contract can call other smart contracts both within the same channel and across different channels .

Which of the following transactions is inter-contract communication whose functionality is limited?
A . Chaincode X calls Getstate in Chaincode Y on the same channel.
B . Chaincode X calls Putstate in Chaincode Y on the same channel.
C . Chaincode X calls Getstate in Chaincode Y on a different channel.
D . Chaincode X calls Putstate in Chaincode Y on a different channel.

Answer: D

Explanation:

In Hyperledger Fabric, inter-contract communication is possible both within the same channel and across different channels. However, the functionality to alter the state (using PutState) of a chaincode on a different channel is restricted. This limitation is due to the security and isolation principles of channels in Hyperledger Fabric, where each channel represents a separate ledger and state. Transactions within a channel can read and write data freely, subject to endorsement policies, but writing data to another channel’s chaincode directly is not permitted. This prevents unauthorized influence on a separate and potentially isolated business process, ensuring that operations within a channel are controlled and secure.

Latest HFCP Dumps Valid Version with 60 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version