def compPubKey(keyObj):
    """
    get public key from python-bitcoin key object
    :param keyObj: python-bitcoin key object
    :return: public bytes
    """
    keyObj._cec_key.set_compressed(True)
    pubbits = keyObj._cec_key.get_pubkey()
    return pubbits