How to prevent the smart contract from being modified and deployed in Hyperledger network?

0 votes

I understand that in permissioned networks such as Hyperledger and Corda, some programs such as smart contracts/chaincodes allow us to implement the business logic. And this is deployed on each peer on the network, but how is it verified that the same code is deployed on all peers and is not altered?

Aug 10, 2018 in Blockchain by sabby
• 4,050 points
37 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
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.

each state in a transaction is associated with a given contract. This contract is uniquely identified using a [contract name, hash of the JAR file containing the contract] pair.

If the contract is modified, this will modify the hash of the JAR containing the contract, and thus the contract JAR will no longer be considered valid.
answered Aug 10, 2018 by Perry
• 16,450 points

Related Questions In Blockchain

0 votes
1 answer

How to prevent the smart contract from being modified and deployed in the blockchain network?

To expand on Matthew's answer, each state ...READ MORE

answered Jul 5, 2018 in Blockchain by ariaholic
• 7,320 points
30 views
+1 vote
1 answer
0 votes
1 answer

How to store photos in Hyperledger smart contract?

To do this, you need to represent ...READ MORE

answered Jul 9, 2018 in Blockchain by slayer
• 29,040 points
50 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do I send back ethers to the sender of the tokens in a smart contract?

Whenever a smart contract receives ether via ...READ MORE

answered May 30, 2018 in Blockchain by Perry
• 16,450 points
168 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.