fix: use JS mnemonic generation instead of broken wasm bip39

This commit is contained in:
Kurdistan Tech Ministry committed 2026-02-02 20:45:54 +03:00
1 parent f5495f7cac
commit df7ad72047
2 files changed
+6 -1

No files matched your search

@@ -325,7 +325,8 @@ export default class Extension {
}
private seedCreate ({ length = SEED_DEFAULT_LENGTH, seed: _seed, type }: RequestSeedCreate): ResponseSeedCreate {
const seed = _seed || mnemonicGenerate(length);
// Use onlyJs=true because wasm-crypto doesn't implement bip39Generate
const seed = _seed || mnemonicGenerate(length, undefined, true);
return {
address: keyring.createFromUri(getSuri(seed, type), {}, type).address,