Skip to content

docs(adr): choose Groth16 G2 JSON provider policy (#51) - #64

Draft
satran004 wants to merge 1 commit into
mainfrom
design/51-groth16-json-profile
Draft

satran004 wants to merge 1 commit into
mainfrom
design/51-groth16-json-profile

Conversation

@satran004

Copy link
Copy Markdown
Member

Define the unresolved G2 JSON compatibility decision for #51 before implementing an R2 behavior change.

The current Java path normalizes homogeneous X/Z,Y/Z, while blst and the Cardano converter require affine G2 Z=[1,0]. Pinned-reference review also found that ffjavascript's generic internal EC representation uses Jacobian X/Z²,Y/Z³. Those conventions cannot be silently conflated.

Proposed ADR-0049 recommends affine-only G2 JSON in both providers, preserving ordinary snarkjs exports and explicitly documenting the Java compatibility change. It also presents preserving ZeroJ's homogeneous interpretation as a clearly labelled compatibility extension. The ADR includes threat model, exact invariants, pinned references, converter/importer/on-chain scope, negative/differential test plan and remaining audit gates.

Draft: maintainer policy choice required. No verifier behavior is changed and #51 is not closed. AGENTS.md requires an accepted R2/R3 design before implementation and escalation of ambiguous references. The concrete choice is affine-only G2 (recommended) versus an explicit homogeneous compatibility extension.

This branch has not been deployed

No deployments
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