Keys
Technical overview of the DFNS Key object, used to derive wallets across networks and to sign raw payloads for advanced custody workflows.
On this page
Key is a core API resource in DFNS. It represents a distributed private key managed by our MPC network. You don’t interact with the key material directly; instead, you use its unique keyId to perform cryptographic operations.
Every keyId follows a fixed format: the key- prefix, lowercase alphanumeric segments, and a maximum length of 64 characters. The published pattern is ^key-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$, and it appears on the keyId field throughout the API reference. Treat a keyId as an opaque identifier you store and pass back to the API: use the format for basic validation if you need it, but do not construct or parse ids yourself.
The Key object has two primary functions for a developer:
- To create
Walletobjects. - To sign arbitrary data (
raw signing).
1. Creating Multi-chain Wallets from a Key
A singleKey object is blockchain-agnostic and can be used to derive multiple Wallet objects across different networks. This creates a one-to-many relationship that simplifies your infrastructure, as you only need to reference one keyId to manage assets on various chains.
Think of it like this:
Key(withkeyId)-> Wallet(Ethereum, withaddressandwalletId)-> Wallet(Solana, withaddressandwalletId)-> Wallet(Bitcoin, withaddressandwalletId)
signingKey in the request body to specify which underlying key should control the new wallet.
2. Performing Raw Signing
The most powerful feature of theKey object is the ability to perform raw signing. This is essential for any action beyond a simple asset transfer, such as interacting with a smart contract or signing an off-chain message.
You do this by making a POST request to the /keys/{keyId}/signatures endpoint.
Your application is then responsible for broadcasting the transaction with the returned signature to the network. This gives you full control over transaction assembly, gas, and nonce management, while DFNS handles the secure signing operation.
What about broadcasting?The
Key object only signs. Broadcasting is a function of the Wallet object, as it is network-specific. See the Sign & Broadcast endpoint for broadcasting after the signature has been issued.Security: The Developer Takeaway
From a developer’s perspective, the security model is simple: theKey object is an inaccessible secret. You can use it to generate signatures, but you cannot read the underlying private key material, and DFNS never assembles it on its servers. Our MPC architecture enforces this guarantee. The one exception is key export: when DFNS enables it for your organization, each signer returns its key share encrypted to you, and you reconstruct the private key on your side.
For a deeper technical dive, see our MPC Architecture page.
Exporting a key
Exporting a key returns the encrypted key shares, which you reconstruct client-side into the full private key. Exporting marks the keyexported: true, but this flag is informational only — the key remains fully functional inside DFNS for signing and broadcasting. Export does not disable, lock, or delete it. To stop using the key inside DFNS, issue a separate Delete Key.
Key object
Example
Last modified on November 13, 2026