Commit graph

3,143 commits

Author SHA1 Message Date
2cb4df72c4
Litecoin Bech32 address support 2018-05-09 17:37:18 +03:00
b74b0fb57e
gentest.py: support pycoin v0.90a 2018-05-09 17:28:00 +03:00
33fc67e241
zcash: update address, viewkey prefixes 2018-05-09 17:23:33 +03:00
cc39b8da5e
monero: support v0.12.0.0 (Lithium Luna) 2018-05-09 13:32:46 +03:00
21042737fe
Support UTF-8 wallet labels; new UTF-8 restrictions
- this means .mmdat wallet file itself is now UTF-8 (formerly ASCII-only)
- control and combining characters are now forbidden in all labels
2018-05-08 14:00:16 +03:00
0b6d047c25
test.py: add throwaway tmp dir 2018-05-08 13:44:12 +03:00
90ebc94170
Stealth mnemonic entry
Different keyboard keys make different clicking sounds when pressed.  In
particular, the ENTER and SPACE keys are noticeably louder on most keyboards.
This makes possible an acoustic side-channel attack whereby an eavesdropper
with a microphone could gain knowledge about the lengths of the words in a
user's mnemonic seed phrase as they're being typed.  This information could
also be obtained by analyzing the pauses between words.

Since the words in the Electrum wordlist used by MMGen vary in length from three
to twelve letters, the keyspace required to be searched in a brute-force attack
on the seed could thus be drastically reduced.

Stealth mnemonic entry mitigates this vulnerability by treating all characters
that are not lowercase letters in the range 'a-z' as “pad characters”.  Pad
characters are simply discarded and can be typed either before, after or in the
middle of words.  For each word, once a sufficient number of characters,
including pad characters, have been typed (currently 12), any pad character
can be used to enter the word.  Since each word can now be entered using the
same number of keystrokes and padded with random characters at random
positions, acoustic analysis of the user's keyboard clicks will yield little
useful information for an attacker.

This feature is enabled by default as it doesn't impact existing functionality
and can simply be ignored if one chooses not to use it.
2018-05-06 15:54:48 +03:00
774730673d
crypto.py: user random cleanups 2018-05-06 15:31:17 +03:00
a83952b4ec
Terminal code cleanups, use os.read() for raw keypress reads 2018-05-05 23:51:07 +03:00
5f8c35c42c
Documentation updates (Bech32, password generation)
- Getting-Started-with-MMGen.md (bech32)
- MMGen-Quick-Start-with-Regtest-Mode.md (error fix)
- Recovering-Your-Keys-Without-the-MMGen-Software.md (bech32, password generation)
2018-05-03 22:00:06 +03:00
ea6629d644
Format full-width CJK characters properly 2018-04-27 10:48:00 +03:00
3deb346133
Minor changes, bugfixes 2018-04-27 10:37:36 +03:00
00079ae156
Implement _b58tonum() as generator func; utf8 label test, bugfixes 2018-04-25 16:14:28 +03:00
bf5334f4cb
Update signing keys, links 2018-04-08 09:42:53 +03:00
d49c8627aa
Support 40-character UTF-8 tracking wallet comments 2018-03-09 18:16:20 +03:00
896c7fe996
Support UTF-8 filenames and paths 2018-03-09 16:16:10 +03:00
b230b43d4b
MMGEN_DEBUG_ALL env var; tw display and other fixes 2018-03-09 14:29:58 +03:00
351f5f9118
Use new-style string formatting 2018-03-07 12:59:35 +03:00
b80b059815
Use map() instead of list comprehension where possible 2018-03-07 12:55:06 +03:00
a201aeae94
Minor fixes, cleanups 2018-03-07 12:51:24 +03:00
3cfcd45d59
test/gentest.py: add p2sh-segwit wallet dump 2018-03-06 10:31:57 +03:00
27c3196269
TX size estimation: --vsize-adj fixes, tests 2018-03-06 10:29:20 +03:00
6f572cddde
Bech32: additional tests 2018-03-06 10:28:41 +03:00
165f0483e8
Display long addresses correctly 2018-03-06 10:27:51 +03:00
9b109fec58
Minor fixes 2018-03-06 10:26:41 +03:00
e4114eedf3
Bech32 address support
- Address type code is 'B'
- Generate with `--type=B` or `--type=bech32`
2018-03-05 12:46:35 +03:00
ed2b94caca
tx size estimation: reworked code, bugfixes, --vsize-adj option
- Estimated vsize is compared with actual vsize after signing.
  If estimate is off by more than 5%, the program aborts, asking
  the user to re-create the tx using --vsize-adj
- Estimated and actual vsizes will differ meaningfully only in the
  rare situation where non-MMGen addrs with uncompressed pubkeys
  are used as inputs
2018-03-05 11:59:50 +03:00
e9385725cf
Add g.proto.witness_ver_num, minor fixes and changes 2018-03-05 09:29:20 +03:00
cf20311af5
tx: max_tx_file_size, additional checks during parsing
Since the tx file is potentially untrusted data, be strict about what we allow:
- check data size against max_tx_file_size (defaults to 100000 bytes)
- check for ascii encoding
- check line lengths
- reject extraneous keys in inputs and outputs (done by MMGenListItem)

max_tx_file_size can be overridden in config file
2018-03-03 10:00:42 +03:00
e2d51469e6
scrambletest.py: add coverage support
test.py altcoin_ref: enable internal ed25519
2018-02-26 20:01:20 +03:00
ebabea39ce
tw.add_label(): code cleanups, tests 2018-02-26 15:34:59 +03:00
d5d81b8c02
test/test.py: no_msg option for MMGenPexpect 2018-02-26 15:31:47 +03:00
282fec8054
addrgen,keygen: use internal ed25519 module by user request 2018-02-24 21:43:55 +03:00
96b337e493
A few minor fixes 2018-02-24 21:29:16 +03:00
8fe92de627
Coverage support for tests via Python trace module 2018-02-24 14:39:49 +03:00
4009e1794f
test-release.sh: indentation fixes 2018-02-24 14:34:30 +03:00
e53c9bbf53
mmgen-tool listaddresses, twview: formatting fixes 2018-02-23 18:59:46 +03:00
6aca0f2986
use estimatesmartfee if the daemon supports it 2018-02-22 23:13:20 +03:00
d457259fcf
rpc.py: on_fail='raise', RPCFailure exception 2018-02-22 21:54:46 +03:00
1510419780
Add DSA signing key 2018-02-20 16:55:16 +03:00
3d89a9e236
Version 0.9.7 v0.9.7 2018-02-17 18:37:58 +03:00
58f4af6966
Update documentation from wiki (mostly formatting) 2018-02-17 18:36:04 +03:00
6b9df0ea44
Change all eval() calls to ast.literal_eval()
- closes an exploit whereby an infected online MMGen installation could craft
  a special TX file to trick an offline signing MMGen into executing an
  arbitrary expression
- update TX file format (to v3) to permit calling literal_eval() on unmodified
  inputs and outputs data (old v2 file format continues to be supported)
- new TX file conversion script: `scripts/tx-v2-to-v3.py`
- `scripts/tx-old2new.py` modified and renamed to `scripts/tx-v1-to-v3.py`
2018-02-17 15:35:45 +03:00
f7e54cce93
Minor fixes and improvements
- mmgen-tool listaddresses: add 'show_age','show_days' options
- init_fail(): make 'silent' override 'MMGEN_TRACEBACK', fixing regression
  introduced by 3909339
- test/test.py: improve formatting of --list output
- test/{test,objtest,scrambletest}.py, mmgen/tool.py: indentation (whitespace) fixes
2018-02-17 12:34:15 +03:00
65e2db0512
Monero,autosign: minor improvements
- Monero (create,sync): specify addr range; display total balance for all wallets
- autosign: improve exception handling, launch the standard way
2018-02-10 19:54:17 +03:00
258651a531
Monero: new automated wallet syncing utility
- mmgen-tool: `syncmonerowallets`: batch-sync Monero wallets non-interactively
- mmgen-tool: `keyaddrlist2monerowallet` -> `keyaddrlist2monerowallets`
2018-01-21 19:18:00 +03:00
83e9899b38
Version 0.9.6 v0.9.6 2018-01-14 17:24:36 +03:00
d3e96744fe
Monero: add tests to test-release.sh 2017-12-28 21:40:06 +03:00
df0385160b
XMR (Monero) key/address generation support and wallet generating utility
- Monero key-address files include spendkey, viewkey and wallet password
- Wallet password is first 16 bytes of SHA256x2(spendkey)
- Generate Monero wallets either by hand with:
    1) `monero-wallet-cli --generate-from-spend-key walletfile`, using the keyaddrfile data,
  or automatically, using:
    2) `mmgen-tool keyaddrlist2monerowallet keyaddrfile`
  The utility will generate a wallet for each key/address pair in the keyaddrfile and encrypt
  it using the password.  The password is supplied via stdin.

- Other feature: 32-byte hexadecimal password generation with `mmgen-passgen --hex`
2017-12-28 16:03:28 +03:00
279e8872ef
Improve coin selection logic, allow coin disabling 2017-12-25 09:48:59 +03:00