Commit graph

3,143 commits

Author SHA1 Message Date
508abfb350
MMGenAddrType.mmtypes: implement values as namedtuples 2019-10-17 14:30:31 +03:00
8705e57b8f
mmgen-passgen: support BIP39 passwords
Examples:

  Generate three 24-word BIP39 mnemonic seed phrases from your default wallet
  for your Trezor device:

  $ mmgen-passgen --passwd-fmt=bip39 mytrezor 1-3

  Same, but generate 12-word seed phrases:

  $ mmgen-passgen --passwd-fmt=bip39 --passwd-len=12 mytrezor 1-3

Relevant tests:

  $ test/test.py ref ref3
2019-10-16 20:12:58 +03:00
83ad241963
minor changes 2019-10-16 20:10:14 +03:00
fefea42b9c
passgen: passwd length sanity checks
- forbid attempts to generate passwords with bit length greater than seed
2019-10-16 19:39:44 +03:00
18ee26f851
test suite: minor changes 2019-10-16 19:39:07 +03:00
8a68f00ab7
AddrList, passgen: minor fixes; add altcoin ref file tests 2019-10-16 12:42:48 +03:00
21998ac6da
AddrList.parse_file(): improve error handling 2019-10-15 20:12:25 +03:00
bfcfc8676d
passgen: allow hex passwords of 32 and 48 characters 2019-10-15 16:58:07 +03:00
d7fe969d8c
passgen: code cleanups, new tests, new --passwd-fmt option 2019-10-15 15:51:43 +03:00
a5ba64a956
minor changes, whitespace 2019-10-14 23:23:15 +03:00
dc5a3f3435
test/unit_tests.py seedsplit: add last share collisions test 2019-10-14 17:45:03 +03:00
c7ca0c3d62
N-of-N (XOR) seed splitting: user-level support
This patch introduces the commands `mmgen-seedsplit` and `mmgen-seedjoin`.
The first creates shares one at a time, while the second joins them to
recover the original seed.  By default, the default wallet is operated upon.

Shares are ordinary MMGen wallets and as such may be saved in any MMGen wallet
format, with one minor limitation: only one share in a given split may be in
hidden incognito format, and it must be the master share in the case of a
master share split.

For usage information and examples, see:

    mmgen-seedsplit --help
    mmgen-seedjoin --help

Relevant tests:

    test/test.py -e seedsplit
    ls -lrt test/tmp23/* # list the created files

    test/objtest.py SeedSplitSpecifier

Related commits:

    7311f474 - seed splitting: seed-level infrastructure
    237567bc - master shares
2019-10-13 20:33:22 +03:00
4d07d53ff6
minor changes and cleanups 2019-10-13 20:30:56 +03:00
c90bc087e0
devtools: rename pretty-print functions and methods 2019-10-12 14:07:09 +03:00
3d004c3600 minor fixes and cleanups 2019-10-11 15:37:52 +03:00
e5ed814239
Bitcoin Core v0.19.0 compatibility fix 2019-10-10 22:54:42 +03:00
d49159a92b
various changes and fixes 2019-10-10 22:53:43 +03:00
a160c92079
fix bumping of TXs with one output 2019-07-26 17:26:12 +03:00
94d26212f6
minor fixes, changes 2019-07-10 16:01:54 +03:00
8519b68b89
Complete BIP39 mnemonic support
- provided as an alternative to MMGen's native mnemonic format

    # Run the BIP39 unit test:
    $ test/unit_tests.py -v bip39

    # Generate a random 128-bit BIP39 seed phrase:
    $ mmgen-tool mn_rand128 fmt=bip39

    # Export your default wallet to BIP39 format:
    $ mmgen-walletconv -o bip39
    ...
    BIP39 mnemonic data written to file '98831F3A[256].bip39'

    # Generate ten addresses from the exported wallet:
    $ mmgen-addrgen '98831F3A[256].bip39' 1-10
    ...
    Addresses written to file '98831F3A[1-10].addrs'

    # Generate ten addresses directly from your BIP39 seed phrase:
    $ mmgen-addrgen -q -i bip39 1-10
    ...
    Addresses written to file '98831F3A[1-10].addrs'

    # Export subwallet 10L of your default wallet to BIP39 format:
    $ mmgen-subwalletgen -o bip39 10L
    ...
    BIP39 mnemonic data written to file 'A17F8E90[256].bip39'
2019-07-09 15:44:17 +03:00
c82c9c5bd7
minor changes and fixes 2019-07-07 16:24:05 +03:00
94e02995de
issubclass -> isinstance and related cleanups 2019-07-05 21:21:00 +03:00
80675355c6
super(): use zero-arg form where possible 2019-07-05 17:25:56 +03:00
d0f8c44b20
TrackingWallet: balance caching, Parity light client optimizations
- activated for Ethereum only, but framework exists for all coins
- both session caching and persistent caching in the wallet are supported
- network-destined RPC calls are never repeated in a given invocation
- RPC balance lookups can be suppressed entirely with --cached-balances
2019-07-05 16:03:03 +03:00
69e09d3b54
tw.view_and_sort(): cleanups 2019-07-03 21:17:24 +03:00
54f86e0831
mmgen-txsend: improve output of --status option 2019-07-03 21:16:42 +03:00
85d3336a9e
new file: devtools.py 2019-07-03 21:16:10 +03:00
2b75b330bd
TwUnspentOutputs: make self.total a property 2019-07-03 20:46:24 +03:00
0ec3eb1a07
tw.py: new get_tw_label() function; raise exception on bad tw label 2019-07-03 20:40:43 +03:00
b1a30fab2e
rpc_init(): move daemon init functions to rpc.py 2019-07-03 20:39:06 +03:00
23ae73d908
minor fixes and cleanups 2019-07-03 20:30:53 +03:00
4f39e29283
eth txview: display token send address correctly 2019-06-22 19:38:05 +03:00
82b6a3cac7
mmgen-tool syncmonerowallets: display full wallet balances 2019-06-15 20:21:48 +03:00
fb655ed5bf
master_share: replace 'use_master' argument with master_share=None 2019-06-15 20:18:21 +03:00
c2e7421ff9
master_share: add nonce; use base, not derived, seed ID as share identifier 2019-06-14 20:18:02 +03:00
310ce2d05e
seed.py: minor fixes and cleanups 2019-06-14 20:10:51 +03:00
665da1a27c
Seed: 'length' -> 'bitlen'; new 'byte_len' property 2019-06-12 17:46:55 +03:00
47fa896135
minor fixes and cleanups 2019-06-12 17:21:28 +03:00
448e2c24bf
test.py: generated reference wallet filename checks 2019-06-11 18:57:51 +03:00
237567bca6
new classes: SeedShareMaster, SeedShareMasterJoining
- create multiple seed splits with a single “master share”.  The master share
  is a deterministic pseudorandom value which is HMAC’ed with the split’s ID
  string and split count to produce the first share of the split.  To ensure
  uniqueness between splits, the remaining pseudorandom shares have the master
  share’s index appended to their HMAC key.  Each seed has 1024 numerically
  indexed master shares.
2019-06-11 18:55:37 +03:00
b0105598da
seed splitting: 'split' -> 'share' for all identifiers, where applicable 2019-06-11 12:13:31 +03:00
2388662e72
SeedSplit: minor cleanups, new SeedSplitIdx,SeedSplitCount classes 2019-06-10 11:19:13 +03:00
f060ecdca8
crypto.py: remove 'hash_rounds' arg from scramble_seed() 2019-06-10 11:18:28 +03:00
964cf4c3c7
update README 2019-06-10 11:17:07 +03:00
2fbced7193
unit_tests.py: add password hashing (scrypt) test 2019-06-06 13:34:46 +03:00
e81b4094e3
move some functions from 'test/test_py_d/common.py' to 'test/common.py' 2019-06-06 13:33:18 +03:00
7311f47467
seed splitting: seed-level infrastructure
- new classes: SeedSplit, SeedSplitLast, SeedSplitList
- new Seed methods: splitlist(), join_splits()
2019-06-05 17:18:37 +03:00
35d037a4da
SubSeed: add 'nonce_start' attr; minor changes and fixes 2019-06-05 17:10:53 +03:00
b15a295e6a
new class: IndexedDict
- dict that keeps a list of keys for efficient lookup by index
2019-06-05 17:06:04 +03:00
792c791910
unit_tests.py: minor changes 2019-06-05 16:57:22 +03:00