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,640 points
271 views

1 answer to this question.

0 votes

Yes, it is possible. You can look at the following example to know how to do it: https://github.com/jpmorganchase/quorum-examples/tree/master/examples/7nodes
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,050 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
57 views
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
• 17,020 points

edited Aug 10, 2018 by Omkar 464 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,050 points
299 views