Skip to content

Conversation

@KSlashh
Copy link
Collaborator

@KSlashh KSlashh commented Nov 25, 2025

No description provided.

rejected-l and others added 30 commits August 19, 2025 16:29
fix BitVM#348 The bigint multiplication can be optimized

Co-authored-by: lynndell | bitlayer <lynndell.zhong@bitlayer.ltd>
fix BitVM#350 MSM chunk-count formula incorrect

Co-authored-by: lynndell | bitlayer <lynndell.zhong@bitlayer.ltd>
fix BitVM#363 Insufficient validation of generated hints

Co-authored-by: lynndell | bitlayer <lynndell.zhong@bitlayer.ltd>
* add verify_bigint_on_stack for bigint

* change name and remove unreachable script
* zellic g1 fixes

* test for read from stack

* deleted  hinted_x_from_eval_point and  hinted_y_from_eval_point functions

* fmt

* used fq::is_zero instead of comparing bytes to zero

* changed & to &&
* removed unnecessary log asserts

* removed unnecessary if branch in tonelli shanks

* removed unused imports
* fix fq6_hinted_mul_keep_elements

* removed unused import

* fmt
…put if NUM_PUBS > 1 (BitVM#369)

* fixed num_pub>1 case

* fixed num_pubs>1 case
…itVM#371)

* drop c left in the altstack

* remove if branch in utils_fq12_square since it doesnt occur
* fix BitVM#365 Blake3 script inscorrect

fix BitVM#365 Blake3 script inscorrect for more than 1,024 bytes of input or more than 32 bytes of output

* add assert to blake3 compress to check final_rounds is 8

---------

Co-authored-by: lynndell | bitlayer <lynndell.zhong@bitlayer.ltd>
* fix checksum length

* add warning for repeated hashes

* fix pushing digits

* fmt

* add hash length checks and comment verify_test_vector's temporarily since its not compatible with the new checksum length

* fix secret key generation

* remove BinarysearchVerifier bound check and add test to verify that it doesn't cause a vulnerability

* fix raw_witness_to_signature digit conversion
* add validation for hint being a correctly formed T type value to tmul

* check that hint y is valid in Fp254Impl::hinted_inv

* add check_validity to places where hints are used

* add Fq::check_validity and use it in necessary place

* add hint validity checks to chunk::taps_points:ops::utils_point_add_eval

* chore: rename check validity functions for cherry-picking optimized version

* feat: add check_validity function to Fp254

* chore: incorperate cherry-picked version

* opt: optimize copies for hint verifications with the cherry-picked verification

* fmt

---------

Co-authored-by: just-erray <c.e.aslan37@gmail.com>
* fix fp254impl issues

* fmt

* fmt

* add back necessary conflicted functions
* clear part1 report

* add assertion to push_u32_le

* fmt

* remove debug prints and improve test for limb_shr1_carry

* fmt

* limb_to_bits functions assert num_bits>0

* change G1Affine::roll, G2Affine::roll, G2Affine::copy parameters to in terms of Fq, and fix tests for bigint change

* fmt

* assert LIMB_SIZE < 31 in BigIntImpl

* restore bigint/mul.rs because it is fixed in another pr

* fmt

* apply parameter change to double_prevent_overflow_keep_element too
* feat: add check_validity function to Fp254

* feat: add validity checks to some functions in taps_ext_miller.rs as samples

* add validity check to taps_mul

* feat: add is_valid function to Fp254

* fix-feat: fix validity checks for precompute_p and complete validity checks for taps_ext_miller.rs

* feat: fix and add validity checks in taps_msm.rs

* fix: a validity check in taps_points_ops.rs

* fix-feat: correct and add validity checks

* fix: correct tests for test_point_ops_and_multiply_line_evals_step_1 tests according to the changed form of the input

* fix: add validity checks for G1Acc in chunk_msm

* opt: remove unnecessary q4 validity check

* fix: validity checks of taps_ext_miller::chunk_precompute_p_from_hash

* feat: add functions to analyze max stack usage of chunks

* fix: some typos and delete leftovers

---------

Co-authored-by: Hakkush-07 <hakan.karakus@std.bogazici.edu.tr>
Hakkush-07 and others added 3 commits November 11, 2025 12:35
* create a version of G1Affine::hinted_check_add that the caller must use with points that are not t==q nor t==-q

* optimize G1Affine::hinted_check_add and add TODO comments for later

* rearrange wrong if checks in G1Affine::hinted_check_add

* add validity checks to hints of new G1Affine::hinted_check_add

* fix hint validity check and roll in G1Affine::hinted_check_add
@KSlashh KSlashh merged commit aa9a0c6 into GOATNetwork:GA Nov 25, 2025
0 of 2 checks passed
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.

7 participants