mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-25 12:57:59 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { hasBigInt } from '@pezkuwi/util';
|
||||
import { bip39ToEntropy, isReady } from '@pezkuwi/wasm-crypto';
|
||||
import { mnemonicToEntropy as jsToEntropy } from './bip39.js';
|
||||
export function mnemonicToEntropy(mnemonic, wordlist, onlyJs) {
|
||||
return !hasBigInt || (!wordlist && !onlyJs && isReady())
|
||||
? bip39ToEntropy(mnemonic)
|
||||
: jsToEntropy(mnemonic, wordlist);
|
||||
}
|
||||
Reference in New Issue
Block a user