ELECTRUM_VERSION = '2.10.0'  # version of the client package
PROTOCOL_VERSION = '0.10'    # protocol version requested

# The hash of the mnemonic seed must begin with this
SEED_PREFIX      = '01'      # Electrum standard wallet
SEED_PREFIX_SW   = '02'      # Electrum segwit wallet
SEED_PREFIX_2FA  = '101'     # extended seed for two-factor authentication


def seed_prefix(seed_type):
    if seed_type == 'standard':
        return SEED_PREFIX
    elif seed_type == 'segwit':
        return SEED_PREFIX_SW
    elif seed_type == '2fa':
        return SEED_PREFIX_2FA

@@ -197,26 +197,17 @@
       # 
-Electrum s
+S
 tandard 
@@ -229,49 +229,52 @@
 FIX_
-SW 
+2FA
   = '
-02
+101
 '     
- 
 # 
-Electrum segwit wallet
+Two-factor authentication
 %0ASEE
@@ -282,35 +282,35 @@
 _PREFIX_
-2FA
+SW 
   = '10
-1
+0
 '     # 
 extended
@@ -305,51 +305,21 @@
   # 
-extended seed for two-factor authentication
+Segwit wallet
 %0A%0A%0Ad

use 12 bits of seed prefix