Skip to content

Commit e1277b9

Browse files
authored
Update README.md
1 parent 647158e commit e1277b9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,12 @@ Also in this case, the language can be specified or automatically detected.
163163

164164
from bip_utils import Bip39SeedGenerator
165165

166-
# If not specified, the passphrase will be empty
167-
passphrase = "my_passphrase"
168-
seed_bytes = Bip39SeedGenerator(mnemonic).Generate(passphrase)
166+
# Generate with automatic language detection and passphrase (empty)
167+
seed_bytes = Bip39SeedGenerator(mnemonic).Generate()
168+
# Generate with automatic language detection and custom passphrase
169+
seed_bytes = Bip39SeedGenerator(mnemonic).Generate("my_passphrase")
170+
# Generate specifying the language
171+
seed_bytes = Bip39SeedGenerator(mnemonic, Bip39Languages.CZECH).Generate()
169172

170173
## BIP-0032 library
171174

0 commit comments

Comments
 (0)