Skip to content

refactor: extract shared BLS12-381 field and hash helper - #251

Closed
isaac4real-art wants to merge 1 commit into
vouchlabsio:mainfrom
isaac4real-art:hv/fix-93
Closed

isaac4real-art wants to merge 1 commit into
vouchlabsio:mainfrom
isaac4real-art:hv/fix-93

Conversation

@isaac4real-art

Copy link
Copy Markdown
Contributor

Add packages/web/lib/field.js exporting FIELD_PRIME and a single sha256ToField reduction, and route the browser prover (lib/zk.js), the x402 server helper (server/utils/chain.ts, now async) and the off-chain registry builder (packages/zk/attest-spike.js) through it so the BLS12-381 prime literal exists once in source.

Fixes #93

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.

[Bounty: $75] Extract the duplicated BLS12-381 field prime and hash helpers

1 participant