Tags: GLEECBTC/komodo-defi-framework
Tags
feat(wallet): implement unified offline private key export API (#2542) This introduces the `get_private_keys` RPC method, providing a unified and robust way to export private keys, public keys, and addresses for coins without requiring them to be activated. This is crucial for wallet recovery, auditing, and management. The new API supports two distinct wallet structures: * **HD Mode** (`"mode": "hd"`): For Hierarchical Deterministic wallets, deriving keys using BIP39/BIP44 standard derivation paths. The response includes the full derivation path for each address. * **Iguana Mode** (`"mode": "iguana"`): For legacy wallets that use a single private key derived directly from the passphrase. Key features and improvements include: * **Offline Capability:** Works for any coin defined in the configuration, regardless of its activation status. * **Protocol-Specific Logic:** * **UTXO/EVM/Tendermint:** Correctly generates addresses and key formats (WIF, hex) based on the protocol. * **ZHTLC (Shielded Coins):** Implements accurate key derivation for shielded accounts, returning the correct viewing key and both transparent (`derivation_path`) and shielded (`z_derivation_path`) derivation paths. --- Co-authored-by: Devin AI Note: This marks Devin AI's first contribution to the Komodo DeFi Framework.
PreviousNext