Test UTF-8 passwords; add release notes
This commit is contained in:
parent
156ae60a6d
commit
6972153248
23 changed files with 278 additions and 50 deletions
|
|
@ -1,10 +0,0 @@
|
|||
MMGen MS Windows Notes
|
||||
|
||||
The following MMGen features are unsupported or broken on the MSWin/MinGW platform:
|
||||
|
||||
- Autosign (not supported)
|
||||
- Zcash z-address generation (requires libsodium)
|
||||
- Monero wallet creation/syncing* (IO stream issues with pexpect and the password prompt)
|
||||
- UTF-8 label, filename and path support (may work on versions of Windows with native UTF-8 support)
|
||||
|
||||
*Monero address and viewkey generation works fine.
|
||||
10
doc/README.mswin.md
Normal file
10
doc/README.mswin.md
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
### MMGen MS Windows Notes
|
||||
|
||||
The following MMGen features are unsupported or broken on the MSWin/MinGW platform:
|
||||
|
||||
- Autosign (not supported)
|
||||
- Zcash z-address generation (requires libsodium)
|
||||
- Monero wallet creation/syncing\* (IO stream issues with pexpect and the password prompt)
|
||||
- UTF-8 filename and path support
|
||||
|
||||
\*Monero address and viewkey generation are fully supported.
|
||||
23
doc/release-notes/release-notes-v0.8.3.md
Normal file
23
doc/release-notes/release-notes-v0.8.3.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
MMGen version 0.8.3
|
||||
|
||||
New features/improvements:
|
||||
|
||||
* New native Bitcoin RPC library.
|
||||
* Support for cookie-based RPC authentication (new in Bitcoin Core v0.12.0).
|
||||
* Batch mode available when listing and importing addresses.
|
||||
* mmgen-tool listaddresses: 'addrs' argument allows you to specify an
|
||||
address or range of addresses.
|
||||
|
||||
NOTE: if MMGen is already installed on your system, you must remove your
|
||||
existing installation by hand before installing this new version. On Linux,
|
||||
this means deleting everything under the directory
|
||||
'/usr/local/lib/python2.7/dist-packages/mmgen/'. Also, if you did a 'git pull'
|
||||
instead of a fresh clone, you must delete the 'build' directory in the
|
||||
repository root before installing.
|
||||
|
||||
The 'mmgen-pywallet' utility has been removed. It's no longer needed, as the
|
||||
'bitcoin-cli dumpwallet' command (available since Core v0.9.0) provides
|
||||
equivalent functionality.
|
||||
|
||||
The Windows port isn't being actively maintained at the moment. Use at your own
|
||||
risk, and report any problems on the Bitcointalk forum.
|
||||
16
doc/release-notes/release-notes-v0.8.5.md
Normal file
16
doc/release-notes/release-notes-v0.8.5.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
MMGen version 0.8.5
|
||||
|
||||
New features/improvements:
|
||||
|
||||
* Colored output
|
||||
* Label editing in mmgen-txcreate
|
||||
|
||||
This release includes a major object-oriented rewrite of much of the code.
|
||||
|
||||
NOTE: The transaction file format has changed. Since TX files are temporary, this
|
||||
shouldn't be a problem for most. However, the script 'tx-old2new.py' in the
|
||||
scripts directory will convert old old TX files to the new format for those who
|
||||
need to do so.
|
||||
|
||||
The Windows implementation is functional again. Use at your own risk, and
|
||||
report any problems on the Bitcointalk forum.
|
||||
7
doc/release-notes/release-notes-v0.8.6.md
Normal file
7
doc/release-notes/release-notes-v0.8.6.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
**New features/improvements**
|
||||
|
||||
- Address generation using secp256k1 library (Linux only)
|
||||
|
||||
Instructions for installing the secp256k1 library on your system can be found at doc/wiki/install-linux/Install-MMGen-on-Debian-or-Ubuntu-Linux.md
|
||||
|
||||
If secp256k1 is not installed on the system, MMGen will still be usable. It just falls back to 'keyconv', or failing that, python-ecdsa for generating addresses.
|
||||
12
doc/release-notes/release-notes-v0.8.7.md
Normal file
12
doc/release-notes/release-notes-v0.8.7.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
*Assorted fixes/improvements*
|
||||
|
||||
- Importing addresses with `--rescan` working again
|
||||
- Tracking and spending non-MMGen addresses now fully functional
|
||||
- `mmgen-txcreate`: improvements in unspent outputs display
|
||||
- `mmgen-txsign`: use bitcoind wallet dump as keylist fixed
|
||||
|
||||
- Testnet support:
|
||||
- Practice sending transactions without risking funds
|
||||
(free testnet coins: https://tpfaucet.appspot.com/)
|
||||
- Test suite fully supported
|
||||
- To enable, set `MMGEN_TESTNET` environment variable
|
||||
12
doc/release-notes/release-notes-v0.8.7pre.md
Normal file
12
doc/release-notes/release-notes-v0.8.7pre.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Assorted fixes/improvements:
|
||||
|
||||
- Importing addresses with --rescan working again
|
||||
- Tracking and spending non-MMGen addresses fully functional
|
||||
- mmgen-txcreate: improvements in unspent outputs display
|
||||
- mmgen-txsign: use bitcoind wallet dump as keylist without modification
|
||||
|
||||
- Testnet support:
|
||||
- Practice sending transactions without risking real funds
|
||||
(free testnet coins: https://tpfaucet.appspot.com/)
|
||||
- Test suite fully supported
|
||||
- To enable, set MMGEN_TESTNET environment variable
|
||||
20
doc/release-notes/release-notes-v0.8.8.md
Normal file
20
doc/release-notes/release-notes-v0.8.8.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
**Data directory, config file and default wallet support**
|
||||
- Data directory is `~/.mmgen`; config file is `mmgen.cfg`.
|
||||
- When default wallet is present in data directory, specifying the wallet
|
||||
on the command line is optional.
|
||||
- Datadir structure mirrors that of Bitcoin Core: mainnet and testnet share
|
||||
a common config file, with testnet putting its own files, including the
|
||||
default wallet, in the subdirectory 'testnet3'.
|
||||
- Global vars are now overriden in this order:
|
||||
1) config file
|
||||
2) environmental variables beginning with `MMGEN_` (listed in globalvars.py)
|
||||
3) command line
|
||||
- Long (common) opts added for setting global vars; display with `--longhelp`.
|
||||
|
||||
The test suite has been updated to test these new features.
|
||||
|
||||
**Other changes**
|
||||
- Always get user entropy, even for non-critical randomness, unless `-r0`.
|
||||
- rpcuser,rpcpassword now override cookie authentication, as with Core.
|
||||
- Communication with remote bitcoind supported with `--rpc-host` option.
|
||||
- Testnet use can be overridden with the `--testnet=0|1` option.
|
||||
15
doc/release-notes/release-notes-v0.8.9.md
Normal file
15
doc/release-notes/release-notes-v0.8.9.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
This release brings full functionality and wider testing to the MS Windows port. MMGen now works with both WinXP/MinGW32 and Win7+/MinGW64, and separate, updated installation instructions for both platforms have been added to the wiki. A working MinGW environment is now required to run MMGen.
|
||||
|
||||
New Windows features:
|
||||
- Full non-interactive test suite support with pexpect (PopenSpawn)
|
||||
- secp256k1 address generation support
|
||||
- Secure wallet deletion with sdelete
|
||||
|
||||
Windows bugfixes:
|
||||
- A critical bug in writing the encrypted keyaddrfile has been fixed. This bug
|
||||
would have affected only online wallet use and would not have led to the loss
|
||||
of coins
|
||||
- Cookie filename fixed; RPC cookie authentication now functional
|
||||
|
||||
General features:
|
||||
- --bitcoin-data-dir, --rpc-port, --rpc-user, and --rpc-password options
|
||||
11
doc/release-notes/release-notes-v0.9.0.md
Normal file
11
doc/release-notes/release-notes-v0.9.0.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
New features:
|
||||
- New `mmgen-txdo` command creates, signs and sends transactions in one operation
|
||||
- Exporting seed to hexadecimal (mmhex) format now supported
|
||||
- Support for 8-color terminals, better default colors on 256-color terminals
|
||||
- `--force-256-color` option overrides terminfo entry and $TERM environment variable
|
||||
- Selected commands of `mmgen-tool` now accept stdin input
|
||||
- Transaction file format change: TXID appended to file after tx is broadcast
|
||||
|
||||
A new tutorial, [Recovering Keys Without MMGen][01], has been added to the wiki
|
||||
|
||||
[01]: https://github.com/mmgen/mmgen/wiki/Recovering-Keys-Without-MMGen
|
||||
25
doc/release-notes/release-notes-v0.9.1.md
Normal file
25
doc/release-notes/release-notes-v0.9.1.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
BIP 125 replace-by-fee (RBF) support:
|
||||
- Create replaceable transactions using the `--rbf` switch to `mmgen-txcreate` and `mmgen-txdo`
|
||||
- Create, and optionally sign and send, replacement transactions with the new `mmgen-txbump` command
|
||||
|
||||
Satoshis-per-byte format:
|
||||
- Tx fees, both on the command line and at the interactive prompt, may be specified either as absolute BTC amounts or in satoshis-per-byte format (an integer followed by the letter 's')
|
||||
|
||||
Improved fee handling:
|
||||
- Completely reworked fee-handling code with better fee checking
|
||||
- default tx fee eliminated, max_tx_fee configurable in mmgen.cfg
|
||||
|
||||
Command scriptability:
|
||||
- New `--yes` switch makes `mmgen-txbump` and `mmgen-txsign` fully non-interactive and `mmgen-txcreate` and `mmgen-txsend` mostly non-interactive
|
||||
|
||||
Bugfixes and usability improvements:
|
||||
- 'mmgen-tool listaddresses' now list addresses from multiple seeds correctly
|
||||
- Improved user interaction with all 'mmgen-tx*' commands
|
||||
|
||||
The RBF and new fee functionality are documented in the [Getting Started][01] guide.
|
||||
|
||||
The guide has also been updated with a new [Preliminaries][03] section and a new [Hot wallets and key-address files][02] section.
|
||||
|
||||
[01]: https://github.com/mmgen/mmgen/wiki/Getting-Started-with-MMGen#a_fee
|
||||
[02]: https://github.com/mmgen/mmgen/wiki/Getting-Started-with-MMGen#a_hw
|
||||
[03]: https://github.com/mmgen/mmgen/wiki/Getting-Started-with-MMGen#a_i
|
||||
12
doc/release-notes/release-notes-v0.9.3.md
Normal file
12
doc/release-notes/release-notes-v0.9.3.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
**New features:**
|
||||
|
||||
- Bob and Alice regtest mode for testing MMGen in a mock two-user environment.
|
||||
[Documented](https://github.com/mmgen/mmgen/wiki/MMGen-Quick-Start-with-Regtest-Mode) in the wiki, tests added to test suite
|
||||
|
||||
- Compressed P2PKH address support (address type 'C')
|
||||
|
||||
- BCH (Bitcoin Cash) support
|
||||
|
||||
- Segwit (address type 'S') support deployed after Segwit activation on mainnet
|
||||
|
||||
- and, of course, numerous bugfixes and small improvements
|
||||
8
doc/release-notes/release-notes-v0.9.5.md
Normal file
8
doc/release-notes/release-notes-v0.9.5.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
URL: https://github.com/mmgen/mmgen/releases/tag/v0.9.5
|
||||
|
||||
**New features:**
|
||||
|
||||
- Altcoin framework + full Litecoin support [(commit)](https://github.com/mmgen/mmgen/commit/35d10911596c76227b8cd6318681c6ac9dc02a42)
|
||||
|
||||
- Offline transaction autosigning [(commit)](https://github.com/mmgen/mmgen/commit/8fb3efd99cc2f62e7f12f0e1f9893dd287064035) [(VIDEO)](https://github.com/mmgen/mmgen/releases/tag/autosign)
|
||||
|
||||
8
doc/release-notes/release-notes-v0.9.6.md
Normal file
8
doc/release-notes/release-notes-v0.9.6.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
**New features:**
|
||||
|
||||
- Key/address generation support for ETH, ETC, ZEC, XMR and 144 Bitcoin-derived altcoins
|
||||
- Zcash z-address support (Linux only)
|
||||
- Monero wallet generation utility (Linux only): `mmgen-tool keyaddrlist2monerowallet`
|
||||
- 32-byte hexadecimal password generation with `mmgen-passgen --hex`
|
||||
|
||||
Altcoin support is EXPERIMENTAL. Use at your own risk
|
||||
6
doc/release-notes/release-notes-v0.9.7.md
Normal file
6
doc/release-notes/release-notes-v0.9.7.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
**New features:**
|
||||
|
||||
- Monero wallet syncing utility (258651a)
|
||||
- mmgen-tool listaddresses: add 'show_age','show_days' options (f7e54cc)
|
||||
|
||||
This release closes a serious exploit (6b9df0e). Upgrading is advised. In particular, the **offline** MMGen installation in an online/offline setup should be upgraded.
|
||||
46
doc/release-notes/release-notes-v0.9.8.md
Normal file
46
doc/release-notes/release-notes-v0.9.8.md
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
### MMGen Version 0.9.8 Release Notes
|
||||
|
||||
**Interesting new features:**
|
||||
|
||||
- Bech32 address support (BTC: e4114ee, LTC: 2cb4df7)
|
||||
- Stealth mnemonic entry (90ebc94)
|
||||
|
||||
**New comprehensive UTF-8 support:**
|
||||
|
||||
- UTF-8 filenames and paths (896c7fe)
|
||||
- UTF-8 tracking wallet comments (d49c862)
|
||||
- UTF-8 wallet labels (2104273)
|
||||
- Proper formatting of CJK strings (ea6629d)
|
||||
|
||||
**Security/bugfixes:**
|
||||
|
||||
- `max_tx_file_size` and other TX file checks (cf20311)
|
||||
- TX size estimation fixes (ed2b94c)
|
||||
- Require brainwallet and passwords to be UTF-8 encoded (9f2153c)
|
||||
|
||||
Coin daemons used for testing:
|
||||
|
||||
- Bitcoin Core v0.16.0
|
||||
- Litecoin Core v0.16.0rc1
|
||||
- Bitcoin-ABC v0.17.1
|
||||
- Monero v0.12.0.0 (Lithium Luna)
|
||||
|
||||
Tools used for testing:
|
||||
|
||||
- Zcash-Mini (a2b3504)
|
||||
- Pycoin v0.90a
|
||||
- Pyethereum v2.1.2
|
||||
- Vanitygen-Plus (5ca3d22)
|
||||
|
||||
Note that some features, notably UTF-8 filename and path support, do not work
|
||||
on the MS Windows/MinGW platform. See the file [doc/README.mswin.md][1] for
|
||||
details.
|
||||
|
||||
All user input is now required to be UTF-8 encoded. This will break backward
|
||||
compatibility in the unlikely event that a) you're using a non-ASCII wallet
|
||||
password or brainwallet, and b) your native charset is non-UTF-8. If this is
|
||||
the case, you must change your wallet password to an ASCII one (or export your
|
||||
brainwallet to another MMGen wallet format) using an older version of MMGen
|
||||
before upgrading.
|
||||
|
||||
[1]: ../doc/README.mswin
|
||||
|
|
@ -304,7 +304,7 @@ an empty passphrase, just hit ENTER twice.
|
|||
for i in range(g.passwd_max_tries):
|
||||
pw = ' '.join(get_words_from_user('Enter {}: '.format(desc)))
|
||||
pw2 = ' '.join(get_words_from_user('Repeat passphrase: '))
|
||||
dmsg('Passphrases: [{}] [{}]'.format(pw,pw2))
|
||||
dmsg(u'Passphrases: [{}] [{}]'.format(pw,pw2))
|
||||
if pw == pw2:
|
||||
vmsg('Passphrases match'); break
|
||||
else: msg('Passphrases do not match. Try again.')
|
||||
|
|
|
|||
|
|
@ -42,6 +42,11 @@ def cleandir(d):
|
|||
|
||||
def getrandnum(n): return int(hexlify(os.urandom(n)),16)
|
||||
def getrandhex(n): return hexlify(os.urandom(n))
|
||||
def getrandnum_range(nbytes,rn_max):
|
||||
while True:
|
||||
rn = int(hexlify(os.urandom(nbytes)),16)
|
||||
if rn < rn_max: return rn
|
||||
|
||||
def getrandstr(num_chars,no_space=False):
|
||||
n,m = 95,32
|
||||
if no_space: n,m = 94,33
|
||||
|
|
|
|||
|
|
@ -328,9 +328,9 @@ Display options: show [D]ays, [g]roup, show [m]mgen addr, r[e]draw screen
|
|||
|
||||
try:
|
||||
if not is_mmgen_id(arg1):
|
||||
assert coinaddr,"Invalid coin address for this chain: {}".format(arg1)
|
||||
assert coinaddr,"{pn} address '{ma}' not found in tracking wallet"
|
||||
assert coinaddr.is_in_tracking_wallet(),"Address '{ca}' not found in tracking wallet"
|
||||
assert coinaddr,u"Invalid coin address for this chain: {}".format(arg1)
|
||||
assert coinaddr,u"{pn} address '{ma}' not found in tracking wallet"
|
||||
assert coinaddr.is_in_tracking_wallet(),u"Address '{ca}' not found in tracking wallet"
|
||||
except Exception as e:
|
||||
msg(e[0].format(pn=g.proj_name,ma=mmaddr,ca=coinaddr))
|
||||
return False
|
||||
|
|
|
|||
|
|
@ -629,7 +629,7 @@ def get_words_from_file(infile,desc,silent=False):
|
|||
try: words = f.read().decode('utf8').split() # split() also strips
|
||||
except: die(1,'{} data must be UTF-8 encoded.'.format(capfirst(desc)))
|
||||
f.close()
|
||||
dmsg('Sanitized input: [{}]'.format(' '.join(words)))
|
||||
dmsg(u'Sanitized input: [{}]'.format(' '.join(words)))
|
||||
return words
|
||||
|
||||
def get_words(infile,desc,prompt):
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue