Skip to content

chore: documentation fixes for ECCVM after first external audit#20348

Merged
notnotraju merged 23 commits into
merge-train/barretenbergfrom
rk/eccvm-external-audit-1-documentation
Mar 12, 2026
Merged

chore: documentation fixes for ECCVM after first external audit#20348
notnotraju merged 23 commits into
merge-train/barretenbergfrom
rk/eccvm-external-audit-1-documentation

Conversation

@notnotraju

@notnotraju notnotraju commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

One edit per commit.

notnotraju and others added 17 commits February 10, 2026 14:11
- Line 181: nP and -nP share the same x-coordinate (not y), y-coordinates differ by sign
- Line 443: swap LHS/RHS in precompute constraint equation (multiples decrease by row)
- Lines 158, 178, 351: skew is subtracted, not added
- Line 391: skew value range is {0,7}, not {0,1}
- Line 411: remove ∪ {0} from wNAF digit range (digits are always odd)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Line 62: remove incorrect claim that ecc_point_table_relation is gated by precompute_select
- Line 81: rename s0/s1 to hi/lo in convert_to_wnaf to avoid confusion with broader context

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Line 274: is_add is not conditioned on op_code; used for both add and MSM operations
- Line 310: fix transcript_add_lambda -> transcript_msm_lambda (block validates MSM lambda)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Line 263: fix max(deg(xa, xb)) -> max(deg(xa), deg(xb))
- Line 371: add missing fourth double() call
- Line 41: fix @param evals -> @param accumulator
- Line 469: fix round_transition != 1 -> round_transition != 0
- Line 520: fix msm_transition -> msm_transition_shift
- Line 23: fix s_{j,i} -> a_{j,i} for wNAF slices
- Line 166: separate point 5 from precompute_select == 1 umbrella
- Line 229: clarify tuple is added when msm_transition_shift == 1

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Line 141: point table order and index are incorrect; added AUDITTODO to verify

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Line 564: slope is undefined when either point is at infinity; numerator/denominator are not modified in degenerate cases

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Line 523: transcript_accumulator_not_empty == 1 means NOT at infinity (was flipped)
- Line 528: transcript_base_y_inverse checks transcript_add_y_equal (not x_equal)
- Line 515: scalar = z1 - lambda*z2 (not + lambda*z2)
- Line 547: fix duplicate precompute_tx -> precompute_ty

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…k/eccvm-external-audit-1-documentation

# Conflicts:
#	barretenberg/cpp/src/barretenberg/relations/ecc_vm/ecc_msm_relation_impl.hpp
…pt_relation_impl.hpp

add_result_is_infinity was a duplicate of result_infinity_from_operation
@notnotraju notnotraju requested a review from suyash67 March 12, 2026 09:40
@notnotraju notnotraju force-pushed the rk/eccvm-external-audit-1-documentation branch from d6064a0 to 3b108e1 Compare March 12, 2026 09:41
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@notnotraju notnotraju force-pushed the rk/eccvm-external-audit-1-documentation branch from 3b108e1 to 76f3009 Compare March 12, 2026 09:56
@notnotraju notnotraju self-assigned this Mar 12, 2026

@suyash67 suyash67 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

notnotraju added 5 commits March 12, 2026 12:05
@notnotraju notnotraju merged commit 96ce397 into merge-train/barretenberg Mar 12, 2026
10 checks passed
@notnotraju notnotraju deleted the rk/eccvm-external-audit-1-documentation branch March 12, 2026 13:40
github-merge-queue Bot pushed a commit that referenced this pull request Mar 12, 2026
BEGIN_COMMIT_OVERRIDE
chore: unify tests in ecc/curves and ecc/groups (#21392)
chore: `ecc/fields` ASM audit (#20892)
chore: audit the `ecc/field` extension field (#21409)
chore: responding to external IPA audit (#20334)
feat: committed sumcheck for batched Hiding Translator (#21376)
chore: documentation fixes for ECCVM after first external audit (#20348)
chore: Document RAM gate cost optimization opportunity (#21426)
refactor: rename MSGPACK_FIELDS to SERIALIZATION_FIELDS (#21175)
END_COMMIT_OVERRIDE
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.

2 participants