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

Implement Big UInt Square for modexp #127

Open
ilitteri opened this issue Sep 25, 2023 · 0 comments
Open

Implement Big UInt Square for modexp #127

ilitteri opened this issue Sep 25, 2023 · 0 comments
Assignees
Labels

Comments

@ilitteri
Copy link
Collaborator

Context: modexp.yul

Description:

/// @notice Performs the big unsigned integer square of big unsigned integers with an arbitrary amount of limbs.
/// @dev The product is stored from `productPtr` to `productPtr + (WORD_SIZE * nLimbs)`.
bigUIntSqr(numberPtr, nLimbs, productPtr)

numberPtr: The pointer to the MSB of the big unsigned integer to square.
nLimbs: The number of limbs needed to represent the number to square.
productPtr: The pointer to where you want the product to be stored.

Recommendation:

Follow this implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants