Documentation Index
Fetch the complete documentation index at: https://www.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
DynamicEvmWalletClient::export_private_key returns the wallet’s raw 32-byte EVM private key as 0x-prefixed hex. The MPC export ceremony returns an xpriv; the SDK then derives the final private key at the wallet’s BIP-44 path.
Prerequisites
- Created an EVM wallet
- Persisted
WalletPropertiesandVec<ServerKeyShare>
Export the Key
Verifying the exported key
The exported key should derive the same address aswallet_properties.account_address. With alloy:
Best Practices
- Treat exports as a one-way operation — don’t use the same wallet through MPC after exporting; rotate to a fresh wallet.
- Never log the key — redact it from all logs and error messages.
- Zero memory after use —
zeroize::ZeroizetheStringonce you’ve forwarded it to its destination. - Transport over TLS only — never send the key over an unencrypted channel.