Can I make my smart contract private in Quorum?

0 votes
I want to make my smart contract private, like only for a certain number of nodes. Is this possible in Quorum?
Jul 23, 2018 in Blockchain by digger
• 27,620 points

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

Yes, it is possible. You can look at the following example to know how to do it:
In this example, the smart contract is made private only between node1 to node7.
To make it private the script file author used public key passed by private key."sending of a private transaction 
to generate a (private) smart contract (SimpleStorage) sent from node 1 "for" node 7 (denoted by the public key 
passed via privateFor: ["ROAZBWtSacxXQrOe3FGAqJDyJjFePR5ce4TSIzmJ0Bc="] in the sendTransaction call)."

The keys are already generated for the nodes. There are dummy public keys assigned to each node and it can be found
in the  \quorum-examples\examples\7nodes\keys location.

answered Jul 23, 2018 by slayer
• 29,040 points

Related Questions In Blockchain

+1 vote
2 answers

Can I include real world data in a smart contract? If so, how?

You cant access/embed real world data using ...READ MORE

answered Jul 17, 2018 in Blockchain by sapan
0 votes
1 answer
0 votes
1 answer

How can I deploy a HelloWorld contract on my testrpc network?

The problem lies in the command: truffle migrate Your truffle migrate command ...READ MORE

answered Apr 27, 2018 in Blockchain by Perry
• 16,450 points

edited Aug 10, 2018 by Omkar 349 views
0 votes
1 answer
0 votes
2 answers

How do I interact with a smart contract on a private network through web3.js

I found a blog that explains how ...READ MORE

answered Aug 20, 2018 in Blockchain by slayer
• 29,040 points

© 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.