Skip to content

S13: require babyedwards on the point Point2Bits_Strict encodes - #155

Draft
OBrezhniev wants to merge 1 commit into
fix/circomlib_buses_reviewfrom
fix/point2bits-requires-babyedwards
Draft

OBrezhniev wants to merge 1 commit into
fix/circomlib_buses_reviewfrom
fix/point2bits-requires-babyedwards

Conversation

@OBrezhniev

Copy link
Copy Markdown
Member

Stacked on #149 (fix/circomlib_buses_review); this PR shows only its own commits. Independent of the other stacked PRs unless stated. Full suite passes on the branch.

Require babyedwards on the point Point2Bits_Strict encodes

Its contract is the encoding of a point of the curve, and its only
library caller, the EdDSA verifiers' hash output, already carries the
tag, but the input was an untagged Point, so the encoder accepted any
pair of field elements. Requiring {babyedwards} costs no constraints and
makes a non-curve input a compile error. The loopback test now runs its
raw input through BabyCheck first, which is what a caller with an
untagged point does.

🤖 Generated with Claude Code

https://claude.ai/code/session_01D1w729xzwemQigkf3PCisD

Its contract is the encoding of a point of the curve, and its only
library caller, the EdDSA verifiers' hash output, already carries the
tag, but the input was an untagged Point, so the encoder accepted any
pair of field elements. Requiring {babyedwards} costs no constraints and
makes a non-curve input a compile error. The loopback test now runs its
raw input through BabyCheck first, which is what a caller with an
untagged point does.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D1w729xzwemQigkf3PCisD
@OBrezhniev
OBrezhniev force-pushed the fix/circomlib_buses_review branch from 7198ad7 to d5f158d Compare September 29, 2026 20:08
@OBrezhniev
OBrezhniev force-pushed the fix/point2bits-requires-babyedwards branch from 526ffae to 61d0062 Compare September 29, 2026 20:08
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