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

teos-common: Fixes cryptography tests utils #245

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

sr-gi
Copy link
Member

@sr-gi sr-gi commented Oct 18, 2023

I recently realized that teos-common::cryptography::get_random_keypair was potentially incorrect.

The bytes used to generate the SecretKey were created outside the testing loop, meaning that if they didn't yield a valid secret key for whatever reason, the function would loop forever. I don't think this can really be the case, but this patch is certainly more correct than the older approach.

Copy link
Collaborator

@mariocynicys mariocynicys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sr-gi sr-gi merged commit c9f82bc into talaia-labs:master Apr 2, 2024
7 checks passed
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.

2 participants