def __init__(self, private_key, chain_code, depth=0, parent_fingerprint=b'\x00\x00\x00\x00', child_number=0, testnet=False):
    self.private_key = private_key
    self.private_key.testnet = testnet
    self.chain_code = chain_code
    self.depth = depth
    self.parent_fingerprint = parent_fingerprint
    self.child_number = child_number
    self.testnet = testnet
    self.pub = HDPublicKey(point=private_key.point, chain_code=chain_code, depth=depth, parent_fingerprint=parent_fingerprint, child_number=child_number, testnet=testnet)
def __init__(self, private_key, chain_code, depth=0, parent_fingerprint=b'\x00\x00\x00\x00', child_number=0, testnet=False):
    self.private_key = private_key
    self.private_key.testnet = testnet
    self.chain_code = chain_code
    self.depth = depth
    self.parent_fingerprint = parent_fingerprint
    self.child_number = child_number
    self.testnet = testnet
    self.pub = HDPublicKey(point=private_key.point, chain_code=chain_code, depth=depth, parent_fingerprint=parent_fingerprint, child_number=child_number, testnet=testnet)