Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add validity checks to hints of new G1Affine::hinted_check_add
  • Loading branch information
Hakkush-07 committed Oct 13, 2025
commit d6bad4f88438a8386096625e014926bbfbfb095b
6 changes: 3 additions & 3 deletions bitvm/src/bn254/g1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,16 +264,16 @@ impl G1Affine {
OP_FROMALTSTACK OP_DROP
{ G1Affine::drop() }
{ G1Affine::drop() }
{ G1Affine::push_zero() }
{ G1Affine::identity() }
OP_ELSE // case: t != -q
for _ in 0..Fq::N_LIMBS {
OP_DEPTH OP_1SUB OP_ROLL
}
// TODO: uncomment out this line after 3.4 { Fq::copy(0) } { Fq::check_validity() }
{ Fq::copy(0) } { Fq::check_validity() }
for _ in 0..Fq::N_LIMBS {
OP_DEPTH OP_1SUB OP_ROLL
} // qx qy tx ty c3 c4
// TODO: uncomment out this line after 3.4 { Fq::copy(0) } { Fq::check_validity() }
{ Fq::copy(0) } { Fq::check_validity() }
{ Fq::copy(1) } // qx qy tx ty c3 c4 c3
{ Fq::copy(1) } // qx qy tx ty c3 c4 c3 c4
{ Fq::copy(5) } // qx qy tx ty c3 c4 c3 c4 tx
Expand Down
Loading