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 CopyWithFreshBuffer a function to copy the state #370

Merged

Conversation

AlexandreBelling
Copy link
Collaborator

Adds a method CopyWithFreshBuffer to the RSis struct.

Returns a clone of the RSis parameters with a fresh and empty buffer. Does not mutate the current instance. The keys and the public parameters of the SIS instance are not deep-copied. It is useful when we want to hash in parallel. Otherwise, we would have to generate an entire RSis for each thread.

@ivokub
Copy link
Collaborator

ivokub commented Apr 6, 2023

Looks good to me, but I don't have experience in this part of the code. @ThomasPiellard, @Tabaie, can you have a look?

@gbotrel gbotrel merged commit de5cb7b into Consensys:develop Apr 11, 2023
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.

None yet

3 participants