Skip to content

Conversation

@adecaro
Copy link
Member

@adecaro adecaro commented Dec 15, 2025

This PR introduces computation and memory allocation improvements for the curve gurvy/bls12381.
In addition, it adds the following functions to math.go:

  • Zr#InvModOrder to compute the inverse module the order of the curve this Zr element belongs to
  • G1#Mul2InPlace is like G1#Mul2 but mutative
  • ModAddMul sums the component-wise produce of the input vectors.
  • ModAddMul2 sums the products of first and second inputs and third and forth inputs

Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
@adecaro adecaro self-assigned this Dec 15, 2025
@adecaro adecaro requested a review from ale-linux December 15, 2025 09:49
Copy link
Collaborator

@ale-linux ale-linux left a comment

Choose a reason for hiding this comment

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

LGTM - only one Q

Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
@adecaro adecaro requested a review from ale-linux January 14, 2026 09:10
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
@adecaro adecaro merged commit 21c357e into main Jan 23, 2026
2 checks passed
@adecaro adecaro deleted the f-perf branch January 23, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants