0 votes
1 view
in Blockchain by (12.2k points)

This question is more to private blockchain frameworks such as Corda, Hyperledger, and others. In all these platforms it is possible to write some programs named chaincode, smart contracts, etc, that allow us to implement the business logic. All of this is deployed in each peer of the blockchain network, but how to avoid and detect that are deployed a different version of the code in some peers?

I'm talking that the final result of the smart contract is the same, so the consensus not is committed, but yes some peers can modify the code that it runs in for any reason.

how we can manage this scenario in private blockchain?

1 Answer

0 votes
by (28.6k points)

Hi, there are some things to keep in mind while working with smart contracts.

Smart contracts can be definitive if they are both signed by a valid digital signature and are deterministic. The presence of a digital signature provides a mechanism to all nodes to allow them to determine whether the contract code has been manipulated. If the smart contract code is deterministic, all nodes that execute the code will arrive at the same final state.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...