Mnemonic
public class Mnemonic
Class that provides BIP39 style mnemonic functionality.
-
Generates a word list form a given data object.
Declaration
Swift
public static func getWordListFromData(data: Data) -> [String]
Parameters
data
Data object expected to be 16-bytes in length.
-
Verifies a word list.
Declaration
Swift
public static func validateWordList(words: [String]) -> Bool
Parameters
words
List of 12 words to use.
-
Recovers a 16-byte data object based on a word list.
Declaration
Swift
public static func getDataFromWordList(words: [String]) -> Data?
Parameters
words
List of 12 words to use to recover the 16-byte data object.
-
Generates random word list from TK listed baggage of words
Declaration
Swift
public static func generateWordList() -> [String]