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

feat: Add validation for creating PublicKey from bytes. #2107

Merged
merged 7 commits into from
Dec 11, 2024

Conversation

0xivanov
Copy link
Contributor

@0xivanov 0xivanov commented Nov 29, 2024

Description:

This PR adds validation for creating ED25519 and ECDSA public keys from bytes. If the bytes are not valid - it throws IllegalArgumentException

Related issue(s):

Fixes #2103

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@0xivanov 0xivanov added the enhancement New feature or request label Nov 29, 2024
@0xivanov 0xivanov self-assigned this Nov 29, 2024
@0xivanov 0xivanov marked this pull request as ready for review December 9, 2024 07:21
@0xivanov 0xivanov requested a review from a team as a code owner December 9, 2024 07:21
@0xivanov 0xivanov requested a review from agadzhalov December 9, 2024 07:21
Copy link
Contributor

@agadzhalov agadzhalov left a comment

Choose a reason for hiding this comment

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

LGTM

@0xivanov 0xivanov merged commit 5ac181b into main Dec 11, 2024
7 checks passed
@0xivanov 0xivanov deleted the 2103-add-validation-for-creating-keys-from-bytes branch December 11, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add validation for creating PublicKey from bytes
2 participants