0

Is there any way i can derive private and public keypairs from a Master Key? The Master Key should be able to decrypt every encryption made with the generated Keypairs.

to explain a bit further i want to save encrypted data on IPFS, which can only be accessed by the creator with its own private key and an admin which should have access to all encrypted data within the system.

I have read about deterministic wallets but i'm not sure if these are capable of what i want and how they work.

1 Answer 1

0

Check Encrypt data using public key The admin should have the master key and the algorithm used to generate the key pairs

5
  • I know how asymmetric crypto works. My question is whether it's possible to derive public/private keys from a "masterkey". And if so, how? Jun 8, 2019 at 13:16
  • yes, it is possible - you just generate the key pairs according to BIP39 for example. Check medium.com/coinmonks/… or medium.com/@harshagoli/…
    – KNK
    Jun 8, 2019 at 14:36
  • i derived a public key from a master key and it seems like i cannot decrypt text with my masterPrivateKey. Do you know why? gist.github.com/mx0c/3e8c0996a1655786f54b37af1ba1bd3c Jun 8, 2019 at 18:49
  • You should use privateKey not masterPrivateKey, but as you know how to get privateKey from the master, it should be enough for the admin
    – KNK
    Jun 8, 2019 at 20:29
  • Unfortunately this is not feasible for my use case. Thank you anyways. Jun 8, 2019 at 21:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.