I build a permissioned network using Quorum,

I have a peerA which has a private smart contract, another peerB that cannot invoke functions of the smart contract as it is private

So, can peerB send transaction to peerA to request it to invoke a function from his private contract.


Not through a txn on the chain. If a private contract is defined between party A and B, and C needs to execute a call then this would have to be handled with an off chain call in some way, for example through an API offered by A or B.

  • Thx fixaoind for the response
    – A.Gh
    Jan 15 '19 at 7:44
  • Can I define another contract X for the peer A that is not private and that contains a function that calls the function in his private contract Y? Then, B can invoke the function in contract X in order to invoke the function in contract Y. It that possible and what could be the pros and the cons of such solution ?
    – A.Gh
    Jan 17 '19 at 10:38
  • Hi, at the moment, the state model only permits reading from public contracts in a private contract. Public contracts cannot access contents of the private state at all.
    – fixanoid
    Jan 18 '19 at 3:13
  • Hi fixanoid, many thx for your help, just I want to be sure about one thing. This is even if the private and the public contract are deployed by the same node? In fact here github.com/jpmorganchase/quorum/issues/357 I found that it is possible: "On node 1 i can properly add SimpleStorage-contract to StorageContainer and also i can get private value 45 from it. On node 7 or 4 i get value 0. So all works properly."
    – A.Gh
    Jan 18 '19 at 11:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.