Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add scalar_mult function to main.rs for Bn254 point multiplication #1708

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

rebustron
Copy link

scalar_mult function: This function takes a reference to a point (Bn254Point) and a scalar (32-byte array) as inputs. It performs scalar multiplication, returning a new Bn254Point that represents the resulting point after multiplication.

Bn254Scalar Conversion: The scalar byte array is converted into a Bn254Scalar using from_bytes, enabling multiplication with the point.

Usage: This function is helpful when performing cryptographic operations that require scalar multiplication of points, such as in zero-knowledge proof computations.

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