Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.