From 7596b1a62b358aab9d8ec710b2da8c008d5a362b Mon Sep 17 00:00:00 2001 From: Juraj Bednar Date: Tue, 12 Dec 2017 15:11:55 +0100 Subject: [PATCH] allow ypub and yprv keys (generated by trezor) --- btcpy/structs/hd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btcpy/structs/hd.py b/btcpy/structs/hd.py index ffa2cad..8443a90 100644 --- a/btcpy/structs/hd.py +++ b/btcpy/structs/hd.py @@ -36,7 +36,7 @@ def master(cls, key, chaincode): @classmethod def decode(cls, string, check_network=True): - if string[0] == 'x': + if string[0] == 'x' or string[0] == 'y': mainnet = True elif string[0] == 't': mainnet = False