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

Add BLS signature cache #2005

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Add BLS signature cache #2005

merged 1 commit into from
Jul 24, 2024

Conversation

ureeves
Copy link
Member

@ureeves ureeves commented Jul 23, 2024

Cache definition placed in a different file, and abstracted away with a macro, allowing one to generate different cache types according to in-code parameters.

This macro is then leveraged to generate both Plonk proof and BLS signature caches, which are then subsequently used in our code.

To slightly improve the implementation of both, the hash used as a cache key is now computed using the argument buffer contents, as opposed to the deserialized parameters. This allows for a cleaner and more performant implementation.

See-also: #1984

Cache definition placed in a different file, and abstracted away with a
macro, allowing one to generate different cache types according to
in-code parameters.

This macro is then leveraged to generate both Plonk proof and BLS
signature caches, which are then subsequently used in our code.

To slightly improve the implementation of both, the hash used as a cache
key is now computed using the argument buffer contents, as opposed to
the deserialized parameters. This allows for a cleaner and more
performant implementation.

See-also: #1984
@ureeves ureeves force-pushed the cache-bls-signatures branch from 6f3de4d to 6ade1ec Compare July 23, 2024 19:35
@ureeves ureeves merged commit 1a4f7bb into master Jul 24, 2024
8 checks passed
@ureeves ureeves deleted the cache-bls-signatures branch July 24, 2024 08:36
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