🔐 Keypair Converter
Convert a private key between suiprivkey and hex, and see its public key and address.
Formats
suiprivkey is what wallets export and sui keytool prints: Bech32 with the prefix “suiprivkey” over flag ‖ 32-byte private key. Older keystores stored base64 of the same 33 bytes. A raw hex or base64 key has no flag, so choose its scheme above. The flag is 0x00 for Ed25519, 0x01 for Secp256k1 and 0x02 for Secp256r1.