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

refactor: kzg and polynomial commitment interfaces #63

Merged
merged 14 commits into from
Jun 22, 2021
Merged

Conversation

gbotrel
Copy link
Collaborator

@gbotrel gbotrel commented Jun 16, 2021

This PR removes polynomial/commitment.go and polynomial/polynomial.go interfaces.

KZG is now strongly typed per curve under ./ecc/curve/fr/kzg .

KZG structure has two elements: a fft domain and a SRS.

In a non-test environment, the SRS will be deserialized once (result of MPC) and shared accros KZG instances. Hence, this PR introduce kzg.SRS.

@gbotrel gbotrel merged commit c4dd88a into develop Jun 22, 2021
@gbotrel gbotrel deleted the feat/kzg_update branch June 22, 2021 19:50
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