Skip to content

Fix error handling in computeID method #85

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

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Conversation

microshine
Copy link
Contributor

The computeID method in the CryptoCertificate class has been updated to handle errors when exporting keys. Previously, if the key export method failed, the method would throw an exception and stop processing. Now, if the export fails, the method will skip that key and continue processing. This fix ensures that the computeID method can handle errors gracefully and provides a more robust behavior.

This method iterates over and exports all public keys to compute the certificate identifier. If the key export method fails, the `computeID` method throws an exception. It should instead skip this key and continue processing. This update fixes the issue.
@microshine microshine merged commit 96c22b7 into master Sep 30, 2024
5 checks passed
@microshine microshine deleted the fix-import-cert branch September 30, 2024 19:13
Copy link

NPM package v2.6.6 has been published 🎉

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