Files
pallectrum/lib/version.py

17 lines
567 B
Python
Raw Normal View History

2017-01-26 14:57:14 +01:00
ELECTRUM_VERSION = '2.8.0' # version of the client package
2015-06-27 15:22:34 +02:00
PROTOCOL_VERSION = '0.10' # protocol version requested
2014-08-13 16:05:43 +02:00
# The hash of the mnemonic seed must begin with this
2015-02-17 16:57:48 +01:00
SEED_PREFIX = '01' # Electrum standard wallet
2017-01-16 09:48:38 +01:00
SEED_PREFIX_SW = '02' # Electrum segwit wallet
2015-01-21 23:43:26 +01:00
SEED_PREFIX_2FA = '101' # extended seed for two-factor authentication
2017-01-16 09:48:38 +01:00
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