]> git.codecow.com Git - libnemo.git/commitdiff
Fix blake wallet import not assigning mnemonic from seed as if entropy as allowed...
authorChris Duncan <chris@zoso.dev>
Sat, 2 Aug 2025 19:25:57 +0000 (12:25 -0700)
committerChris Duncan <chris@zoso.dev>
Sat, 2 Aug 2025 19:25:57 +0000 (12:25 -0700)
src/lib/safe.ts

index 87fc02ff222af90f575fc4a1ca02a65db68736f0..de5657b5ba4dea5a9574df118fedf3bf5a749bd6 100644 (file)
@@ -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'