I would like to use the transfer of a stellar account as a means of transferring possession of a private piece of data
the flow would be like this:
User A uses their account A's public key to encrypt a piece of data.
User A adds user B as a signer to account A, then sets their own signing weight to 0
User B uses account A to decrypt the piece of data
Will this work?
The question boils down to -- once a new account has full control of a Stellar account, are they able to decrypt things using that account's private key, without simply being given that private key?
You might be wondering why not simply have account A encrypt the data using B's public address so only he can decrypt -- the reason is that transferring wallet ownership and sending money are both Stellar operations and can be binded into one "atomic transaction" -- that way, there is no chance of the data being sent without payment or vice versa.
At least that is my theory/hope.
Any help with this, even just pointing me to the right bunch of documentation to read through, would be greatly appreciated!