mirror of
https://github.com/pezkuwichain/pezkuwi-extension.git
synced 2026-11-29 08:59:57 +00:00
fix: use JS mnemonic generation instead of broken wasm bip39
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user