Bip39
BIP-39 mnemonic sentence handling for Cardano wallets.
Implements mnemonic validation and seed derivation per BIP-39. Uses English wordlist (2048 words).
Attributes
- See also
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Bip39.type
Members list
Value members
Concrete methods
Generate mnemonic from entropy.
Generate mnemonic from entropy.
Value parameters
- entropy
-
entropy bytes (16, 20, 24, 28, or 32 bytes)
Attributes
- Returns
-
mnemonic sentence
Validate a mnemonic sentence.
Validate a mnemonic sentence.
Value parameters
- mnemonic
-
space-separated words
Attributes
- Returns
-
true if valid (correct word count, all words in wordlist, valid checksum)
Convert mnemonic to entropy bytes.
Convert mnemonic to entropy bytes.
Value parameters
- mnemonic
-
validated mnemonic sentence
Attributes
- Returns
-
entropy bytes (16-32 bytes depending on word count)
- Throws
-
IllegalArgumentException
if mnemonic is invalid
Convert mnemonic + passphrase to 64-byte seed.
Convert mnemonic + passphrase to 64-byte seed.
Uses PBKDF2-HMAC-SHA512 with 2048 iterations.
Value parameters
- mnemonic
-
the mnemonic sentence (must be valid per BIP-39)
- passphrase
-
optional passphrase (empty string if none)
Attributes
- Returns
-
64-byte seed
- Throws
-
IllegalArgumentException
if mnemonic is invalid (wrong word count, unknown words, or bad checksum)