Skip to content

Commit

Permalink
bip39 exports updated
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Jun 27, 2023
1 parent 62c2ea3 commit 217b14b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/protocol/packages/bip39/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { sha512 } from '@noble/hashes/sha512'
import { randomBytes } from '@noble/hashes/utils'
import { utils as baseUtils } from '@scure/base'

export * from './wordlists'

// Japanese wordlist
const isJapanese = (wordlist: string[]) => wordlist[0] === '\u3042\u3044\u3053\u304f\u3057\u3093'

Expand Down
21 changes: 21 additions & 0 deletions packages/protocol/packages/bip39/src/wordlists/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { wordlist as czech } from './czech'
import { wordlist as english } from './english'
import { wordlist as french } from './french'
import { wordlist as italian } from './italian'
import { wordlist as japanese } from './japanese'
import { wordlist as korean } from './korean'
import { wordlist as simplifiedChinese } from './simplified-chinese'
import { wordlist as spanish } from './spanish'
import { wordlist as traditionalChinese } from './traditional-chinese'

export const wordlists = {
czech,
english,
french,
italian,
japanese,
korean,
simplifiedChinese,
spanish,
traditionalChinese,
}

0 comments on commit 217b14b

Please sign in to comment.