quorum icon indicating copy to clipboard operation
quorum copied to clipboard

Enable privateFor for Public Contracts

Open web3rover opened this issue 9 years ago • 7 comments

Is there a way I can change the source code to enable private transactions for public contracts. I am aware of the outcome. But I need this feature.

web3rover avatar Jul 11 '17 14:07 web3rover

@bas-vk @patrickmn @obscuren can you help on this?

web3rover avatar Jul 11 '17 18:07 web3rover

It's possible, but would require substantial changes.

Can you describe the problem you're trying to solve in more detail either here or to [email protected]? Perhaps we can suggest an alternative that does not require such modifications.

patrickmn avatar Jul 15 '17 02:07 patrickmn

@patrickmn If I deploy a contract as private contract then I am unable to add new members to the contract. It will be only visible to them who are in the privateFor array. So I want to make a contract public and make private transactions to it.

web3rover avatar Jul 16 '17 04:07 web3rover

The ability to track contract participants as well as add new ones when desired is something we're currently working on:

  • Easier way to keep track of privateFor arrays for a contract https://github.com/jpmorganchase/quorum/issues/110
  • Ability to reveal a contract to/add a participant to a contract post-creation https://github.com/jpmorganchase/quorum/issues/142

Once this feature lands, that would be the best way to address your problem, as far as I can tell.

May I suggest creating a new private contract with the new set of participants for now? Old contracts could have a field indicating the address of the contract that replaces them.

patrickmn avatar Jul 16 '17 06:07 patrickmn

@patrickmn Thanks for the suggestion. Looking forward for the upcoming features. 👍

web3rover avatar Jul 16 '17 06:07 web3rover

@patrickmn May I know the dev status for this issue. Any version is rolled out?

jiten-balla avatar Jun 04 '19 04:06 jiten-balla

@jiten-balla this issue is currently closed without an implementation we intend to provide since the functionality is a bit ambiguous. Please open a new ticket if you need more details.

fixanoid avatar Jun 04 '19 17:06 fixanoid