WordList
public enum WordList : Sendable
Represents supported BIP-39 mnemonic word lists in different languages.
BIP-39 defines standardized word lists for generating mnemonic phrases in multiple languages. Each list contains exactly 2048 words carefully selected to be unambiguous and easy to write.
All supported languages produce compatible mnemonics that encode the same entropy, allowing users to choose their preferred language for mnemonic generation and recovery.
Supported languages:
- English (default and most widely used)
- Chinese (Simplified and Traditional)
- French
- Italian
- Japanese
- Korean
- Spanish
See also:
-
English word list (2048 words)
Declaration
Swift
case english -
Simplified Chinese word list (2048 words)
Declaration
Swift
case chineseSimplified -
Traditional Chinese word list (2048 words)
Declaration
Swift
case chineseTraditional -
French word list (2048 words)
Declaration
Swift
case french -
Italian word list (2048 words)
Declaration
Swift
case italian -
Japanese word list (2048 words)
Declaration
Swift
case japanese -
Korean word list (2048 words)
Declaration
Swift
case korean -
Spanish word list (2048 words)
Declaration
Swift
case spanish -
Returns the word list array for the selected language.
Each array contains exactly 2048 words used for BIP-39 mnemonic generation.
Declaration
Swift
public var words: [String] { get } -
The BIP-39 English word list containing 2048 words for mnemonic generation.
Declaration
Swift
public var englishWords: [String] { get } -
The BIP-39 Simplified Chinese word list containing 2048 words for mnemonic generation.
Declaration
Swift
public var chineseSimplifiedWords: [String] { get } -
The BIP-39 Traditional Chinese word list containing 2048 words for mnemonic generation.
Declaration
Swift
public var chineseTraditionalWords: [String] { get } -
The BIP-39 French word list containing 2048 words for mnemonic generation.
Declaration
Swift
public var frenchWords: [String] { get } -
The BIP-39 Italian word list containing 2048 words for mnemonic generation.
Declaration
Swift
public var italianWords: [String] { get } -
The BIP-39 Japanese word list containing 2048 words for mnemonic generation.
Declaration
Swift
public var japaneseWords: [String] { get } -
The BIP-39 Korean word list containing 2048 words for mnemonic generation.
Declaration
Swift
public var koreanWords: [String] { get } -
The BIP-39 Spanish word list containing 2048 words for mnemonic generation.
Declaration
Swift
public var spanishWords: [String] { get }
View on GitHub
Install in Dash