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

Create signer/verifier as client attributes #5

Open
wants to merge 1 commit into
base: basic_methods_v1.9
Choose a base branch
from

Conversation

oto-stefan
Copy link

Create signer/verification objects in CsobClient constructor instead of storing paths to private and public keys and load those files from filesystem for each payload signing or verification operation. The change has little influence on memory footprint but may bring some performance enhancement.

I gave it some thoughts and I do not think there is any additional security concern with this change (the process has rights to read the private key file, the key was loaded into memory even before and because of automatic memory management in Python its memory lifetime was hardly predictable).

@oto-stefan oto-stefan marked this pull request as ready for review July 5, 2024 10:28
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.

1 participant