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,370 points
760 views

1 answer to this question.

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
• 17,100 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 6, 2018 in Blockchain by aryya
• 7,460 points
808 views
+1 vote
2 answers
+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,370 points
846 views
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
• 17,100 points
3,601 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP