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

Handle whole domain commitment by pointer #16529

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

Trivo25
Copy link
Member

@Trivo25 Trivo25 commented Jan 27, 2025

@Trivo25 Trivo25 marked this pull request as ready for review January 27, 2025 10:21
@Trivo25 Trivo25 requested a review from a team as a code owner January 27, 2025 10:21
srs.get_lagrange_basis_from_domain_size(domain_size as usize).clone().into_iter().map(|x| x.into()).collect()
// read the commitment at the pointers address, hack for the web worker implementation (see o1js web worker impl for details)
let b = unsafe { Box::from_raw(ptr) };
b.as_ref().clone()
Copy link
Member

Choose a reason for hiding this comment

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

I am worried about the overhead that cloning can add.
I would try with a Result<L, E> as I think there is a pointer under the hood too.

Copy link
Member

Choose a reason for hiding this comment

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

As discussed with @Trivo25, I would give a shot with the Result right after, maybe before a release.

@Trivo25 Trivo25 merged commit c9e8363 into fix/compatibility Jan 27, 2025
1 check passed
@Trivo25 Trivo25 deleted the fix/compatibility-followup branch January 27, 2025 12:51
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