diff --git a/e2e/tests-dfx/identity_command.bash b/e2e/tests-dfx/identity_command.bash index ad52d02ca5..7780cf8446 100644 --- a/e2e/tests-dfx/identity_command.bash +++ b/e2e/tests-dfx/identity_command.bash @@ -465,8 +465,8 @@ XXX } @test "identity: consistently imports a known seed phrase" { - echo "hollow damage this yard journey anchor tool fat action school cash ridge oval beef tribe magnet apology cabbage leisure group sign around object exact">seed.txt + echo "display dawn estate night naive stomach receive lock expose boring square boy deposit mistake volume soldier coil rocket match diamond repair opinion action paddle">seed.txt assert_command dfx identity import alice --seed-file seed.txt --disable-encryption assert_command dfx identity get-principal --identity alice - assert_eq "zs7ty-uv4vo-rvgkk-srfjo-hjaxr-w55wx-ybo5x-qx7k3-noknf-wzwe5-pqe" + assert_eq "qimd7-lqrvx-kdvsm-7zeqn-bgoix-ukjfi-hgmfg-ur2he-odgb2-joms4-nae" } diff --git a/src/dfx/src/lib/identity/identity_manager.rs b/src/dfx/src/lib/identity/identity_manager.rs index 0faf579555..13487e4489 100644 --- a/src/dfx/src/lib/identity/identity_manager.rs +++ b/src/dfx/src/lib/identity/identity_manager.rs @@ -580,7 +580,7 @@ pub(super) fn generate_key() -> DfxResult<(Vec, Mnemonic)> { } pub fn mnemonic_to_key(mnemonic: &Mnemonic) -> DfxResult { - const DEFAULT_DERIVATION_PATH: &str = "m/44'/60'/0'/0/0"; + const DEFAULT_DERIVATION_PATH: &str = "m/44'/223'/0'/0/0"; let seed = Seed::new(mnemonic, ""); let pk = XPrv::derive_from_path(seed.as_bytes(), &DEFAULT_DERIVATION_PATH.parse()?)?; Ok(SecretKey::from(pk.private_key()))