Commit graph

37 commits

Author SHA1 Message Date
f840069ecb
update copyright dates 2026-02-11 13:02:12 +00:00
e54f039690
update copyright dates 2025-02-16 14:42:27 +00:00
74bc49f973
whitespace: tests, top level 2024-10-18 10:32:12 +00:00
5150ca586b
update file header 2024-10-18 10:32:06 +00:00
8e46932475
update copyright dates 2024-01-19 11:05:10 +00:00
4c49a6e59c
launch test and helper scripts with main.launch() 2023-12-12 10:19:51 +00:00
63a529845a
main.py, test suite: minor cleanups 2023-12-12 10:19:50 +00:00
7135744de7
use pycryptodomex instead of pysha3 for keccak_256 function 2023-10-18 12:11:48 +00:00
653827c15e
test suite: minor fixes and cleanups 2023-10-13 09:51:14 +00:00
a7e816f98e
test suite: make test scripts importable as modules 2023-10-13 09:51:14 +00:00
6a21044127
test suite: improve initialization of sys.path and repo_root 2023-10-13 09:51:14 +00:00
055759f02a
pylint integration: minor compatibility changes 2023-10-13 09:51:13 +00:00
0a1e3c3c98
pylint integration: gc.platform -> sys.platform 2023-10-13 09:51:12 +00:00
775e596dda
pylint (test suite) - unused variables 2023-10-11 12:58:52 +00:00
7b32c412d5
pylint (test suite) - imports 2023-10-11 12:58:51 +00:00
01430166e5
whitespace, comments, docstrings (test suite) 2023-10-11 12:58:51 +00:00
31a6e62a24
test suite: sys.path, overlay, PYTHONPATH cleanups 2023-09-26 10:23:40 +00:00
e1f68963a7
use pycryptodome/pycryptodomex for Keccak testing 2023-05-19 16:16:52 +00:00
4f3f031a3b
minor testing fixes 2023-05-17 15:44:11 +00:00
0fa5e707a9
test suite: use mmgen.pyversion for version checking 2023-05-17 15:44:11 +00:00
2345dc4665
install,test: disable pysha3 for Python 3.11 2023-05-13 19:55:57 +00:00
4771e55047
test/hashfunc.py: add keccak test vectors 2023-05-13 19:41:07 +00:00
93bcc92534
globalvars.py -> cfg.py 2023-04-04 16:04:10 +00:00
c7adb56e38
Config API, Part I
This patch eliminates the global configuration variables `opt` and `g`, making
all functions and class instances locally configurable.  Configuration data is
passed to functions and constructors via the `cfg` parameter and made available
to methods in `self.cfg`.

Local configuration free from dependence on the command line will enable the
creation of multiple, independently configured instances of MMGen’s data
objects within a single process.

Potential applications include testing (tracking wallets configured to interact
with spawned processes, for example) and the use of MMGen as a library for
other projects.

This patch completes most of the work required to enable the API.  The full
implementation will appear in a forthcoming commit.
2023-03-28 18:14:37 +00:00
1aeefd64ae
update copyright dates 2023-01-03 10:36:07 +00:00
20f4b12832
module docstring cleanups [134 files] 2022-11-14 09:54:07 +00:00
96cd623196
move bech32, ed25519, keccak and license modules to contrib 2022-02-10 14:44:44 +00:00
1a896d9af9
update copyright dates 2022-01-04 19:51:22 +00:00
0493f8077b
test suite: use getrand() instead of os.urandom() 2021-10-02 17:54:12 +00:00
6692a43d59
f-strings, whitespace (test files) [44 files patched] 2021-09-29 21:17:57 +00:00
cb7f38370b
Update copyright dates 2021-02-19 20:09:06 +03:00
de7fba0c19
test suite: relocate some modules, use relative imports 2020-03-16 10:45:00 +00:00
673b97b3b8
update copyright dates 2020-02-18 14:07:27 +00:00
1f3c048172
test suite: minor fixes & cleanups 2019-11-15 10:46:16 +00:00
d57631695a
test suite: move path fixup code to test/tests_header.py 2019-10-23 10:01:11 +00:00
d49159a92b
various changes and fixes 2019-10-10 22:53:43 +03:00
a7126ede03
Remove dependencies on pysha3 and ethereum modules
- pysha3: Monero and Ethereum use the old pre-SHA3 version of the keccak
  hash function, which is not supported by hashlib.sha3.

  The pysha3 package supports the function but is not portable.

  Therefore, use the pure-Python implementation mmgen.keccak as a fallback,
  making the pysha3 package optional.

  Use of mmgen.keccak may be forced with --use-internal-keccak-module

  mmgen.keccak was ported from the Python 2 implementation at
  https://github.com/ctz/keccak

- ethereum (pyethereum): Installation of this package presents numerous
  problems due to poor maintenance and many superfluous dependencies.

  Therefore, use stripped-down and modified local versions of
  ethereum.transactions and ethereum.utils as fallbacks, making the ethereum
  package optional.

  The local pyethereum.utils uses mmgen.keccak as a fallback for pysha3's
  keccak implementation.
2019-03-23 17:21:34 +03:00
Renamed from test/sha2test.py (Browse further)