I have the following problem:
I want to put a document on a ipfs store. So it is accessible via a distributed network.
Now, at first only two persons (Alice & Bob) should have access on the file. So I need to encrypt it and give them a private key. But I don't want that both have the same private key, because when one of both shares the key with someone else, probably the other doesn't want this. If the private key is unique I always know, who has shared the key.
But later it should also be possible to share the document with other persons if both agree. But then also these others should get their own unique private key(s) to decrypt the file.
The following text should describe the scenario:
Alice and Bob have a secret. Both have a different key for decryption of the secret.
Later Cesar gets a copy of the secret from Alice. Alice gives Cesar an additional private key to decrypt the secret. Now we have three private keys for decrypting the secret.
Later Jack gets a copy of the secret from Bob with an additional private key. Again different from the others.
Would something like this be possible in any way?