# \[Archive\] Converting private key into mnemonic phrase using tkey js SDK

**URL:** <https://builder.metamask.io/t/archive-converting-private-key-into-mnemonic-phrase-using-tkey-js-sdk/1728>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [October 9, 2023, 10:28am UTC](https://builder.metamask.io/t/archive-converting-private-key-into-mnemonic-phrase-using-tkey-js-sdk/1728 "2023-10-09T10:28:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![g1o.shara](https://avatars.discourse-cdn.com/v4/letter/g/eada6e/32.png) [@g1o.shara](https://builder.metamask.io/u/g1o.shara)\
**Post date:** [October 9, 2023, 10:28am UTC](https://builder.metamask.io/t/archive-converting-private-key-into-mnemonic-phrase-using-tkey-js-sdk/1728/1 "2023-10-09T10:28:48Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **g1o.shara** on 10/9/2023.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

@shahbaz Is there a way of converting private key into mnemonic phrase?

---

<div class="post-metadata">

**Author:** ![maharshi](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/maharshi/32/1525_2.png) [@maharshi](https://builder.metamask.io/u/maharshi)\
**Post date:** [October 9, 2023, 10:44am UTC](https://builder.metamask.io/t/archive-converting-private-key-into-mnemonic-phrase-using-tkey-js-sdk/1728/2 "2023-10-09T10:44:01Z")

</div>

No, a mnemonic is generated using an hd wallet - a hierarchical deterministic wallet. Private keys are “children” of this mnemonic and there can be millions of them, but there’s no way to go back to the parent having only a child private key.

---

<div class="post-metadata">

**Author:** ![g1o.shara](https://avatars.discourse-cdn.com/v4/letter/g/eada6e/32.png) [@g1o.shara](https://builder.metamask.io/u/g1o.shara)\
**Post date:** [October 9, 2023, 1:52pm UTC](https://builder.metamask.io/t/archive-converting-private-key-into-mnemonic-phrase-using-tkey-js-sdk/1728/3 "2023-10-09T13:52:52Z")

</div>

Thanks for the clarification. Can’t I request mnenomic if I connected to the web3auth like this:

```auto
const provider = await web3auth.connect({
      verifier: "<verifier_name>",
      verifierId: "<user_id>",
      idToken: "<token>",
    });

```

For instance I can get private key using the provider:

```auto
const ethPrivateKey = await provider!.request({
      method: "eth_private_key",
    });

```

I there a way for me to get mnemonic phrase using provider that is returned from web3auth.connect?

---

<div class="post-metadata">

**Author:** ![g1o.shara](https://avatars.discourse-cdn.com/v4/letter/g/eada6e/32.png) [@g1o.shara](https://builder.metamask.io/u/g1o.shara)\
**Post date:** [October 10, 2023, 9:01am UTC](https://builder.metamask.io/t/archive-converting-private-key-into-mnemonic-phrase-using-tkey-js-sdk/1728/4 "2023-10-10T09:01:21Z")

</div>

@maharshi  
Is there something like:

```auto
const ethMnemonicPhrase = await provider!.request({
      method: "eth_mnemonic_phrase",
    });

```

---

<div class="post-metadata">

**Author:** ![g1o.shara](https://avatars.discourse-cdn.com/v4/letter/g/eada6e/32.png) [@g1o.shara](https://builder.metamask.io/u/g1o.shara)\
**Post date:** [October 12, 2023, 9:13am UTC](https://builder.metamask.io/t/archive-converting-private-key-into-mnemonic-phrase-using-tkey-js-sdk/1728/5 "2023-10-12T09:13:14Z")

</div>

@shahbaz Hey can you please help me with the question?

---

<div class="post-metadata">

**Author:** ![pepper](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@pepper](https://builder.metamask.io/u/pepper)\
**Post date:** [October 17, 2023, 10:59am UTC](https://builder.metamask.io/t/archive-converting-private-key-into-mnemonic-phrase-using-tkey-js-sdk/1728/6 "2023-10-17T10:59:07Z")

</div>

Hi @g1o.shara  
As Maharshi answered, the account won’t be deterministic.  
Basically it’ll be using the private key as entropy to create a new seed phrase,  
But can’t convert the same private key to mnemonic. The account will be changed.

---

<div class="post-metadata">

**Author:** ![g1o.shara](https://avatars.discourse-cdn.com/v4/letter/g/eada6e/32.png) [@g1o.shara](https://builder.metamask.io/u/g1o.shara)\
**Post date:** [October 19, 2023, 10:21am UTC](https://builder.metamask.io/t/archive-converting-private-key-into-mnemonic-phrase-using-tkey-js-sdk/1728/7 "2023-10-19T10:21:49Z")

</div>

So, there is no way to somehow create/get mnemonic phrase before connecting/creating the wallet?
