Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ebellocchia committed May 4, 2021
1 parent 4a5049f commit bc1e875
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,22 @@ Supported BIP specification enumerative:
### Wallet creation

After a wallet factory is constructed, a wallet can be created in the following ways:
- randomly by generating a random mnemonic with the specified words number:
- randomly by generating a random mnemonic with the specified words number and language (if not specified, the default will be English):

from py_crypto_hd_wallet import HdWalletWordsNum
from py_crypto_hd_wallet import HdWalletWordsNum, HdWalletWordsLanguages

# Create randomly by specifying the words number, these are the possible options:
hd_wallet = hd_wallet_fact.CreateRandom("my_wallet_name", HdWalletWordsNum.WORDS_NUM_12)
hd_wallet = hd_wallet_fact.CreateRandom("my_wallet_name", HdWalletWordsNum.WORDS_NUM_15)
hd_wallet = hd_wallet_fact.CreateRandom("my_wallet_name", HdWalletWordsNum.WORDS_NUM_18)
hd_wallet = hd_wallet_fact.CreateRandom("my_wallet_name", HdWalletWordsNum.WORDS_NUM_21)
hd_wallet = hd_wallet_fact.CreateRandom("my_wallet_name", HdWalletWordsNum.WORDS_NUM_24)
# Specifying the language, these are the possible options:
hd_wallet = hd_wallet_fact.CreateRandom("my_wallet_name", HdWalletWordsNum.WORDS_NUM_12, HdWalletWordsLanguages.ITALIAN)
hd_wallet = hd_wallet_fact.CreateRandom("my_wallet_name", HdWalletWordsNum.WORDS_NUM_12, HdWalletWordsLanguages.FRENCH)
hd_wallet = hd_wallet_fact.CreateRandom("my_wallet_name", HdWalletWordsNum.WORDS_NUM_12, HdWalletWordsLanguages.SPANISH)
hd_wallet = hd_wallet_fact.CreateRandom("my_wallet_name", HdWalletWordsNum.WORDS_NUM_12, HdWalletWordsLanguages.PORTUGUESE)
hd_wallet = hd_wallet_fact.CreateRandom("my_wallet_name", HdWalletWordsNum.WORDS_NUM_12, HdWalletWordsLanguages.CZECH)

- from an already existent mnemonic:

Expand Down

0 comments on commit bc1e875

Please sign in to comment.