Browse Source

Fix some internal dependencies

master
Kristaps Kaupe 2 years ago
parent
commit
47bc77fd6b
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 3
      jmbase/setup.py
  2. 10
      jmclient/jmclient/fidelity_bond.py
  3. 3
      jmdaemon/setup.py

3
jmbase/setup.py

@ -10,6 +10,7 @@ setup(name='joinmarketbase',
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)

10
jmclient/jmclient/fidelity_bond.py

@ -2,7 +2,6 @@ import struct
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,12 @@ class FidelityBondProof:
@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)
try:
decoded_data = base64.b64decode(data, validate=True)
except binascii.Error:
raise ValueError("decode error")
if len(decoded_data) != 252:
raise ValueError("invalid length")
unpacked_data = struct.unpack(cls.SER_STUCT_FMT, decoded_data)
try:

3
jmdaemon/setup.py

@ -9,8 +9,7 @@ setup(name='joinmarketdaemon',
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'],

Loading…
Cancel
Save