0

I am trying to create a private key which is valid and can be used for production work.

What tool should I use to create a Valid Private key on my system using Terminal/CLI?

1 Answer 1

2

I like to use cast to quickly interact with networks on the Terminal. I think you can refer to the cast docs on how to create a new private key pair.

For your specific case, I think cast wallet new will do the job. Please refer to the example output I've tested on my Terminal.

$ cast wallet new
Successfully created new keypair.
Address:     <wallet_address>
Private key: <corresponding_private_key>

Edit: Thought more about the question, and it seems like there are more interpretations to Private Key than just the one for a EOA. If you were intending to ask something about creating Public/Private Key Pairs to sign/verify things, there is also a Linux built-in command

$ ssh-keygen

which will do the job.

1
  • thanks ser. This worked for my tutorial.
    – Megabyte
    Sep 21, 2023 at 5:05

Your Answer

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

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