Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

update to pycryptodome > 3.19.0 #19

Open
PascalinDe opened this issue Jan 11, 2024 · 0 comments
Open

update to pycryptodome > 3.19.0 #19

PascalinDe opened this issue Jan 11, 2024 · 0 comments

Comments

@PascalinDe
Copy link
Member

currently updating to pycryptodome > 3.19.0 breaks updating the cache:

Legrandin/pycryptodome@519e7ae - the return type changed from pycryptodome's own Integer type to Python's int type - both implement to_bytes, but in Python 3.9 it does not have a default argument for byteorder (unlike Integer)

Traceback (most recent call last):
  File "/home/runner/work/lightarti-directory/lightarti-directory/tools/./gen_fresh_dirinfo.py", line 1308, in <module>
    main(sys.argv[0], sys.argv[1:])
  File "/home/runner/work/lightarti-directory/lightarti-directory/tools/./gen_fresh_dirinfo.py", line 1301, in main
    namespace.callback(namespace)
  File "/home/runner/work/lightarti-directory/lightarti-directory/tools/./gen_fresh_dirinfo.py", line 1100, in generate_customized_consensus_cb
    generate_customized_consensus(
  File "/home/runner/work/lightarti-directory/lightarti-directory/tools/./gen_fresh_dirinfo.py", line 1026, in generate_customized_consensus
    consensus = generate_signed_consensus(
  File "/home/runner/work/lightarti-directory/lightarti-directory/tools/./gen_fresh_dirinfo.py", line 813, in generate_signed_consensus
    consensus_signed = sign_consensus(
  File "/home/runner/work/lightarti-directory/lightarti-directory/tools/./gen_fresh_dirinfo.py", line 717, in sign_consensus
    signature_b = authority_signing_key._decrypt(consensus_digest_i).to_bytes(
TypeError: to_bytes() missing required argument 'byteorder' (pos 2)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant