Decrypting the Private Key

When you request wallet information for a master or transit wallet, the API returns the field:

private_key_encrypted: "BASE64_ENCODED_RSA_payload"

This value is a RSA-encrypted private key, encoded in Base64.

To decrypt it, you must use your own RSA private key — the one that corresponds to the public RSA key previously uploaded in the Dashboard (Project Settings → RSA Key)

The platform never stores your RSA private key, and only you can decrypt the wallet’s private key.


Encryption Details

  • Algorithm: RSA-OAEP

  • Hash function: SHA-256

  • Output: Base64-encoded encrypted payload

  • Input (before encryption): raw wallet private key (hex string)


Option 1: Online Decrypter (Testing & Debugging)

For quick verification without writing code, you can use our dedicated web tool. This is useful for testing API responses or manually recovering a key.

  1. Select the Decrypt tool.

  2. Paste the private_key_encrypted string from the API response.

  3. Paste your RSA Private Key (the one generated during setup).

  4. Click Decrypt to view the raw wallet private key.

Option 2: Programmatic Decryption (Integration)

To automate this process in your application, implement RSA decryption using the specifications below.

  1. Convert the Base64 string to binary

  2. Use your RSA private key to decrypt the ciphertext

  3. The result is a raw wallet private key (hex string)

circle-exclamation

Last updated