@shahbaz Is there a way of converting private key into mnemonic phrase?
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.
Thanks for the clarification. Can’t I request mnenomic if I connected to the web3auth like this:
const provider = await web3auth.connect({
verifier: "<verifier_name>",
verifierId: "<user_id>",
idToken: "<token>",
});
For instance I can get private key using the provider:
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?
@maharshi
Is there something like:
const ethMnemonicPhrase = await provider!.request({
method: "eth_mnemonic_phrase",
});
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.
So, there is no way to somehow create/get mnemonic phrase before connecting/creating the wallet?