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
• 26,740 points
1,454 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,350 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 18, 2018 in Blockchain by sapan
893 views
0 votes
1 answer
0 votes
0 answers
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,100 points

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

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,237 views
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,350 points
3,677 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