1

Is it possible to use the same Bip39 mneumonic that generates addresses/keys to generate deterministic key pairs for use outside of cryptocurrency, say in ssh, tls, etc?

I know that bip39 doesn't use RSA and some conversion would need to be done, but I'm just wondering if it's possible.

For the simplest example of what I'm trying to achieve I'd like to convert the derived public/private keys from the table from here: https://iancoleman.io/bip39/ into ssh pairs, as a start.

1
  • I just had the same idea before I stumbled upon your question here. Did you fiddle around with ssh-keygen and found a way to make it work?
    – schlingel
    Jun 23, 2021 at 10:00

1 Answer 1

2

SSH is a generic protocol within which a user can deploy keys from a variety of algorithms, one of which is ECDSA (same as Bitcoin signatures).

The Ledger hardware wallet even has an application for its devices to perform SSH signatures using keys derived from the same seed used for cryptocurrencies.

TLS also has EC available as an algorithm so there might be a way to use your BIP39 seed for this as well.

2
  • right but I can't see (using openssl for example) how to convert the derived pub/priv keys from bip39 to be used in ssh. do you have an example of how to do this? for example, taking a private bip39 key and using openssl to generate the private keys? Jan 3, 2021 at 23:24
  • You can read the manpage for ssh-keygen, which can generate a key pair from a specified key type and input file. You're on your own finding a way to export a bitcoin private key into PEM format so that openssl can import it though.
    – pinhead
    Jan 7, 2021 at 17:52

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.