Skip to content

Commit

Permalink
Support for Segwit (P2SH-P2WPKH) addresses:
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
mmgen committed Jul 27, 2017
1 parent 919bd62 commit 3b02573
Show file tree
Hide file tree
Showing 33 changed files with 2,038 additions and 1,150 deletions.
3 changes: 3 additions & 0 deletions data_files/mmgen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
# Uncomment to force 256-color output when 'color' is true:
# force_256_color true

# Uncomment to use regtest mode (this also sets testnet to true):
# regtest true

# Uncomment to use testnet instead of mainnet:
# testnet true

Expand Down
Loading

0 comments on commit 3b02573

Please sign in to comment.