1
0

add wallet.is_segwit

This commit is contained in:
ThomasV
2017-01-31 11:56:59 +01:00
parent 6f083a712d
commit af54ba023b
2 changed files with 8 additions and 4 deletions

View File

@@ -217,6 +217,8 @@ class Deterministic_KeyStore(Software_KeyStore):
def get_passphrase(self, password):
return pw_decode(self.passphrase, password) if self.passphrase else ''
def is_segwit(self):
return False
class Xpub:
@@ -333,6 +335,8 @@ class BIP32_KeyStore(Deterministic_KeyStore, Xpub):
pk = bip32_private_key(sequence, k, c)
return pk
def is_segwit(self):
return bool(deserialize_xpub(self.xpub)[0])
class Old_KeyStore(Deterministic_KeyStore):