Why are the addresses of the same mnemonic different in different wallets?

After the same mnemonic phrase is imported into Stoicwallet wallet and PLUG wallet, why are the addresses and Principal IDs corresponding to the two wallets different?

Has no one noticed this problem?

Yes, I notice the same behavior. Not sure if it is necessarily a problem, but yes, I can see that it would be nice if they were the same.

Stoic wallet uses an Ed25519 key constructed by @dfinity/identity - npm. Maybe Plug uses an ECDSA key or does something else differently, I couldn’t find it quickly in their code.

It would be nice to have this documented so that people can write recovery tools that work for all wallets.

2 Likes

Plug uses Sec256kp1

with derivation path: plug-controller/constants.ts at main · Psychedelic/plug-controller · GitHub

1 Like