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::exportPrivateKey returns the wallet’s raw 32-byte EVM private key as 0x-prefixed hex. The MPC export ceremony returns an xpriv; the SDK then BIP-32-derives the final private key at the wallet’s recorded derivation path.
Prerequisites
- Created an EVM wallet
- Persisted
WalletPropertiesandList<ServerKeyShare>
Export the Key
Verifying the exported key
The exported key should derive the same address aswalletProperties.accountAddress(). With web3j:
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. The SDK’s
tracinginstrumentation already skips this arg; do the same in your own code. - Zero memory after use — keep the key as
char[]/byte[]where possible and explicitly zero it after forwarding to its destination. - Transport over TLS only — never send the key over an unencrypted channel.