Package-level declarations

Types

Link copied to clipboard
data class Entropy(val entropy: ByteArray)

Link copied to clipboard
data class Mnemonic(val phrase: String)

助记词

Functions

Link copied to clipboard
fun Wallet.decrypt(password: String): ECKeyPair
Link copied to clipboard
fun ECKeyPair.newWallet(password: String, isGM: Boolean = true): Wallet
Link copied to clipboard

Converts a list of words into a ByteArray entropy buffer according to the BIP39 spec

Link copied to clipboard
fun MnemonicWords.toExtendedKey(path: String = DEFAULT_PATH, saltPhrase: String = "", isGM: Boolean = true): ExtendedKey

助记词生成扩展密钥

Link copied to clipboard
fun Entropy.toMnemonic(lang: Language = Language.ZH_HANS): Mnemonic

熵转为助记词

Link copied to clipboard
Link copied to clipboard
fun MnemonicWords.toSeed(password: String? = ""): Seed

Generates a seed buffer from a mnemonic phrase according to the BIP39 spec. The mnemonic phrase is given as a list of words and the seed can be salted using a password