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

test_import fails with ecdsa 0.19.0 #114

Open
mweinelt opened this issue Jan 3, 2025 · 0 comments
Open

test_import fails with ecdsa 0.19.0 #114

mweinelt opened this issue Jan 3, 2025 · 0 comments

Comments

@mweinelt
Copy link

mweinelt commented Jan 3, 2025

Hi!

After updating ecdsa from 0.18.0 to 0.19.0 running the test suite errors out on test_import!

=================================== FAILURES ===================================
_________________________________ test_import __________________________________

ecdsa_signing_key_str = '-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIObr5IVtB+DQcn25+R9n4K/EyUUSbVvxIJY7WhVeELUuoAoGCCqGSM49\nAwEHoUQDQgAEOKyCQ9qH5U4lZcS0c5/LxIyKvOpKe0l3x4Eg5OgDbzezKNLRgT28\nfd4Fq3rU/1OQKmx6jSq0vTB5Ao/48m0iGg==\n-----END EC PRIVATE KEY-----\n'

    def test_import(ecdsa_signing_key_str: str):
        signer = RequestSigner.from_pem(ecdsa_signing_key_str)
        export = signer.export_signing_key()
    
>       assert ecdsa_signing_key_str == export
E       AssertionError: assert '-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIObr5IVtB+DQcn25+R9n4K/EyUUSbVvxIJY7WhVeELUuoAoGCCqGSM49\nAwEHoUQDQgAEOKyCQ9qH5U4lZcS0c5/LxIyKvOpKe0l3x4Eg5OgDbzezKNLRgT28\nfd4Fq3rU/1OQKmx6jSq0vTB5Ao/48m0iGg==\n-----END EC PRIVATE KEY-----\n' == '-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIObr5IVtB+DQcn25+R9n4K/EyUUSbVvxIJY7WhVeELUuoAoGCCqGSM49AwEHoUQDQgAE\nOKyCQ9qH5U4lZcS0c5/LxIyKvOpKe0l3x4Eg5OgDbzezKNLRgT28fd4Fq3rU/1OQKmx6jSq0vTB5\nAo/48m0iGg==\n-----END EC PRIVATE KEY-----\n'
E         
E           -----BEGIN EC PRIVATE KEY-----
E         - MHcCAQEEIObr5IVtB+DQcn25+R9n4K/EyUUSbVvxIJY7WhVeELUuoAoGCCqGSM49AwEHoUQDQgAE
E         ?                                                                 ------------
E         + MHcCAQEEIObr5IVtB+DQcn25+R9n4K/EyUUSbVvxIJY7WhVeELUuoAoGCCqGSM49
E         - OKyCQ9qH5U4lZcS0c5/LxIyKvOpKe0l3x4Eg5OgDbzezKNLRgT28fd4Fq3rU/1OQKmx6jSq0vTB5
E         - Ao/48m0iGg==
E         + AwEHoUQDQgAEOKyCQ9qH5U4lZcS0c5/LxIyKvOpKe0l3x4Eg5OgDbzezKNLRgT28
E         + fd4Fq3rU/1OQKmx6jSq0vTB5Ao/48m0iGg==
E           -----END EC PRIVATE KEY-----

tests/test_request_signer.py:103: AssertionError
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

No branches or pull requests

1 participant