def __init__(self, key, chain_code, index, depth, parent_fingerprint=b'\x00\x00\x00\x00'):
    if ((index < 0) or (index > 4294967295)):
        raise ValueError('index is out of range: 0 <= index <= 2**32 - 1')
    private_key = PrivateKey(key)
    HDKey.__init__(self, private_key, chain_code, index, depth, parent_fingerprint)
    self._public_key = None
def __init__(self, key, chain_code, index, depth, parent_fingerprint=b'\x00\x00\x00\x00'):
    if ((index < 0) or (index > 4294967295)):
        raise ValueError('index is out of range: 0 <= index <= 2**32 - 1')
    private_key = PrivateKey(key)
    HDKey.__init__(self, private_key, chain_code, index, depth, parent_fingerprint)
    self._public_key = None