add an example to print the Fq and Fr of all the Arkworks' curves
- Apr 09, 2024
-
-
STEVAN Antoine authored
-
-
-
to generate the list of all curves to put in the macro ```nushell open Cargo.toml | get dev-dependencies | transpose k v | where k =~ "ark-" and k !~ "ark-poly" | get k | str replace --all '-' '_' | str join ",\n" ```
-
compute the list of all the curve crates from `arkwork-rs/algebra` ```nushell const ARK_REMOTE = "https://raw.githubusercontent.com/arkworks-rs/algebra/master/curves" let pkgs = http get ([$ARK_REMOTE, "Cargo.toml"] | str join '/') | get workspace.members | where $it != "curve-constraint-tests" | sort | wrap path | insert name {|it| print $it.path http get ([$ARK_REMOTE, $it.path, "Cargo.toml"] | str join '/') | get package.name } ``` add all the curves as dev dependencies ```nushell $pkgs | each { cargo add $in.name --dev } ```
-