Function Signature
Description
Exports a private key offline using key shares without requiring server communication. This function reconstructs the private key from the provided key shares locally.Parameters
Required Parameters
keyShares((EcdsaKeygenResult | Ed25519KeygenResult)[]) - Array of key shares to reconstruct the private key
Optional Parameters
derivationPath(string) - BIP-44 derivation path (defaults to “m/44’/60’/0’/0/0”)
Returns
Promise<{ derivedPrivateKey: string }>- Object containing the exported private key
Example
Key Share Format
Error Handling
Security Considerations
- Offline Operation: This function works without server communication
 - Key Share Security: Ensure key shares are kept secure
 - Local Processing: Private key reconstruction happens locally
 - Derivation Path: Use appropriate derivation path for your use case
 
Related Functions
exportPrivateKey()- Export private key with server communicationcreateWalletAccount()- Create a new wallet account