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

fix halo2 verifier guest code #1137

Conversation

lispc
Copy link
Contributor

@lispc lispc commented Dec 26, 2024

No description provided.

Copy link
Contributor

@jonathanpwang jonathanpwang left a comment

Choose a reason for hiding this comment

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

LGTM
After we merge main I think workspace halo2curves-axiom will also be 0.5.3

impl EcPointLoader<G1Affine> for OpenVmLoader {
type LoadedEcPoint = OpenVmEcPoint<G1Affine, EcPoint>;

fn ec_point_load_const(&self, value: &G1Affine) -> Self::LoadedEcPoint {
let point = EcPoint {
x: Fp::from_be_bytes(&value.x().to_bytes()),
y: Fp::from_be_bytes(&value.y().to_bytes()),
x: Fp::from_le_bytes(&value.x.to_bytes()),
Copy link
Contributor

Choose a reason for hiding this comment

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

just noting the halo2curves .to_bytes() actually does some computation, but with the way snark-verifier traits work, this seems unavoidable

@jonathanpwang jonathanpwang merged commit 8ea553e into openvm-org:feat/axvm-verifier Dec 27, 2024
3 checks passed
@lispc lispc deleted the zzhang/fix/halo2-verifier-guest branch December 27, 2024 23:23
jonathanpwang added a commit that referenced this pull request Dec 31, 2024
* make msm implementation with blackbox

* feat: use msm_serial variant

* feat: set up foundations

* wip

* implement accumulation decider

* wip

* wip

* wip

* wip

* finish loader

* finish decider

* finish transcript(?)

* add files

* verifier code done

* rename and clean

* fix halo2 verifier guest code (#1137)

* fix halo2 verifier guest code

* clean

* build

* switch to workspace snark verifier

* add tests for verifier

* rename and add files

* wip: make integration test

* chore: protect EcPoint constructor

* feat: add integration test

* chore: remove unused

* chore: lints

---------

Co-authored-by: Zhang Zhuo <[email protected]>
Co-authored-by: Jonathan Wang <[email protected]>
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