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

Signature attributes should always be freshly generated and never read from the stack #799

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

sonkkeli
Copy link
Collaborator

This fixes a bug which I had on generating the payload for signing in case there would already be existing signatures on the signature stack.

@sonkkeli sonkkeli requested a review from irori October 28, 2022 13:33
@sonkkeli
Copy link
Collaborator Author

sonkkeli commented Oct 28, 2022

This also led into removing some unnecessary tests.

I will also make another PR where I refactor the code a little and I will add a test which will ensure that this kind of situation would not reoccur. However it's still WIP and I still need to work on it a bit more on Monday.

Current status here, but I will still write more thorough tests there: https://github.com/WICG/webpackage/compare/main...sonkkeli:webpackage:generate-real-ed25519-keys-in-tests?expand=1

Copy link
Collaborator

@cmfcmf cmfcmf left a comment

Choose a reason for hiding this comment

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

Looks good now 👍

@sonkkeli sonkkeli force-pushed the fix-signature-attribute-generation branch from 1145c6b to 0f125ef Compare October 28, 2022 16:34
@sonkkeli sonkkeli merged commit ca2595e into WICG:main Oct 28, 2022
@sonkkeli sonkkeli deleted the fix-signature-attribute-generation branch October 28, 2022 16:40
github-actions bot added a commit that referenced this pull request Oct 28, 2022
SHA: ca2595e
Reason: push, by sonkkeli

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 28, 2022
SHA: ca2595e
Reason: push, by sonkkeli

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.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.

None yet

2 participants