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: alternative (slow) pedersen hash impl optimized for size #675

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

xJonathanLEI
Copy link
Owner

Adds a new pedersen_no_lookup feature on starknet-crypto that changes the Pedersen hash implementation to an unoptimized one that's around 10x as slow. In exchange, the produced binary size would be smaller. This can be very useful in cases where binary size is very important (e.g. browser), whereas Pedersen hash is minimally used.

This feature is not exposed through higher-level crates to avoid misuse, as enabling it imposes a heavy penalty on performance.

@xJonathanLEI xJonathanLEI force-pushed the dev/pedersen_no_lookup branch from a26c796 to ac3d632 Compare November 4, 2024 17:40
@xJonathanLEI xJonathanLEI merged commit 2291904 into master Nov 5, 2024
27 checks passed
@xJonathanLEI xJonathanLEI deleted the dev/pedersen_no_lookup branch November 5, 2024 03:37
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