Skip to content
Last Updated: 2025-08-22

​What is a Signer?

A signer is the cryptographic keypair that your Kora node uses to sign Solana transactions as the fee payer. When users send transactions to your Kora node, it validates them and co-signs them with your signer’s private key to cover the SOL transaction fees. Note: By default, token payment fees are sent to the signer’s address. However, you can configure a separate payment_address in your kora.toml to receive payments at a different address while keeping your signer separate. See Configuration Guide for details. Your signer keypair has direct access to your SOL funds used for paying transaction fees. If compromised, an attacker could:
  • Drain your SOL balance
  • Sign unauthorized transactions
  • Disrupt your paymaster service

​Signer Configuration

The Kora RPC CLI requires a signers.toml to be specified via the --signers-config flag. The signers.toml file allows you to configure the signer(s) and signer configuration for your node. signers.toml has two sections:
  1. [signer_pool] - Configuration for the signer pool
  2. [[signers]] - Configuration for each signer (at least one signer is required unless using --no-load-signer flag which has limited functionality)

​[signer_pool]

The signer pool configuration specifies attributes specific to the signer pool as a whole:
  • strategy - The selection strategy for choosing signers. Available strategies are:
    • round_robin (default)- Cycle through signers in order.
    • random - Select signers randomly.
    • weighted - Select signers based on weight.

​[[signers]]

Each signer is configured with:
  • a name: a human-readable identifier for the signer and must be unique within the signer pool
  • an optional weight: a number that specifies the weight of the signer if strategy is weighted
  • a type and type-specific configuration (see Signer Types)
One signer is required unless using the --no-load-signer flag which has limited functionality. For production deployments, it is recommended to configure multiple signers for improved reliability and performance.

​Example

Here’s an example signers.toml file to defines a round-robin signer pool with three signers (note: we’ll cover the different signer types/configurations in the next section):

​Environment Variables

Set environment variables for all configured signers:

​Start Kora with Signers Configuration

​Signer Types

Kora supports four main signer types, each with different security and operational characteristics (and a no-signer option for limited testing):

​Private Key Signer

The simplest approach - store your private key directly in environment variables or pass via CLI flags. Kora accepts private keys in three formats:

​1. Base58 Format (Default)

Standard Solana base58 encoded private key:

​2. U8Array Format

Array of 64 bytes in JSON format:

​3. JSON File Path

Path to a JSON file containing the keypair:
Where keypair.json contains:

​Generate New Keypair

You can create a new keypair for your Kora node using the Solana CLI:
A new keypair has no account onchain yet, so solana transfer needs --allow-unfunded-recipient to send it SOL.

​Signer.toml Configuration

Required variables:
  • name - The name of the signer
  • type - The type of signer (must be memory)
  • private_key_env - The environment variable containing the private key

​Turnkey Signer

Turnkey provides enterprise-grade key management with hardware security modules (HSMs) and policy controls.

​Prerequisites

You will need a Turnkey Account to use the Turnkey signer. Sign up at turnkey.com

​Setup

You will need five keys to use the Turnkey signer:
  • Turnkey organization ID
  • Turnkey API public key
  • Turnkey API private key
  • Turnkey private key ID
  • Turnkey public key
Let’s fetch them from Turnkey:

​1. Turnkey Organization

Click the user menu in the top right corner of the Turnkey dashboard and copy the organization ID:
Turnkey Organization
ID
Turnkey Organization ID
Store the organization ID in an environment variable:

​2. Turnkey API Keys

  • Click the user menu in the top right corner of the Turnkey dashboard and click “Account Settings”.
  • Under “API Keys”, click “+ Create API Key”.
  • Select “Generate API keys in-browser”
  • Enter a name for the API key and click “Continue”
  • Save the public and private keys and click “Approve”
Turnkey API
Keys
Turnkey API Keys
Store the API public and private keys in environment variables:

​3. Turnkey Wallet Keys

From the main menu, navigate to “Wallets” and click “Create Private Key”. We are going to create a new ED25519 private key with “Solana” asset address type:
Turnkey Wallets
Turnkey Wallets
Click “Continue” and then “Approve”. From your wallets page, you should see your new private key. Click on it to view the details. You will need to copy the “Private key ID” and wallet “Address”. Save them to environment variables:
Turnkey Wallet
Details
Turnkey Wallet Details
You will need to fund the wallet with SOL to pay for transaction fees.

​Configure Environment Variables

You should now have the following environment variables:
See the Kora repository for a complete .env.example file. For support with Turnkey, see the Turnkey documentation.

​Signer.toml Configuration

Required variables:
  • name - The name of the signer
  • type - The type of signer (must be turnkey)
  • api_public_key_env - The environment variable containing the Turnkey API public key
  • api_private_key_env - The environment variable containing the Turnkey API private key
  • organization_id_env - The environment variable containing the Turnkey organization ID
  • private_key_id_env - The environment variable containing the Turnkey private key ID
  • public_key_env - The environment variable containing the Turnkey public key

​Privy Signer

Privy offers embedded wallet infrastructure with secure key management for Web3 applications.

​Prerequisites

You will need a Privy Account to use the Privy signer. Sign up at privy.io

​Setup

You will need three keys to use the Privy signer:
  • Privy App ID
  • Privy App Secret
  • Privy Wallet ID
Let’s fetch them from Privy:

​1. Privy App ID

From your dashboard, select the application you want to use for Kora (or click “+ New app” if you don’t have one). Select “Retrieve API Keys” anc click “+ New Secret”:
Privy Wallets
Privy Wallets
Copy your “App ID” and “App Secret” and store them in environment variables:

​2. Privy Wallet

Next, we’ll need to create a new wallet for Kora. From your dashboard’s sidebar click “Wallets” under “Wallet Infrastructure”, and select “New Wallet”. Select “Solana” as the blockchain and click “Save”. Click on the wallet to view the details:
Privy Wallets
Privy Wallets
Copy the “Wallet ID” and store them in environment variables:
You will need to fund the wallet with SOL to pay for transaction fees.

​Configure Environment Variables

You should now have the following environment variables:
See the Kora repository for a complete .env.example file. For support with Privy, see the Privy documentation.

​Signer.toml Configuration

Required variables:
  • name - The name of the signer
  • type - The type of signer (must be privy)
  • app_id_env - The environment variable containing the Privy app ID
  • app_secret_env - The environment variable containing the Privy app secret
  • wallet_id_env - The environment variable containing the Privy wallet ID

​Vault Signer

HashiCorp Vault can hold the signing key in its Transit secrets engine. Kora sends each transaction to Vault’s transit/sign/<key name> endpoint and never sees the private key.

​Prerequisites

  • A Vault server with the Transit secrets engine enabled at transit/
  • A Vault token that can sign with Transit keys

​Setup

Create an ed25519 Transit key for Kora and read its public key:
Kora needs the key’s Solana address, which is the same public key in base58. Convert it in a project that has @solana/kit installed:
You will need to fund that address with SOL to pay for transaction fees.

​Configure Environment Variables

​Signer.toml Configuration

Required variables:
  • name - The name of the signer
  • type - The type of signer (must be vault)
  • vault_addr_env - The environment variable containing the Vault address
  • vault_token_env - The environment variable containing the Vault token
  • key_name_env - The environment variable containing the Transit key name
  • pubkey_env - The environment variable containing the signer’s base58 public key
The repository’s signers.example.toml at v2.0.5 uses addr_env and token_env for Vault; Kora 2.0.5 rejects those names. Use vault_addr_env and vault_token_env as shown above.

​No Signer

If no signer is configured, Kora will throw an error. If you want to run Kora without a signer, you run it with the --no-load-signer flag:
Note that this will limit your node to only processing requests that do not require a signer. Methods that need a signer (for example getConfig) return Signer pool not initialized.

​Troubleshooting

​Quick Reference

Error MessageSigner TypeQuick Fix
“At least one signer must be configured”AnyThe signers file has signers = []; add at least one signer
“Failed to read config file”AnyCheck file path and contents
“Failed to parse signers config TOML”AnyCheck file format and signer contents
“Duplicate signer name”AnyEnsure each signer is uniquely named in the configuration
“Invalid base58 string”Private KeyCheck key format, no extra spaces
“Invalid private key length”Private KeyUse complete 64-byte Solana key
“Environment variable ‘KORA_PRIVATE_KEY’ required for signer ‘main’ is not set” (names vary)Private Key, Turnkey, Privy, VaultSet the environment variable named in the signer’s *_env field
“Failed to create Vault client”VaultVerify Vault credentials
“Failed to sign with [service]”AnyCheck service status & credentials & rate limits
“Signer pool not initialized”Multi-SignerCheck signers.toml path and format
“Cannot create empty signer pool”Multi-SignerAdd at least one signer to config
“Signer with pubkey … not found”Multi-SignerCheck signer hint matches configured signers
“Signers configuration is required unless using --no-load-signer”AnyAdd a signers configuration file

​General Debugging Tips

​Enable Verbose Logging

Add detailed logging to diagnose issues:

​Security & Best Practices

​General Security

  • Use dedicated keypairs for Kora (don’t reuse personal wallets)
  • Only fund with SOL you’re willing to spend on fees
  • Maintain minimal operational balance with automated monitoring and top-offs
  • Implement monitoring and alerting for unusual activity
  • All private keys and API keys should be stored in environment variables or secrets management systems (Railway secrets, AWS Secrets Manager, etc.)

​Specifying a Signer (Client-Side)

Clients can specify a preferred signer for consistency across related operations:
Without signer keys, the configured strategy determines signer selection. It is important to note that keys must be consistent across calls related to the same transaction (e.g., if you generate a transaction with a specified signer key, you must use the same signer key for all related calls).