Skip to content

docs(gr1cs): correct InternedField representation; remove misleading 64-bit bit layout#418

Open
Forostovec wants to merge 1 commit into
arkworks-rs:masterfrom
Forostovec:docs/gr1cs-correct-internedfield-representation
Open

docs(gr1cs): correct InternedField representation; remove misleading 64-bit bit layout#418
Forostovec wants to merge 1 commit into
arkworks-rs:masterfrom
Forostovec:docs/gr1cs-correct-internedfield-representation

Conversation

@Forostovec

Copy link
Copy Markdown

The docstring above InternedField incorrectly described a 64-bit bit-packed layout with tag bits, inline small constants (two’s complement), and a “coefficient pool index.” In reality, InternedField is a u32 opaque handle with special cases: 0 => F::ONE, 1 => -F::ONE, and >=2 indexing into FieldInterner::vec. No bit tagging or inline-constant encoding is implemented anywhere in the codebase. Updated the documentation to reflect the actual design to prevent developer confusion.

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