config.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/usr/bin/env python
  2. #
  3. # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution
  4. # Copyright (C) 2013 by philemon <mmgen-py@yandex.com>
  5. #
  6. # This program is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. """
  19. config.py: Constants and configuration options for the mmgen suite
  20. """
  21. proj_name = "mmgen"
  22. wallet_ext = "mmdat"
  23. seed_ext = "mmseed"
  24. mn_ext = "mmwords"
  25. brain_ext = "mmbrain"
  26. default_wl = "electrum"
  27. #default_wl = "tirosh"
  28. seed_lens = 128,192,256
  29. seed_len = 256
  30. mnemonic_lens = [i / 32 * 3 for i in seed_lens]
  31. http_timeout = 30
  32. from os import getenv
  33. debug = True if getenv("MMGEN_DEBUG") else False
  34. mins_per_block = 8.5
  35. passwd_max_tries = 5
  36. max_randlen,min_randlen = 80,5
  37. usr_randlen = 20
  38. salt_len = 16
  39. hash_preset = '3'
  40. hash_presets = {
  41. # Scrypt params:
  42. # ID N p r
  43. # N is a power of two
  44. '1': [12, 8, 1],
  45. '2': [13, 8, 4],
  46. '3': [14, 8, 8],
  47. '4': [15, 8, 12],
  48. '5': [16, 8, 16],
  49. }
  50. wallet_addr_label_symbols = ".","_",",","-"," "
  51. max_wallet_addr_label_len = 16