PlaintextSeed

class PlaintextSeed(val mnemonicEntropy: ByteArray, val bip39Seed: ByteArray)

Wallet seed material decrypted into memory.

Security: The caller MUST wipe both arrays as soon as possible (see PlaintextSeed.wipe). The arrays hold the wallet's signing secret — keeping them in memory longer than necessary is a security risk.

Constructors

Link copied to clipboard
constructor(mnemonicEntropy: ByteArray, bip39Seed: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

64-byte BIP-39 seed derived from the mnemonic via PBKDF2. Used directly for BIP-32 key derivation — skips PBKDF2 on every signing.

Link copied to clipboard

32-byte BIP-39 entropy (for a 24-word mnemonic). Used to reconstruct the human-readable phrase when the user requests it.

Functions

Link copied to clipboard
fun wipe()

Overwrites both byte arrays with zeros. Call this immediately after deriving keys and signing — JVM may not guarantee the wipe is effective (see security notes in plan), but it reduces the window of exposure.