Skip to content

statement-store: Add malformed input unit tests#11673

Merged
AndreiEres merged 3 commits intomasterfrom
ae-malformed-input
Apr 7, 2026
Merged

statement-store: Add malformed input unit tests#11673
AndreiEres merged 3 commits intomasterfrom
ae-malformed-input

Conversation

@AndreiEres
Copy link
Copy Markdown
Contributor

Description

Part of #11534: covers tests for malformed input

Primitives crate:

  • decode_checks_fields — extended with more duplicate/out-of-order field cases
  • decode_rejects_malformed_bytes — new test: corrupted encoded bytes (empty input, invalid
    discriminants, truncated payloads, invalid proof variants, inflated field counts)
  • sign_and_verify — extended with Ed25519 and ECDSA invalid signature cases

Client crate:

  • submit_rejects_malformed_statements — new test: no proof, corrupted signatures (all 3 key types),
    wrong signer

Integration

No integration needed

@AndreiEres
Copy link
Copy Markdown
Contributor Author

/cmd prdoc --audience node_dev --bump none

@AndreiEres AndreiEres added R0-no-crate-publish-required The change does not require any crates to be re-published. T0-node This PR/Issue is related to the topic “node”. T10-tests This PR/Issue is related to tests. labels Apr 7, 2026
@AndreiEres AndreiEres enabled auto-merge April 7, 2026 14:24
@AndreiEres AndreiEres added this pull request to the merge queue Apr 7, 2026
Merged via the queue into master with commit 9539cff Apr 7, 2026
340 of 354 checks passed
@AndreiEres AndreiEres deleted the ae-malformed-input branch April 7, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

R0-no-crate-publish-required The change does not require any crates to be re-published. T0-node This PR/Issue is related to the topic “node”. T10-tests This PR/Issue is related to tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants