Skip to content

test(web): cover contentToField and fieldToBytes32 in chain.ts - #258

Merged
Toyosi5566 merged 1 commit into
vouchlabsio:mainfrom
Emmajay12:hv/fix-20
Oct 9, 2026
Merged

Toyosi5566 merged 1 commit into
vouchlabsio:mainfrom
Emmajay12:hv/fix-20

Conversation

@Emmajay12

Copy link
Copy Markdown
Contributor

Add a vitest suite for packages/web/server/utils/chain.ts asserting contentToField matches a pinned digest and stays below the BLS12-381 field prime, and that fieldToBytes32(0n) is a 32-byte zero buffer with small values left-padded. Adds the vitest config and test script to the web package.

Fixes #20

@Toyosi5566
Toyosi5566 merged commit 7cf456a into vouchlabsio:main Oct 9, 2026
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