I need to encrypt some string, let's say "Hello world" with several Public Keys and be able to decrypt this hash with any of Private Keys. Could you please tell if it possible and if so, the way to do it.
Thank you.
Stellar Stack Exchange is a question and answer site for developers and users of Stellar and the Stellar Distributed Exchange. It only takes a minute to sign up.
Sign up to join this communityI need to encrypt some string, let's say "Hello world" with several Public Keys and be able to decrypt this hash with any of Private Keys. Could you please tell if it possible and if so, the way to do it.
Thank you.
Try to look at Smair's Secret Sharing scheme with k=1. Though I'm not sure if it's possible to derive a secret from predefined Stellar secret keys.
It's possible quiet in a different way, I have been working on a similar implementation. I'm not sure if this may be useful to you but the way I have implemented is like this,
private(data) pub(data)
private(data)
private(Alice) pub(Alice)
, private(Bob) pub(Bob)
private(data)
with private(Alice
) and than decrypt Data with decrypted private(data)
private(data)
with private(Bob)
and than decrypt Data with decrypted private(data)