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

Browser integration of prover #10

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ main = defaultMainWithHooks simpleUserHooks
buildRustLib :: Args -> a -> IO HookedBuildInfo
buildRustLib _ flags = do

buildResult <- system "cargo +nightly cbuild --release --manifest-path rust-wrapper/Cargo.toml"
dir <- getCurrentDirectory

buildResult <- system ("cargo +nightly cbuild --release --manifest-path " ++ dir ++ "/rust-wrapper/Cargo.toml")
case buildResult of
ExitSuccess -> return ()
ExitFailure exitCode -> throwIO $ userError $ "Build rust library failed with exit code " <> show exitCode
Expand Down
11 changes: 5 additions & 6 deletions zkfold-prover.cabal
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
cabal-version: 3.0
name: haskell-wrapper
name: zkfold-prover
version: 0.1.0.0
license: BSD-3-Clause
license-file: LICENSE
author: ZkFold
maintainer: [email protected]
category: Network
build-type: Custom
extra-doc-files: CHANGELOG.md

custom-setup
setup-depends:
Expand Down Expand Up @@ -105,7 +104,7 @@ test-suite wrapper-test
build-depends:
, base >= 4.16
, zkfold-base
, haskell-wrapper
, zkfold-prover
, hspec < 2.12
, QuickCheck
, vector
Expand All @@ -125,7 +124,7 @@ benchmark msm
vector,
zkfold-base,
bytestring,
haskell-wrapper
zkfold-prover

benchmark prove
import: options
Expand All @@ -142,7 +141,7 @@ benchmark prove
vector,
zkfold-base,
bytestring,
haskell-wrapper
zkfold-prover

benchmark poly-mul
import: options
Expand All @@ -159,6 +158,6 @@ benchmark poly-mul
vector,
zkfold-base,
bytestring,
haskell-wrapper,
zkfold-prover,
random,
deepseq