|
| 1 | +// Hashes |
| 2 | +import { sha256 } from "ethereum-cryptography/sha256.js"; |
| 3 | +import { keccak256 } from "ethereum-cryptography/keccak.js"; |
| 4 | +import { ripemd160 } from "ethereum-cryptography/ripemd160.js"; |
| 5 | +import { blake2b } from "ethereum-cryptography/blake2b.js"; |
| 6 | + |
| 7 | +// KDFs |
| 8 | +import { pbkdf2Sync } from "ethereum-cryptography/pbkdf2.js"; |
| 9 | +import { scryptSync } from "ethereum-cryptography/scrypt.js"; |
| 10 | + |
| 11 | +// Random |
| 12 | +import { getRandomBytesSync } from "ethereum-cryptography/random.js"; |
| 13 | + |
| 14 | +// AES encryption |
| 15 | +import { encrypt } from "ethereum-cryptography/aes.js"; |
| 16 | + |
| 17 | +// secp256k1 elliptic curve operations |
| 18 | +import { secp256k1 } from "ethereum-cryptography/secp256k1.js"; |
| 19 | + |
| 20 | +// BIP32 HD Keygen, BIP39 Mnemonic Phrases |
| 21 | +import { HDKey } from "ethereum-cryptography/hdkey.js"; |
| 22 | +import { generateMnemonic as gm1 } from "ethereum-cryptography/bip39.js"; |
| 23 | +import { generateMnemonic as gm2 } from "ethereum-cryptography/bip39/index.js"; |
| 24 | +import { wordlist } from "ethereum-cryptography/bip39/wordlists/english.js"; |
| 25 | + |
| 26 | +// utilities |
| 27 | +import { hexToBytes, toHex, utf8ToBytes } from "ethereum-cryptography/utils.js"; |
| 28 | + |
| 29 | +import * as w1 from 'ethereum-cryptography/bip39/wordlists/czech.js'; |
| 30 | +import * as w2 from 'ethereum-cryptography/bip39/wordlists/english.js'; |
| 31 | +import * as w3 from 'ethereum-cryptography/bip39/wordlists/french.js'; |
| 32 | +import * as w4 from 'ethereum-cryptography/bip39/wordlists/italian.js'; |
| 33 | +import * as w5 from 'ethereum-cryptography/bip39/wordlists/japanese.js'; |
| 34 | +import * as w6 from 'ethereum-cryptography/bip39/wordlists/korean.js'; |
| 35 | +import * as w7 from 'ethereum-cryptography/bip39/wordlists/simplified-chinese.js'; |
| 36 | +import * as w8 from 'ethereum-cryptography/bip39/wordlists/spanish.js'; |
| 37 | +import * as w9 from 'ethereum-cryptography/bip39/wordlists/traditional-chinese.js'; |
0 commit comments