Documentation Index
Fetch the complete documentation index at: https://fireblocks-43c4b3ee-chore-add-cli.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Fireblocks workspaces support non-custodial wallets with two algorithms:MPC_ECDSA_SECP256K1 (ECDSA) and MPC_EDDSA_ED25519 (EdDSA).
Each algorithm allows the addition of different assets. For example, generating an ECDSA key set will let you add asset such as Bitcoin, or Ethereum, while generating an EdDSA key set will let you add Solana, or Algorand, for example.
A wallet can meet one of the following states:
- Generate ECDSA keys only.
- Generate EdDSA keys only.
- Generate ECDSA & EdDSA keys.
- Add EdDSA keys to an already existing ECDSA key set.
- Add ECDSA keys to an already existing EdDSA key set.
Extending Your Key Set
Should you face a situation where you already have an existing key set, you can generate another key set for the different algorithm, as shown in MPC Key Generation. Assuming you have generated an ECDSA key set, you should now trigger the key generation function with the EdDSA algorithm (MPC_EDDSA_ED25519) only.
In cases of extending your key set, you are required to make sure you have performed the same flows you have implemented for your already existing key set, that is:
- Backup and Recovery, as seen here. Make sure you back up the new key set after generating the keys. By default, backup enforcement is enabled and you won’t be able to add assets to your newly extended key set (e.g. Solana for EdDSA) until you have backed up your key set.
- Multiple Devices, as seen here. In case there are multiple devices for the same wallet, and one of them has extended its key set, you are required to run the join wallet operation again, for your newly extended key set.
Retrieving the Device Keys Status
The MPC Keys Generation process is a multi-step operation that can fail or stop in the middle for various reasons, such as a network error or the end user leaving the application midway through the process. If a failure or stoppage occurs, you end up with a device and adeviceId that cannot be used until you complete the MPC key generation process.
To check the current key status for a device, there are two methods you can use:
-
Call the
getKeysStatusfunction on the web SDK or mobile SDK. WhenkeyStatusreturns READY, the MPC key generation process has been completed. Note that READY is the only valid final status for the key. -
Call the Get device key setup state endpoint. This endpoint returns the device’s current status and includes some additional response parameters:
- SetupStatus: Returns as COMPLETE or INCOMPLETE per key that started creation on the device.
- Algorithm name: Returns as
MPC_ECDSA_SECP256K1orMPC_EDDSA_ED25519. - backedUp: This boolean flag indicates whether the keys were backed up by any of the wallet’s devices. Remember, a wallet can have multiple devices associated with it.
Retrieving the Wallet Key Status
You can also query a wallet’s status by calling the Get wallet key setup state endpoint. The response includes the current status of all devices associated with the wallet. Note that a wallet is considered COMPLETE as long as at least one of its devices also has the COMPLETE status. If you send a request to an incomplete wallet or device, your request will fail and Fireblocks may return error codes to provide context for the request’s failure.Removing Keys After Irrecoverable Loss
In rare cases, a wallet may become unusable if a new key set is added but not backed up before the device is lost. For example, if a wallet originally had ECDSA keys that were backed up, and EdDSA keys were later added but never backed up, losing the device now will leave the wallet in an incomplete state. This will cause most wallet operations to fail across all devices. To resolve this and regain control of the backed-up ECDSA keys, you need to perform an administrative operation to explicitly remove the EdDSA algorithm from the wallet’s algorithm set. This is done using the Fireblocks SDK initialized with the EW Admin API user’s private key:Re-generating the Key Set
Once the wallet is operational again, you can re-generate a new EdDSA keys set from your client application, as mentioned in MPC Key Generation:Important Considerations
- This API only removes a signing algorithm. To add algorithms, see Extending Your Key Set.
-
A signing algorithm cannot be removed if any of the following apply:
- Assets already exist under that algorithm.
- The public key was retrieved using
getPublicKey. - A takeover has been performed for the wallet.