mnemonicToSeedHex

suspend fun mnemonicToSeedHex(mnemonic: String, passphrase: String = ""): String

Converts a BIP-39 mnemonic phrase to a hex-encoded 64-byte seed.

This is a convenience function that combines mnemonicToSeed with hex encoding. The resulting string is 128 hexadecimal characters (64 bytes).

Return

128-character hex string representing the 64-byte seed

Example:

val seedHex = MnemonicUtils.mnemonicToSeedHex(
"illness spike retreat truth genius clock brain pass fit cave bargain toe"
)
// seedHex is "e4a5a632e70943ae7f07659df1332160937fad82587216a4c64315a0fb39497ee4a01f76ddab4cba68147977f3a147b6ad584c41808e8238a07f6cc4b582f186"

Parameters

mnemonic

Space-separated mnemonic phrase

passphrase

Optional passphrase for additional security (default: empty string)