Skip to content

test: decode Cardano vectors - #23

Merged
scarmuega merged 2 commits into
mainfrom
test/protocol-vectors
Nov 6, 2026
Merged

scarmuega merged 2 commits into
mainfrom
test/protocol-vectors

Conversation

@scarmuega

@scarmuega scarmuega commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Decodes the Cardano vectors from u5c-factory (utxorpc/u5c-factory#6) at protocol versions 7 to 12 with the generated types, checking slot, hash, transaction count and first transaction hash, then that the block re-encodes to the same bytes. The Dijkstra vector is preliminary.

Vectors and tests are named for the ledger, so other ledgers can add theirs alongside. Covers v1alpha and v1beta. Adds pytest as a dev dependency, and the CI test job runs it in place of the import check, since importing is part of the test.

🤖 Generated with Claude Code

scarmuega and others added 2 commits November 6, 2026 08:46
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scarmuega scarmuega changed the title test: decode protocol vectors with pytest test: decode Cardano vectors Nov 6, 2026
@scarmuega
scarmuega merged commit 01ae07f into main Nov 6, 2026
2 checks passed
@scarmuega
scarmuega deleted the test/protocol-vectors branch November 6, 2026 12:05
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