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: nifs::protogalaxy from C::Base to C::Scalar #396

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

cyphersnake
Copy link
Collaborator

@cyphersnake cyphersnake commented Nov 29, 2024

Motivation
We need consistent types for #369 between nifs <-> ivc protogalaxy modules

Overview
I had to make many types independent of the curve. Since for the random oracle logic we are byte-by-by-byte distilling from all fields to the target field anyway, I got rid of Scalar -> Base in favor of any field.

So now it can be both C::Base (for sangria) and C::Scalar (for cyclefold)

There are no other functional changes, only generic refactoring

@cyphersnake cyphersnake requested a review from chaosma November 29, 2024 15:24
@cyphersnake cyphersnake self-assigned this Nov 29, 2024
Copy link
Collaborator

@chaosma chaosma left a comment

Choose a reason for hiding this comment

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

finish the first round review. Left to review:
src/ivc/protogalaxy/mod.rs

Copy link
Collaborator

@chaosma chaosma left a comment

Choose a reason for hiding this comment

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

LGTM

Base automatically changed from 369-sfc-3 to main December 16, 2024 13:26
**Motivation**
We need consistent types for #369 between nifs <-> ivc protogalaxy modules

**Overview**
I had to make many types independent of the curve. Since for the random oracle logic we are byte-by-by-byte distilling from all fields to the target field anyway, I got rid of Scalar -> Base in favor of any field.

So now it can be both C::Base (for sangria) and C::Scalar (for cyclefold)

There are no other functional changes, only generic refactoring
@cyphersnake cyphersnake merged commit 9b3e6df into main Dec 16, 2024
1 check passed
@cyphersnake cyphersnake deleted the 369-sfc-4 branch December 16, 2024 13:29
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