def __init__(self, key, chain_code, index, depth, parent_fingerprint):
    if ((index < 0) or (index > 4294967295)):
        raise ValueError('index is out of range: 0 <= index <= 2**32 - 1')
    if (not isinstance(chain_code, bytes)):
        raise TypeError('chain_code must be bytes')
    self._key = key
    self.chain_code = chain_code
    self.depth = depth
    self.index = index
    self.parent_fingerprint = get_bytes(parent_fingerprint)
def __init__(self, key, chain_code, index, depth, parent_fingerprint):
    if ((index < 0) or (index > 4294967295)):
        raise ValueError('index is out of range: 0 <= index <= 2**32 - 1')
    if (not isinstance(chain_code, bytes)):
        raise TypeError('chain_code must be bytes')
    self._key = key
    self.chain_code = chain_code
    self.depth = depth
    self.index = index
    self.parent_fingerprint = get_bytes(parent_fingerprint)