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

Fix #451: Allow overriding length of decimalized signatures #452

Merged
merged 5 commits into from
Jan 24, 2023

Conversation

petrdvorak
Copy link
Member

No description provided.

@petrdvorak petrdvorak requested a review from hvge January 21, 2023 13:06
@romanstrobl romanstrobl self-requested a review January 23, 2023 10:52
Copy link
Member

@romanstrobl romanstrobl left a comment

Choose a reason for hiding this comment

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

This is a nice improvement, however I do not like the "magical" behaviour. E.g. when signature length is set to 2, the actual signature length is 4. We should reject invalid setting in my opinion, because this can lead to misleading implementations.

Copy link
Member

@hvge hvge left a comment

Choose a reason for hiding this comment

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

I found mostly the same issues as @romanstrobl

@petrdvorak
Copy link
Member Author

I will have a look.

Copy link
Member

@hvge hvge left a comment

Choose a reason for hiding this comment

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

Looks OK now. The last thing that's missing is a short note in the documentation about this option.

Copy link
Member

@romanstrobl romanstrobl left a comment

Choose a reason for hiding this comment

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

Nice solution for the configuration, thanks!

@petrdvorak petrdvorak merged commit 6d81bf1 into develop Jan 24, 2023
@petrdvorak petrdvorak deleted the issues/451-decimal-len branch January 24, 2023 17:39
jandusil pushed a commit that referenced this pull request Dec 6, 2023
* Fix #451: Allow overriding length of decimalized singatures

* Change code based on code review

* Fix test vector

* Fix JavaDoc

* Add invalid format to exception message

(cherry picked from commit 6d81bf1)
jandusil added a commit that referenced this pull request Dec 7, 2023
)

* Fix #451: Allow overriding length of decimalized singatures
- Change code based on code review
- Fix test vector
- Fix JavaDoc
- Add invalid format to exception message
(cherry picked from commit 6d81bf1)
Co-authored-by: Petr Dvořák <petr@wultra.com>
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.

4 participants