2018-01-20 19:33:16 -08:00
|
|
|
# version of the client package
|
2018-02-01 19:23:57 -08:00
|
|
|
ELECTRUM_VERSION = 'Z!1.0.3'
|
2018-01-20 19:33:16 -08:00
|
|
|
# protocol version requested
|
|
|
|
PROTOCOL_VERSION = '1.1'
|
2016-08-31 04:50:46 -07:00
|
|
|
|
2014-08-13 07:05:43 -07:00
|
|
|
# The hash of the mnemonic seed must begin with this
|
2017-08-27 05:30:01 -07:00
|
|
|
SEED_PREFIX = '01' # Standard wallet
|
|
|
|
SEED_PREFIX_2FA = '101' # Two-factor authentication
|
|
|
|
SEED_PREFIX_SW = '100' # Segwit wallet
|
2017-01-16 00:48:38 -08:00
|
|
|
|
|
|
|
|
|
|
|
def seed_prefix(seed_type):
|
|
|
|
if seed_type == 'standard':
|
|
|
|
return SEED_PREFIX
|
|
|
|
elif seed_type == 'segwit':
|
|
|
|
return SEED_PREFIX_SW
|
2017-03-11 06:51:00 -08:00
|
|
|
elif seed_type == '2fa':
|
2017-01-16 00:48:38 -08:00
|
|
|
return SEED_PREFIX_2FA
|