quorum icon indicating copy to clipboard operation
quorum copied to clipboard

Private Transaction from solidity code ?

Open jaguarg opened this issue 9 years ago • 2 comments

Hello,

I have got a private contract that need to interact with another private contract (from within the code) Is this operation going to be seen as a private transaction ?

How does Quorum handle this with regards to private / public transactions ?

Thank you

jaguarg avatar Feb 21 '17 13:02 jaguarg

This should be possible as long as the transactor has both contracts in it's private state:

Consider all contracts private.

S -> [deploy] -> A
S -> [deploy] -> B

S -> [transact] -> A -> B

Or

S -> [deploy] -> A
S -> [transact] -> A -> [deploy] -> B

S -> [transact] -> A -> B

Which isn't possible if two contracts are mutually excluded. Let's say S_a and S_b, being transactors, but not part of the same group (i.e. they can't decrypt each others transaction data):

S_a -> [deploy] -> A
S_b -> [deploy] -> B

S_a -> [transact] -> A -> B

That's simply not possible as B was created by S_b and S_a was not able to decrypt the payload which deployed B.

obscuren avatar Mar 15 '17 16:03 obscuren

@jaguarg happy for this to be closed?

tylobban avatar Apr 12 '17 10:04 tylobban