def child(self, index):
    'Returns the child HDPrivateKey at a particular index.\n        Raises ValueError for indices >= 0x8000000.\n        '
    if (index >= 2147483648):
        raise ValueError('child number should always be less than 2^31')
    data = (self.point.sec() + int_to_big_endian(index, 4))
    h = hmac_sha512(self.chain_code, data)
    point = (self.point + (big_endian_to_int(h[:32]) * G))
    chain_code = h[32:]
    depth = (self.depth + 1)
    parent_fingerprint = self.fingerprint()
    child_number = index
    return HDPublicKey(point=point, chain_code=chain_code, depth=depth, parent_fingerprint=parent_fingerprint, child_number=child_number, testnet=self.testnet)
Returns the child HDPrivateKey at a particular index.
Raises ValueError for indices >= 0x8000000.
def child(self, index):
    'Returns the child HDPrivateKey at a particular index.\n        Raises ValueError for indices >= 0x8000000.\n        '
    if (index >= 2147483648):
        raise ValueError('child number should always be less than 2^31')
    data = (self.point.sec() + int_to_big_endian(index, 4))
    h = hmac_sha512(self.chain_code, data)
    point = (self.point + (big_endian_to_int(h[:32]) * G))
    chain_code = h[32:]
    depth = (self.depth + 1)
    parent_fingerprint = self.fingerprint()
    child_number = index
    return HDPublicKey(point=point, chain_code=chain_code, depth=depth, parent_fingerprint=parent_fingerprint, child_number=child_number, testnet=self.testnet)