generateBip39

expect fun generateBip39(strength: Long, password: String = ""): BIP39

Generates ECC key and BIP-39 mnemonic from a password using BIP-39.

Return

BIP39 object containing ECC Key and associated with it BIP-39 mnemonic and entropy

Parameters

strength

size of BIP-39 entropy, must be a multiple of 32

password

the password used to generate the Key

Throws

thrown when method encounters an exception

thrown when method encounters an unknown exception

thrown when instance is closed

actual fun generateBip39(strength: Long, password: String): BIP39

Generates ECC key and BIP-39 mnemonic from a password using BIP-39.

Return

BIP39 object containing ECC Key and associated with it BIP-39 mnemonic and entropy

Parameters

strength

size of BIP-39 entropy, must be a multiple of 32

password

the password used to generate the Key

Throws

thrown when method encounters an exception

thrown when method encounters an unknown exception

thrown when instance is closed

actual external fun generateBip39(strength: Long, password: String): BIP39

Generates ECC key and BIP-39 mnemonic from a password using BIP-39.

Return

BIP39 object containing ECC Key and associated with it BIP-39 mnemonic and entropy

Parameters

strength

size of BIP-39 entropy, must be a multiple of 32

password

the password used to generate the Key

Throws

thrown when method encounters an exception

thrown when method encounters an unknown exception

thrown when instance is closed