mirror of
https://github.com/pezkuwichain/pezkuwi-extension.git
synced 2026-10-25 13:05:07 +00:00
mnemonicGenerate was forced onto the JavaScript path because wasm-crypto 7.5.18 had no bip39Generate. 7.5.20 has it: 1000 phrases of 12 to 24 words generated through wasm were all valid and distinct, and wasm and JavaScript derive the same mini secret from each. The call is back to the upstream form, which uses wasm when it is ready.
@polkadot/extension-base
Functions, classes and other utilities used in @polkadot/extension. These include:
- background script handlers,
- message passing,
- scripts injected inside pages.
They are primarily meant to be used in @polkadot/extension, and can be broken without any notice to cater for @polkadot/extension's needs.
They are exported here if you wish to use part of them in the development of your
own extension. Don't forget to add process.env.EXTENSION_PREFIX to separate
ports and stores from the current extension's ones.