config.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. seed_ext = "mmseed"
  23. default_wl = "electrum"
  24. #default_wl = "tirosh"
  25. seed_lens = 128,192,256
  26. seed_len = 256
  27. mnemonic_lens = [i / 32 * 3 for i in seed_lens]
  28. from os import getenv
  29. debug = True if getenv("MMGEN_DEBUG") else False
  30. passwd_max_tries = 5
  31. max_randlen,min_randlen = 80,5
  32. usr_randlen = 20
  33. salt_len = 16
  34. hash_preset = '3'
  35. hash_presets = {
  36. # Scrypt params:
  37. # ID N p r
  38. # N is a power of two
  39. '1': [12, 8, 1],
  40. '2': [13, 8, 4],
  41. '3': [14, 8, 8],
  42. '4': [15, 8, 12],
  43. '5': [16, 8, 16],
  44. }