Commit graph

3,143 commits

Author SHA1 Message Date
212cb2d0fb
opts parsing bugfix 2024-10-08 13:21:16 +00:00
d7e3b55e3b
opts, help: refactor, parse cmdline opts natively, filter global opts
- command-line options are now parsed natively, without use of the getopt module
- global options and --longhelp helpscreen are now contextual, depending on coin
  and executed command
- commands invoked with out-of-context global options (e.g. `mmgen-walletgen
  --coin=btc`) now fail with an ‘unrecognized option’ error

Testing:

    $ test/test-release.sh help
    $ test/cmdtest.py opts
2024-10-08 12:56:02 +00:00
307e6fb541
README.md: update command help links 2024-10-08 12:56:01 +00:00
e1e1f07995
whitespace, minor cleanups 2024-10-08 12:56:01 +00:00
d95cdf49b9
cfg.py: do_post_init -> caller_post_init 2024-10-08 12:56:00 +00:00
5cc4a20724
cfg.py: add cmd_caps attr 2024-10-08 12:56:00 +00:00
f6843a3fcd
opts.py: refactor usage(), version(), show_hash_presets() 2024-10-08 12:56:00 +00:00
a3354aed74
cmdtest.py: add ref3_pw test 2024-10-08 12:55:59 +00:00
d520e31e53
test-release.sh: add separate help test 2024-10-08 12:55:59 +00:00
d8aca5bb6c
test suite: whitespace, minor cleanups 2024-10-08 12:55:59 +00:00
7fbb50db92
scripts/gendiff.py: support diff options 2024-10-08 12:55:58 +00:00
66521a07f2
update --longhelp text 2024-10-08 12:55:58 +00:00
3b3d06fb51
cmdtest.py: remove unneeded opts from spawn cmdline 2024-10-08 12:55:58 +00:00
647c7a2601
cmdtest.py regtest: cleanups 2024-10-08 12:55:57 +00:00
fddb5b73b2
cmdtest.py: autosign_eth, ethdev: cleanups 2024-10-08 12:55:57 +00:00
75051cd831
regtest: remove coin component from data_dir path 2024-10-08 12:55:57 +00:00
93e586c9f0
test suite: whitespace, string formatting 2024-10-08 12:55:51 +00:00
8edc7da5a2
BCH cashaddr: full support
- BCH addresses are now displayed in cashaddr format by default.  This may be
  overridden on the command line with --cashaddr=0, or in the config file by
  setting `bch_cashaddr` to false
- In tracking wallet views, the ‘h’ key toggles between legacy and cashaddr
  address display
- Transaction views display BCH addresses in both formats simultaneously
- The --usecashaddr=0 daemon option is no longer required and should be omitted

Testing:

    $ test/unit_tests.py -v cashaddr bip_hd.multicoin
    $ test/gentest.py --coin=bch -v --type=C 1 test/ref/bitcoin_cash/bchwallet.dump
    $ test/cmdtest.py -e bch_txview_cashaddr1 bch_txview_cashaddr2
    $ test/cmdtest.py --coin=bch -e txsend regtest.view autosign_automount
    $ test/cmdtest.py --coin=bch -n ref3_addr
2024-09-29 11:59:57 +00:00
15b94038a4
self.proto.pubhash2addr(): return CoinAddr instance 2024-09-29 11:59:57 +00:00
eeb98869d3
CoinAddr: add views, view_pref attrs 2024-09-29 11:59:56 +00:00
15e01df145
cleanups, whitespace 2024-09-29 11:59:56 +00:00
cb113ffc82
test suite: cleanups 2024-09-29 11:59:56 +00:00
9a70a04b01
scrambletest.py: cleanups 2024-09-29 11:59:55 +00:00
044c2a0b91
whitespace throughout 2024-09-29 11:59:55 +00:00
3c726f9091
BCH cashaddr: low-level support 2024-09-29 11:59:54 +00:00
3f1c0b2a93
unit_tests.py: cleanups, add desc param to subtest methods 2024-09-29 11:59:54 +00:00
5c433bd3f5
tx.info: cleanups 2024-09-29 11:59:54 +00:00
037bbda14a
whitespace, minor cleanups 2024-09-29 11:59:53 +00:00
9a859bac70
objtest.py: add CoinAddr test for ETH 2024-09-29 11:59:48 +00:00
a323a2f02a
Version 15.0.0 v15.0.0 2024-09-22 10:51:38 +00:00
e1df5c78b7
setup.cfg: update keywords and classifiers 2024-09-22 10:51:33 +00:00
5dfa09316f
add v15.0.0 release notes 2024-09-22 09:36:11 +00:00
51ffc048e7
update documentation from wiki 2024-09-22 09:36:11 +00:00
9529666172
support Monero v18.3.4 2024-09-22 09:36:04 +00:00
ab1fbb8f5d
wallet: ‘requested on command line’ -> ‘user-configured’ 2024-09-20 09:36:06 +00:00
3b4e9ebc1e
pylint: test suite, examples 2024-09-20 09:36:06 +00:00
790a22d271
pylint: various 2024-09-20 09:36:06 +00:00
02ff2dd94a
pylint: branch logic 2024-09-20 09:36:05 +00:00
70bc4ffa8f
pylint: yield from 2024-09-20 09:36:05 +00:00
4da5945eb3
pylint: imports 2024-09-20 09:36:04 +00:00
7abff3bbc6
xmrwallet: block indentation fix 2024-09-20 09:36:04 +00:00
eeb8ae3219
pylint: increase max-line-length to 116 2024-09-20 09:36:04 +00:00
48923c2219
autosign, led: improve no sudo handling 2024-09-20 09:36:03 +00:00
489d0e733d
test suite: minor fixes 2024-09-20 09:35:58 +00:00
4483b0fb01
mmgen-autosign: disable swap
Prevent the volatile memory to which temporary offline signing wallets are
written from being swapped to disk.  This feature is supported on both Linux
and macOS.

Swap is disabled automatically during the setup process.  It can also be
disabled manually using the ‘disable_swap’ command.  Compressed RAM (zram)
swap is left untouched.

Regarding vulnerability of existing setups, please note the following
mitigating factors:

    a) mmgen-autosign encrypts all temporary signing wallets with random 16-
       or 32-byte passwords;
    b) some platforms swap to compressed RAM instead of disk (SoCs running
       Armbian, for example);
    c) swap partitions are often encrypted; and
    d) even on platforms that do swap to unencrypted files or partitions, the
       likelihood of the relevant pages of RAM being swapped out on a machine
       used exclusively for offline signing is minimal.

For peace of mind, existing users may wish to wipe the autosign key on their
removable device.  Those concerned about metadata leakage might additionally
zero the swap partition(s) on their offline signing machine(s).
2024-09-06 12:20:20 +00:00
19bc4af907
Autosign: set up the macOS ramdisk after generating key 2024-09-06 12:20:20 +00:00
2b4ecd8455
led.py: chmod the control files automatically if possible 2024-09-06 12:20:19 +00:00
4a3c393c24
Autosign: run blkid as user 2024-09-06 12:20:19 +00:00
0a15307e05
autosign, led, unit test testdep: minor cleanups 2024-09-06 12:20:13 +00:00
0036d0cae9
autosign: new macos_ramdisk_setup, macos_ramdisk_delete ops 2024-09-04 13:08:52 +00:00