Binance now supports using Ed25519 keys to create signed API requests. All you need to do is generate an Ed25519 key pair and register the public key on Binance.
Ed25519 API keys use asymmetric cryptography to authenticate your requests on Binance API. Like RSA API keys, Ed25519 keys are asymmetric. You can generate a key pair, share the public key with Binance, and use your private key to sign requests.
The Ed25519 digital signature scheme provides high security comparable to 3072-bit RSA keys, while having much smaller signatures that are faster to compute:
API Key Type | Signature Size | Signature Operation Time |
HMAC-SHA-256 | 64 bytes | 0.00 ms |
Ed25519 | 88 bytes | 0.03 ms |
RSA (2048-bit) | 344 bytes | 0.55 ms |
RSA (4096-bit) | 684 bytes | 3.42 ms |
Although HMAC-SHA256 has a smaller signature size and operates faster, Ed25519 keys generally perform better on Binance API. Therefore, we recommend switching to Ed25519 keys.
1. Go to the official Asymmetric Keys Generator website to download and install the latest version of the generator.
Note: The “.CHECKSUM” file is used to verify the integrity of the generator package. Please download both files to the same directory. Click here for more information.
2. Launch the application and you can use it to:
1. Log in to your Binance account and go to [Profile] - [API Management]. Click [Create API].
2. Choose [Self-generated] and click [Next].
3. Copy the Ed25519 public key generated from Asymmetric Keys Generator and paste it into the box to register.
4. Enter a name for your API key. Then click [Next] and complete 2FA.
To send a signed API request, you can follow the steps in the API documentation. Go to [SIGNED Endpoint Example for POST /api/v3/order - Ed25519 Keys] under the [SIGNED Endpoint security] section for more details.