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

NOVA Scotia folding scheme test done #227 #240

Open
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

csiejimmyliu
Copy link

  • Nova Scotia folding test in morpo ffi
  • Using toy r1cs example of Fibonacci sequence

Copy link
Collaborator

@vivianjeng vivianjeng left a comment

Choose a reason for hiding this comment

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

It looks good! Thank you for your contribution
there are several points that can be changed

  1. rename the circuit (toy -> e.g.adder or fibonacci)
  2. remove temporary files jna-5.13.0.jar, toy_js/ ( we just need the r1cs and wasm
  3. try to run test with cargo test --features nova_scotia and include the CI script like
    - name: Run ffi halo2 tests
    run: cd mopro-ffi && cargo test --features halo2 --no-default-features

mopro-ffi/Cargo.toml Outdated Show resolved Hide resolved
mopro-ffi/Cargo.toml Outdated Show resolved Hide resolved
mopro-ffi/src/lib.rs Outdated Show resolved Hide resolved
@vivianjeng
Copy link
Collaborator

and please use cargo fmt --all to format the code

Copy link
Collaborator

@vivianjeng vivianjeng left a comment

Choose a reason for hiding this comment

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

Thank you for fixing the errors
Can you fix the feature's name to nova-scotia
Thank we can merge this PR 🙏🏻

@@ -46,6 +48,18 @@ jobs:
override: true
- name: Run ffi circom tests
run: cd mopro-ffi && cargo test --features circom --no-default-features
test-ffi-nova_scotia:
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we align the usage of - and _
I prefer the feature flag be nova-scotia
e.g. --features nova-scotia
(but in rust code some place needs to be nova_scotia then just keep them nova_scotia)

Comment on lines +38 to +39
nova_scotia = [
"nova-scotia",
Copy link
Collaborator

Choose a reason for hiding this comment

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

this can be changed to

nova-scotia = [
    "dep:nova-scotia",

to activate the dependency with the same name

Comment on lines +28 to +32
# Nova Scotia dependencies
nova-scotia = { version = "0.5.0" }
nova-snark = { version="0.23.0" }
serde_json = { version="1.0.85" }

Copy link
Collaborator

Choose a reason for hiding this comment

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

we should remove this (for now)
since we don't activate the nova-scotia feature
(and it needs to work without these dependencies)

but once you update the type for udl (serialization)
it should be solved easily
it can be done in another PR

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.

4 participants