How can I get private key from .skey and .vkey?

Hi, everybody!
I am going to uninstall Cardano Node and to gather all ADAs on Node wallet.
But now I have only .skey and .vkey.
And I want private key by using .skey and .vkey.
Let me know how to do this.
Thanks for your attention.
Regards

I think you are talking about generating an address key pair that’s consistent with a wallet mnemonic phrase? :thinking: @HeptaSean / other moderators or @Terminada will correct me if I’m wrong, but here are what I believe to be the latest & best instructions on how to do that:

3 Likes

So, getting private key of Cardano Node wallet is possible?

You need to be more precise with what you mean.

What is “Cardano Node wallet”? Do you mean that you are running a cardano-node and are controlling it directly with cardano-cli on the command line? That is what @COSDpool answered correctly.

What do you mean by “getting private key”? If you are using cardano-cli, the private key is in the .skey file.

If you mean a seed phrase: No, that is not possible from an .skey file. The key files generated by cardano-cli address key-gen are single key pairs. They are not derived from a seed phrase but totally random and it is not possible to get back to a seed phrase that does not exist.

@COSDpool already linked you an article that explains how to go the other way: Generate a seed phrase (or even use an existing one) and then use cardano-address to derive keys and use cardano-cli key convert-cardano-address-key to get the key files for using them with cardano-cli.

1 Like

So, you mean, we only access to Node wallet by this keypair, not using private key or seed phrase?

The key pair, the files contain the private key. What else do you want? What else do you think a private key is?

As you can see this image, is it actually possible to access with these keys.
In fact, I want to gather all ADA on Node wallet.
Plz help me more detail.

This is daedalus wallet

My real problem is to check balance of ADA and gather all ADAs from Node Wallet(Daedalus) by using .skey and .vkey
Plz help me

Still don’t know what you mean by “Node Wallet”. There is no software with exactly that name.

And what do you want to do?

Do you have .skey and .vkey files that you created on the command line and want to import into Daedalus? That is simply not possible. Period.

Or do you have a Daedalus wallet that you now want to use directly on the command line? That is possible with deriving the .skey and .vkey files from the seed phrase as it is shown in the article above in the very first answer.

Node wallet mean Daedalus wallet.

As indicated earlier, please avoid terms like ‘node wallet’, they dont mean anything.

What you operate via Daedalus is a HD-Wallet (that may contain multiple accounts and addresses), while the skey/vkey that you refer to are keys corresponding to a single address - typically you’d have generated them using cardano-cli. You can NOT import a CLI key into HD-Wallet, however - if you wanted to use your Daedalus wallet’s mnemonics, you could derive keys for specific address (which is what @COSDpool referred to in his first reply).

A summarised view below to help you visualize, the key you’re referring to is red box below, while what Daedalus works with is green box at the top. You can go (derive) from top to bottom, but not bottom to top:

You can read more about wallet formation here

If you want to combine your funds together, you may send the funds to a wallet that you control via HD-Wallet (these can still be used for pool operations by registering additional owner, but that goes beyond the scope of this thread).

4 Likes

Oh, yes.
That is very useful for me.
Then, I have payment skey and vkey, staking skey and vkey.
With these keys, can I control Daedalus wallet in Node?

This has been answered many times in this thread:

1 Like

Yeah. You approach is pretty helpful for me.
So, I have installed Cardano Node on my VPS.
After that, what have to do for me?

To do to achieve what exactly?

Your questions are really confusing. And it really doesn’t help that they are always only one sentence.

What do you have? What do you want to do why?