HDWallet

open fun HDWallet(strength: Int, passphrase: String)

Creates a new HDWallet with a new random mnemonic with the provided strength in bits.

Return

Nullable TWHDWallet

Parameters

strength

strength in bits

passphrase

non-null passphrase


open fun HDWallet(mnemonic: String, passphrase: String)

Creates an HDWallet from a valid BIP39 English mnemonic and a passphrase.

Return

Nullable TWHDWallet

Parameters

mnemonic

non-null Valid BIP39 mnemonic

passphrase

non-null passphrase


open fun HDWallet(mnemonic: String, passphrase: String, check: Boolean)

Creates an HDWallet from a BIP39 mnemonic, a passphrase and validation flag.

Return

Nullable TWHDWallet

Parameters

mnemonic

non-null Valid BIP39 mnemonic

passphrase

non-null passphrase

check

validation flag


open fun HDWallet(entropy: Array<Byte>, passphrase: String)

Creates an HDWallet from entropy (corresponding to a mnemonic).

Return

Nullable TWHDWallet

Parameters

entropy

Non-null entropy data (corresponding to a mnemonic)

passphrase

non-null passphrase