Function Signature
Description
Exports a key offline using key shares without requiring server communication. This function reconstructs the key from the provided key shares locally for the specified chain.
Parameters
Required Parameters
chainName (string) - The name of the blockchain chain (e.g., ‘base-sepolia’)
keyShares (any[]) - Array of key shares to reconstruct the key
Optional Parameters
derivationPath (string) - BIP-44 derivation path (defaults to “m/44’/60’/0’/0/0”)
Returns
Promise<string> - The exported key as a hex string
Example
Error Handling
Security Considerations
- Offline Operation: This function works without server communication
- Key Share Security: Ensure key shares are kept secure
- Local Processing: Key reconstruction happens locally
- Derivation Path: Use appropriate derivation path for your use case
Last modified on September 21, 2026