Skip to content

Mnemonic

bigearsenal edited this page May 17, 2022 · 1 revision

Mnemonic

public class Mnemonic 

Inheritance

Equatable

Initializers

init(strength:wordlist:)

public init(strength: Int = 256, wordlist: [String] = Wordlists.english) 

init(phrase:passphrase:)

public init(phrase: [String], passphrase: String = "") throws 

init(entropy:wordlist:)

public init(entropy: [UInt8], wordlist: [String] = Wordlists.english) throws 

Properties

phrase

public let phrase: [String]

seed

public var seed: [UInt8] 

Methods

toMnemonic(_:wordlist:)

public static func toMnemonic(_ bytes: [UInt8], wordlist: [String] = Wordlists.english) throws -> [String] 

toEntropy(_:wordlist:)

public static func toEntropy(_ phrase: [String], wordlist: [String] = Wordlists.english) throws -> [UInt8] 

isValid(phrase:wordlist:)

public static func isValid(phrase: [String], wordlist: [String] = Wordlists.english) -> Bool 

deriveChecksumBits(_:)

public static func deriveChecksumBits(_ bytes: [UInt8]) -> String 

Operators

==

public static func == (lhs: Mnemonic, rhs: Mnemonic) -> Bool 
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Operators
Extensions
Clone this wiki locally