You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(key-wallet)!: remove MnemonicWithPassphrase wallet type
Drops the entire passphrase-as-callback feature: callers can no longer
construct a wallet that retains a mnemonic and applies a BIP39 passphrase
on-demand. Removed across the workspace:
- `WalletType::MnemonicWithPassphrase` variant + Zeroize arm
- `Wallet::from_mnemonic_with_passphrase` constructor
- `add_account_with_passphrase`, `add_bls_account_with_passphrase`,
`add_eddsa_account_with_passphrase` on `Wallet`
- `derive_extended_private_key_with_passphrase`,
`create_accounts_with_passphrase_from_options`,
`create_special_purpose_accounts_with_passphrase`,
`needs_passphrase`, and `root_extended_priv_key_with_callback` helpers
- `add_managed_*_with_passphrase` on `ManagedAccountOperations`
- `passphrase` parameter from `WalletManager::create_wallet_from_mnemonic`
and `create_wallet_from_mnemonic_return_serialized_bytes`
- `passphrase` parameter from FFI `wallet_create_from_mnemonic*`,
`wallet_manager_add_wallet_from_mnemonic*`,
`wallet_manager_add_wallet_from_mnemonic_return_serialized_bytes`
- All passphrase-only tests (`test_wallet_with_passphrase`,
`test_passphrase_edge_cases`, the `passphrase_test` module, FFI
`test_passphrase_wallets.rs`, etc.)
Breaking change: serialized wallets containing the
`MnemonicWithPassphrase` variant can no longer be deserialized, and the
FFI `passphrase` parameter is gone — callers must update their code.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments