Commit graph

2,768 commits

Author SHA1 Message Date
99295adf20
mmgen-regtest: --empty option, improved debugging output
mmgen-tool: move help data to main_tool.py
2017-09-16 13:55:23 +03:00
e2120977c0
new file: mmgen/regtest.py 2017-08-15 05:17:18 +03:00
b23b497d77
obj.py rewrite+test suite, Bob and Alice regtest mode, compressed addresses
- basic data types in obj.py rewritten
- new test suite 'test/objtest.py' for testing basic data types
- new compressed address type with the 'C' identifier

- Bob and Alice regtest mode for testing MMGen in a mock two-user environment
  * All MMGen commands are available in this mode.
  * Set up with 'mmgen-regtest setup'. Bob and Alice's wallets are funded with
    500 BTC each.  Use the --mixed switch to import mixed address types in
    Bob and Alice's tracking wallets.
  * Transact as Bob by adding --bob switch to MMGen commands
  * Transact as Alice by adding --alice switch to MMGen commands
  * After sending a transaction, mine a block to confirm it with
    'mmgen-regtest generate'
    The bitcoin daemon is stopped and restarted automatically when switching
    between users.
2017-08-14 13:04:25 +03:00
33673cbb1b
reimplement base58 routines, move from bitcoin module to class baseconv 2017-08-08 16:46:39 +03:00
2cfa35e8a1
typo in txview 2017-08-08 15:51:05 +03:00
aae5f122b4
immutable attr improvements 2017-08-08 11:31:57 +03:00
52fdf29b67
new classes: KeyGenerator,AddrGenerator,PrivKey; read-only attrs rewrite
- OO rewrite of key/addr generation interface (KeyGenerator,AddrGenerator)
- New data objects: PrivKey,PubKey,WifKey
- rewrite of read-only attr implementation for addr/tx/tw list entries
  (MMGenImmutableAttr,MMGenListItemAttr descriptors)
- txsign: build key list of addrlist objects rather than addr,key tuples
2017-08-07 22:02:24 +03:00
004536af63
Defer printing of help screens until global vars are initialized 2017-08-05 18:15:41 +03:00
2873897f68
Replace --aug1hf with --coin=bch, display 'BCH' for BCH amounts
* Deprecate the --aug1hf option
* Use --coin=bch option to select BCH chain; works with all MMGen commands
* All BCH amounts now correctly display with 'BCH' instead of 'BTC'
* use non-standard RPC ports (8442,18442) for BCH mainnet/testnet to allow
  dual-node operation.  Use 'mmlive-node-start' and '-stop' scripts
  (home.mmgen/bin/mmlive-node-{start,stop} in the MMGenLive repo)
  to start daemons with correct RPC ports; the --coin option automatically
  configures the correct ports for all MMGen scripts.

* mmgen-txsend: new --status option checks confirmation/mempool status of TXs
2017-08-04 14:13:03 +03:00
057fe22f0c
test/test.py: refactor, remove interactive mode 2017-08-03 08:56:40 +03:00
5c507d7b0b
txcreate fix for Bitcoin ABC aug1hf 2017-08-01 13:34:29 +03:00
576d8036c7
Support for the Aug 1 2017 UAHF ("Bitcoin Cash", "Bitcoin ABC")
Brief instructions for Linux (Windows users may adapt to fit):

    Make a copy of your Bitcoin data directory, including the blockchain and
    your tracking wallet (the blockchain must have been synced last BEFORE
    12:20 UTC Aug. 1).  This can be done as follows:

        $ mkdir ~/.bitcoin-abc
        $ rsync -av ~/.bitcoin/* ~/.bitcoin-abc

    If you messed up and synced your blockchain AFTER the HF, then do the
    following, after which you'll have to sync the ABC chain from scratch:

        $ mkdir ~/.bitcoin-abc
        $ cp ~/.bitcoin/{bitcoin.conf,*wallet*.dat} ~/.bitcoin-abc

    Download the Bitcoin ABC binary, but DON'T let it install automatically.
    Or alternatively, clone the source from Github and compile it yourself:

        Binary: https://download.bitcoinabc.org/0.14.6
        Source: git clone https://github.com/Bitcoin-ABC/bitcoin-abc

    Install the Bitcoin ABC daemon BY HAND into your exec path as 'bitcoind-abc':

        $ sudo cp bitcoind /usr/local/bin/bitcoind-abc

    Start the daemon and let it sync the ABC chain:

        $ bitcoind-abc -datadir=$HOME/.bitcoin-abc -daemon

    Don't forget to always start the ABC daemon with the -datadir argument.
    Otherwise you could trash your Core blockchain!

    Once the HF has activated, you sign or create-sign-send transactions on the
    ABC chain by invoking 'mmgen-txsign' or 'mmgen-txdo' with the --aug1hf
    switch.

    All other commands, including 'mmgen-txcreate' and 'mmgen-txsend', are
    invoked as usual, with no additional command-line switches.  Your address
    balances and unspent outputs will display correctly for whatever chain
    you're on at the moment.

    To switch back to the Core chain, just stop the ABC daemon and restart the
    Core daemon (WITHOUT the -datadir argument).

    After the Aug. 1 HF, Core transactions and ABC transactions will be
    incompatible, as they use an incompatible sighash type.  This prevents
    transactions from being broadcast (and hence replayed) on the wrong chain.
    So if you use the --aug1hf switch on the Core chain, or forget to use it on
    the ABC chain, nothing bad will happen; your sign or send operation will
    just fail with an error message.

    The main danger is forgetting which daemon is running at the moment and
    therefore which chain you're on.  This can be checked on Linux with the
    command `pgrep -a bitcoind` or on Windows by examining the task manager.

    In case you were wondering, all the --aug1hf switch does is perform a few
    sanity checks and call signrawtransaction with 'ALL|FORKID' as the
    'sighashtype' argument.  There's nothing more to it than that!
2017-07-31 20:10:17 +03:00
b04650e22f
Version 0.9.2 v0.9.2 2017-07-31 17:33:51 +03:00
b753ddee5a
Version 0.9.2rc1 v0.9.2rc1
- update Getting Started guide for Segwit and regtest
2017-07-29 15:53:04 +03:00
3b0257358b
Support for Segwit (P2SH-P2WPKH) addresses:
- Generate Segwit addresses by invoking 'mmgen-addrgen' with the
  '--type segwit' option
- Import Segwit addresses into the tracking wallet as usual
- Segwit and legacy MMGen addresses are distinguished by 'S' and 'L'
  identifiers in the tracking wallet and command line

Transaction example:

  mmgen-txcreate F00BAA12:L:21,1.23 F00BAA12:S:1

(spend 1.23 BTC to legacy address 21 of your default wallet (with Seed ID
F00BAA12) and send the change to Segwit address 1)

Segwit and legacy addresses for a given seed are generated from different
sub-seeds so are cryptographically unrelated to each other.

Since MMGen's legacy P2PKH addresses are uncompressed, use of the new Segwit
addresses significantly reduces transaction size.

Until Segwit activation on mainnet, users can try out the new functionality on
testnet or in regtest mode.
2017-07-27 22:55:52 +03:00
919bd62a79 deleted: "test/ref/98831F3A-\321\204\321\203\320\261\320\260\321\200@crypto.org-base58-20[1,4,9-11,1100].pws" 2017-07-07 16:34:32 +03:00
fde885f55b
mmgen-passgen: generate passwords from your MMGen seed
- frees you from having to back up or remember passwords
   - generate passwords in either base32 or base58 format
   - user-configurable password length
   - password generation is keyed to an ID string, allowing you to generate
     separate sets of passwords for each online account

   EXAMPLE:
     mmgen-passgen yourname@nowhere.com 1-10
     (generates ten passwords for your email account using your default wallet)

   For more examples and detailed usage information, type 'mmgen-passgen --help'

   This is the new implementation using hmac.  It supersedes commit 85cf5b3

Mnemonic entry mode:
   - Word-by-word mnemonic entry at the prompt
   - Each word is checked individually, user is re-prompted in case of error
   - Activated automatically if stdin is a terminal
2017-07-07 16:28:07 +03:00
85cf5b3cbb
The original implementation of mmgen-passgen, using sha256x10(seed+id_str)
Superseded by the current implementation using sha256x10(hmac(seed,id_str,hashlib.sha256))
2017-07-07 16:09:28 +03:00
0ab39e4a22
Update copyright dates 2017-05-31 18:16:08 +03:00
0cb6e8c1d1
Orange Pi build fix (secp256k1 mod: no libgmp) 2017-05-31 18:14:06 +03:00
1d277d9612
Version 0.9.1 v0.9.1 2017-05-28 10:56:03 +03:00
192ce1ecdb
Version 0.9.1rc2 v0.9.1rc2 2017-05-27 14:05:27 +03:00
ccfa4b5738
test.py: test exit values of scripts
test.py is pexpect-based, testing the output rather than return values of
scripts.  However, a script may crash even after producing the expected output,
so test for return values too.
2017-05-24 21:07:16 +03:00
cc559ea87f
Version 0.9.1rc1 v0.9.1rc1 2017-05-23 14:43:56 +03:00
fd6923d90f
modified: mmgen/globalvars.py
modified:   mmgen/tx.py
2017-05-20 21:05:09 +03:00
93c99755a7
[tx]: BIP 125 replace-by-fee (RBF) support:
* create replaceable transactions with 'mmgen-txcreate' and 'mmgen-txdo'
        using the '--rbf' option
      * create replacement transactions from existing MMGen transactions
        using the new, optionally scriptable 'mmgen-txbump' command
      * Bitcoind must be started with the '-walletrbf' option to enable RBF
        functionality

[tx]: Command scriptability:
      * New '--yes' option makes 'txbump' and 'txsign' fully non-interactive
        and 'txcreate' and 'txsend' mostly non-interactive

[tx]: 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')

[tx]: Fees
	  * Completely reworked fee-handling code with better fee checking
	  * default tx fee eliminated, max_tx_fee configurable in mmgen.cfg

Bugfixes and usability improvements:
      *	'mmgen-tool listaddresses' now list addresses from multiple seeds
        correctly
      * Improved user interaction with all 'mmgen-tx*' commands
2017-05-17 15:37:30 +03:00
8556de2101
Pre-RBF changes, bugfixes 2017-05-14 21:54:05 +03:00
1d788752e5
Added Reddit link to footer 2017-02-23 10:55:39 +03:00
eb6f7ef195
g.keywords added 2017-01-08 08:51:50 +03:00
63ddd920cb
Version 0.9.0 2016-12-18 19:59:27 +03:00
5ecf021af2
[bitcoin]: hash256(), hash160(), cleanup of keygen routines
[wiki]: 'Recovering Keys Without MMGen' tutorial added
2016-12-16 20:06:59 +03:00
02256664fb
[seed]: export seed to hexadecimal (mmhex) format 2016-12-15 20:53:29 +03:00
c7fcf448d9
[tool]: accept stdin input for selected utils
[bitcoin/seed]: input sanitizing and checking for base conversion routines
[test]: replace env var with --popen-spawn option
2016-12-15 14:08:03 +03:00
39167e90be
[color]: support for 8-color terminals, better default colors
[opt/cfg]: --force-256-color on terminals that support but don't advertise it
2016-12-12 16:27:30 +03:00
6bdb70b3e9
[tx]: new command: mmgen-txdo - create, sign and send tx in one operation
[tx]: tx file format change: txid now appended to file after tx is broadcast
2016-12-12 00:30:23 +03:00
5c53ab9455
Version 0.8.9 v0.8.9 2016-12-10 16:09:06 +03:00
229845c8b6
Version 0.8.9rc1 v0.8.9rc1 2016-12-08 18:02:28 +03:00
48845020c3
[mswin]: full test suite support with pexpect (PopenSpawn)
[mswin]: secure wallet deletion with sdelete
[mswin]: keyaddrfile binary mode write bugfix (main_addrgen.py)
2016-12-05 21:53:16 +03:00
0b3a40bd29
[mswin]: Bitcoin .cookie filename fix
[opt/cfg]: Add --bitcoin-data-dir option
2016-12-03 20:14:04 +03:00
10fe255145
[mswin] (mingw32,mingw64): secp256k1 support 2016-12-02 20:05:55 +03:00
898930606f modified: README.md 2016-11-28 19:52:03 +03:00
38ebf35f77
[opt/cfg]: add --rpc-port, --rpc-user, --rpc-password
[mswin]:   remove non-MSYS Windows support (except for bitcoin datadir)
           MS users must launch scripts from an MSYS environment
2016-11-27 10:49:29 +03:00
e5a7b51b4f
Version 0.8.8 v0.8.8
Documentation updated
  [mswin]: colons removed from filenames in test/ref
  [mswin]: commas allowed in hidden incog filename parameter
2016-11-23 22:04:17 +03:00
17060351fb
Version 0.8.8rc1 v0.8.8rc1
Windows configuration and test suite fixes
2016-11-23 17:17:08 +03:00
978565f5bf
Data directory, config file and default wallet support:
* Under Linux, data directory is '~/.mmgen'; config file is 'mmgen.cfg'.
 * If default wallet is enabled, specifying the wallet on the command line is
   no longer necessary.  If not, all MMGen commands behave as previously.
 * The datadir structure mirrors that of Bitcoin Core: mainnet and testnet
   share a common config file, but testnet puts its other files including its
   default wallet in a separate subdirectory 'testnet3'.

New routines have been added to the test suite to test these features.
Tested only under Linux.
2016-11-21 19:59:03 +03:00
027a8430ac
setup.py: file permissions fix for data_files/* 2016-11-17 19:42:12 +03:00
456cc1f76c
Long (common) opts added for setting global vars; display with '--longhelp'.
Datadir '~/.mmgen' and config file 'mmgen.cfg' added:
  * Global vars are now overriden in this order:
    1) config file
    2) environmental variables beginning with 'MMGEN_' (listed in globalvars.py)
    3) command line

Always get user entropy, even for non-critical randomness, unless '-r0'.

rpcuser,rpcpassword now override cookie authentication, as with Core.

RPC to remote daemon now supported with '--rpc-host' option.
2016-11-17 18:10:27 +03:00
3897ec3297
Version 0.8.7a v0.8.7a
--testnet option added to all relevant scripts
  utility scripts under scripts/ updated
2016-11-14 14:45:08 +03:00
fda8f25385 Version 0.8.7 v0.8.7 2016-11-12 13:26:14 +03:00
ff100674f3 v0.8.7rc1 v0.8.7rc1 2016-11-11 16:17:07 +03:00