Skip to content

Add negative test vectors v0.9#17

Merged
DigiEmu merged 1 commit intomainfrom
docs/negative-test-vectors-v0.9
May 7, 2026
Merged

Add negative test vectors v0.9#17
DigiEmu merged 1 commit intomainfrom
docs/negative-test-vectors-v0.9

Conversation

@DigiEmu
Copy link
Copy Markdown
Owner

@DigiEmu DigiEmu commented May 7, 2026

Summary

This PR adds docs/NEGATIVE_TEST_VECTORS_v0.9.md.

The new public review draft defines intentional FAIL and ERROR test vectors for DigiEmu Core verification.

It includes:

  • tampered snapshot FAIL cases
  • malformed JSON ERROR case
  • missing snapshot ERROR case
  • missing expected hash ERROR case
  • unsupported hash algorithm ERROR case
  • unsupported canonicalization ERROR case
  • invalid field type case
  • expected reason codes
  • conformance relevance

Why this matters

DigiEmu Core should not only verify valid snapshots.

Implementations must also correctly distinguish:

PASS  = computed hash matches expected hash
FAIL  = processable input with mismatched hash
ERROR = verification could not be completed

@DigiEmu DigiEmu merged commit 5915546 into main May 7, 2026
5 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.

1 participant