From: Chris Duncan Date: Sat, 2 Aug 2025 19:25:57 +0000 (-0700) Subject: Fix blake wallet import not assigning mnemonic from seed as if entropy as allowed... X-Git-Tag: v0.10.5~47^2~8 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=b031f80564391b110164fe94ba725c5df9bc2166;p=libnemo.git Fix blake wallet import not assigning mnemonic from seed as if entropy as allowed by spec. --- diff --git a/src/lib/safe.ts b/src/lib/safe.ts index 87fc02f..de5657b 100644 --- a/src/lib/safe.ts +++ b/src/lib/safe.ts @@ -190,6 +190,9 @@ export class Safe { this.#type = type if (secret instanceof ArrayBuffer) { this.#seed = secret + if (type === 'BLAKE2b') { + this.#mnemonic = await Bip39Mnemonic.fromEntropy(new Uint8Array(secret)) + } } else { this.#mnemonic = await Bip39Mnemonic.fromPhrase(secret) this.#seed = type === 'BIP-44'