def __init__(self, x, y):
    p = ECPointAffine(bitcoin_curve, x, y)
    if (not bitcoin_curve.is_on_curve(p)):
        raise ValueError('The provided (x, y) are not on the secp256k1 curve.')
    self.point = p
    r = hashlib.new('ripemd160')
    r.update(hashlib.sha256(bytes(self)).digest())
    self.ripe = r.digest()
    r = hashlib.new('ripemd160')
    r.update(hashlib.sha256(self.compressed_bytes).digest())
    self.ripe_compressed = r.digest()
    self.keccak = sha3(bytes(self)[1:])
def __init__(self, x, y):
    p = ECPointAffine(bitcoin_curve, x, y)
    if (not bitcoin_curve.is_on_curve(p)):
        raise ValueError('The provided (x, y) are not on the secp256k1 curve.')
    self.point = p
    r = hashlib.new('ripemd160')
    r.update(hashlib.sha256(bytes(self)).digest())
    self.ripe = r.digest()
    r = hashlib.new('ripemd160')
    r.update(hashlib.sha256(self.compressed_bytes).digest())
    self.ripe_compressed = r.digest()
    self.keccak = sha3(bytes(self)[1:])