Sui.

Post

Share your knowledge.

CarlkawIy.
Dec 21, 2024
Expert Q&A

How to Convert and Import an Old Private Key Successfully

How can I import my wallet if my old private key is invalid?

  • Sui
  • Architecture
2
5
Share
Comments
.

Answers

5
Pluto Dev👽.
Dec 21 2024, 16:36

To resolve this, you need to convert your private key to the latest format using the Sui CLI tool. Download the CLI and use the command 'sui keytool convert'. Documentation can be found here: https://docs.sui.io/references/cli/keytool

2
Best Answer
Comments
.
believer.
Sep 7 2025, 12:11

If your old private key is truly invalid, it means it's incorrect or corrupted, and you won't be able to import your wallet using it. The private key is the credential that grants access. Your only option would be to use your mnemonic seed phrase (the 12 or 24 words) to recover or import your wallet. If you don't have a valid private key or your seed phrase, access to that specific wallet address is unfortunately lost.

5
Comments
.
Raju.
Raju184
Dec 21 2024, 23:53

If the error message you see suggests that the private key is invalid it also probably advises using a Bech32 encoded 33-byte string. Check details how to solve it here: https://github.com/sui-foundation/sips/blob/main/sips/sip-15.md

1
Comments
.

Do you know the answer?

Please log in and share it.