Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) mpz has no attribute to_bytes py311 #353

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

MementoRC
Copy link
Contributor

When running test_keypais.py, I get:

FAILED test/test_keypair.py::KeyPairTestCase::test_create_ecdsa_keypair_mnemonic - AttributeError: 'mpz' object has no attribute 'to_bytes'
FAILED test/test_keypair.py::KeyPairTestCase::test_create_ecdsa_keypair_uri - AttributeError: 'mpz' object has no attribute 'to_bytes'
FAILED test/test_keypair.py::KeyPairTestCase::test_sign_and_verify_ecdsa - AttributeError: 'mpz' object has no attribute 'to_bytes'
FAILED test/test_keypair.py::KeyPairTestCase::test_sign_and_verify_invalid_signature_ecdsa - AttributeError: 'mpz' object has no attribute 'to_bytes'
FAILED test/test_keypair.py::KeyPairTestCase::test_sign_and_verify_public_ethereum_address - AttributeError: 'mpz' object has no attribute 'to_bytes'

It seems to be due to BIP32_CURVE.order() not being an int. It is also an issue with the x() and y() returns

@MementoRC
Copy link
Contributor Author

@arjanz This is needed for the conda recipe: conda-forge/staged-recipes#23812 to pass the tests, any chances to review and assess if there is a better resolution?

@MementoRC MementoRC mentioned this pull request Feb 18, 2024
@arjanz arjanz merged commit 7864c8f into polkascan:master Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants