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

reuse move-stdlib sha2 gas parameters in aptos-stdlib #7568

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

zjma
Copy link
Contributor

@zjma zjma commented Apr 4, 2023

SHA2-256 will be used in the new algebra module in aptos-stdlib, and it would be great to reuse the gas parameters defined in move-stdlib.

@zjma zjma marked this pull request as ready for review April 4, 2023 21:47
@zjma zjma merged commit cdbe85c into aptos-labs:algebra.move Apr 4, 2023
move_stdlib::natives::all_natives(CORE_CODE_ADDRESS, gas_params.move_stdlib)
.into_iter()
.filter(|(_, name, _, _)| name.as_str() != "vector")
.chain(aptos_framework::natives::all_natives(
CORE_CODE_ADDRESS,
sha256_gas_params,
Copy link
Contributor

Choose a reason for hiding this comment

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

You could've passed all the Move gas parameters here because it's likely that, down the road, we will need those other parameters too.

zjma added a commit that referenced this pull request Apr 7, 2023
* generic algebraic structures and operations in move, plus bls12381 implementation

* fix prover test failures

* update

* update doc

* update msm gas cost

* hash_to gas formula update

* type names and documentations

* update groth16 example

* update gas formula for dst shortening

* format name update

* update gas parameters

* update gas scripts to not depend on MUL

* reuse move-stdlib sha2 gas parameters in aptos-stdlib (#7568)

* reuse move-stdlib sha2 gas parameters in aptos-stdlib

* cleanup

* update doc

* shorten symbol names

* doc update

* update gas script readme

* rename module to crypt_algebra (#7586)

* better module names

* aptos framework now has access to the full move stdlib gas params
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.

2 participants