Use ethers.js Mnemonic for real BIP-39 phrase generation
All checks were successful
check / check (push) Successful in 22s

Replace stub wordlist with ethers.Mnemonic.fromEntropy() using
crypto.getRandomValues(). Add esbuild to bundle popup JS so it
can import ethers directly — no background messaging needed.
Each die click now generates a valid, random BIP-39 mnemonic.
This commit is contained in:
2026-02-25 15:40:41 +07:00
parent a967029511
commit da30c0667f
5 changed files with 219 additions and 185 deletions

View File

@@ -14,6 +14,7 @@
},
"devDependencies": {
"@tailwindcss/cli": "^4.2.1",
"esbuild": "^0.27.3",
"jest": "^30.2.0",
"prettier": "^3.8.1",
"tailwindcss": "^4.2.1"