From e18494009acb430b3a4bfa183069a8996cd26e71 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Wed, 13 Sep 2023 05:39:04 +0300 Subject: [PATCH] Fix some internal dependencies --- jmbase/setup.py | 3 ++- jmclient/jmclient/fidelity_bond.py | 5 ++--- jmdaemon/setup.py | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/jmbase/setup.py b/jmbase/setup.py index ded4df043..652899f7c 100644 --- a/jmbase/setup.py +++ b/jmbase/setup.py @@ -10,6 +10,7 @@ license='GPL', packages=['jmbase'], install_requires=['twisted==22.4.0', 'service-identity==21.1.0', - 'chromalog==1.0.5', 'pyaes==1.6.1'], + 'chromalog==1.0.5', 'pyaes==1.6.1', + 'txtorcon==22.0.0'], python_requires='>=3.7', zip_safe=False) diff --git a/jmclient/jmclient/fidelity_bond.py b/jmclient/jmclient/fidelity_bond.py index 5ad2c40ac..6e21bb25d 100644 --- a/jmclient/jmclient/fidelity_bond.py +++ b/jmclient/jmclient/fidelity_bond.py @@ -2,7 +2,6 @@ import base64 import json from jmbitcoin import ecdsa_sign, ecdsa_verify -from jmdaemon import fidelity_bond_sanity_check import binascii def assert_is_utxo(utxo): @@ -114,9 +113,9 @@ def _verify_signature(message, signature, pubkey): @classmethod def parse_and_verify_proof_msg(cls, maker_nick, taker_nick, data): - if not fidelity_bond_sanity_check.fidelity_bond_sanity_check(data): - raise ValueError("sanity check failed") decoded_data = base64.b64decode(data) + if len(decoded_data) != 252: + raise ValueError("invalid length") unpacked_data = struct.unpack(cls.SER_STUCT_FMT, decoded_data) try: diff --git a/jmdaemon/setup.py b/jmdaemon/setup.py index d14c72ada..3c687b608 100644 --- a/jmdaemon/setup.py +++ b/jmdaemon/setup.py @@ -9,8 +9,7 @@ author_email='', license='GPL', packages=['jmdaemon'], - install_requires=['txtorcon==22.0.0', - 'cryptography==3.3.2; platform_machine != "aarch64" and platform_machine != "amd64" and platform_machine != "x86_64"', + install_requires=['cryptography==3.3.2; platform_machine != "aarch64" and platform_machine != "amd64" and platform_machine != "x86_64"', 'cryptography==41.0.2; platform_machine == "aarch64" or platform_machine == "amd64" or platform_machine == "x86_64"', 'pyopenssl==23.2.0', 'libnacl==1.8.0', 'joinmarketbase==0.9.11dev'],