def get_secret(self, their_pub_str):
        their_pub = int(binascii.hexlify(their_pub_str), 16)

        self.shared_secret = modexp.powMod(their_pub, self.priv, self.mod)
        return int_to_bytes(self.shared_secret, self.group_len)
Given the public key of the other party as a string of bytes,
dataset/ETHPy150Open isislovecruft/obfsproxy/obfsproxy/transports/obfs3_dh.py/UniformDH.get_secret