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

app/obolapi: ignore empty partial signatures #50

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Conversation

gsora
Copy link
Collaborator

@gsora gsora commented Jan 11, 2024

API will return partial signatures iff there are at least threshold of them, which also means we could find null's in the response.

Since the partial signatures array returned by the API maps 1:1 with the corresponding share index, we need to ignore empty ones to keep going with the aggregation process.

We still error if the signature is longer than 0 bytes but no more than 2.

Added a test case to cover the issue as well.

category: bug
ticket: none

API will return partial signatures iff there are at least threshold of them, which also means we could find `null`'s in the response.

Since the partial signatures array returned by the API maps 1:1 with the corresponding share index, we need to ignore empty ones to keep going with the aggregation process.

We still error if the signature is longer than 0 bytes but no more than 2.

Added a test case to cover the issue as well.
@gsora gsora requested review from pinebit, dB2510 and xenowits January 11, 2024 15:58
@gsora gsora self-assigned this Jan 11, 2024
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions

62.9% Duplication on New Code (required ≤ 30%)

See analysis details on SonarCloud

@gsora gsora merged commit 20d28fd into main Jan 12, 2024
6 of 7 checks passed
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.

2 participants