Skip to content

test(tlock): add cross-implementation test vectors for sealBid - #187

Open
Ugooweb wants to merge 1 commit into
Sub-Rosa-Issue:mainfrom
Ugooweb:add-tlock-test-vectors
Open

test(tlock): add cross-implementation test vectors for sealBid#187
Ugooweb wants to merge 1 commit into
Sub-Rosa-Issue:mainfrom
Ugooweb:add-tlock-test-vectors

Conversation

@Ugooweb

@Ugooweb Ugooweb commented Jul 30, 2026

Copy link
Copy Markdown

Closes #151

Summary

Adds golden test vectors for sealBid / auditor blob encoding in packages/tlock to verify seals produced by the SDK against a known-good fixture. This prevents silent regressions in encoding, nonce handling, or the H = sha256(value‖nonce) binding.

Changes

  • Created packages/tlock/src/sealBid-vectors.json containing inputs and expected commitment digests for sealBid
  • Appended test cases to packages/tlock/src/seal.test.ts to reseal and compare against the fixture's expected commitments
  • Added test assertion ensuring a modified nonce changes the binding hash
  • Added packages/tlock/scripts/generate-vectors.ts and npm run generate-vectors script inside tlock/package.json
  • Created packages/tlock/README.md to document how to regenerate the test vectors using the script

@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@Ugooweb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

tlock: add cross-implementation test vectors for sealBid

1 participant