dynamic_sdk_export_private_key
Private key export for Dynamic embedded wallets.
This package opens a protected export interface after Dynamic completes the required step-up checks. Raw private key material does not cross the SDK bridge and is not returned to the host application.
Setup
import 'package:dynamic_sdk/dynamic_sdk.dart';
import 'package:dynamic_sdk_export_private_key/dynamic_sdk_export_private_key.dart';
final client = DynamicSdk.createDynamicClient(
environmentId: 'YOUR_ENVIRONMENT_ID',
);
client.useExportPrivateKey();
await client.initialize();
Call client.exportPrivateKey.exportPrivateKey(chain, accountAddress) after
the user signs in.