Skip to content

Commit

Permalink
fix: switch to crates.io ashlang version
Browse files Browse the repository at this point in the history
  • Loading branch information
chancehudson committed Oct 15, 2024
1 parent fd37019 commit d8aab2e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
9 changes: 7 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion mopro-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ thiserror = "=1.0.39"
color-eyre = "=0.6.2"

# ashlang deps
ashlang = { path = "../../ashlang/ashlang", optional = true }
#ashlang = { path = "../../ashlang/ashlang", optional = true }
ashlang = { version = "0.1.0", optional = true }

# circom deps
rust-witness = { version = "0.1.0", optional = true }
Expand Down
6 changes: 2 additions & 4 deletions mopro-ffi/src/ashlang/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ pub fn verify(in0: String, in1: Vec<u8>, in2: Vec<u8>) -> Result<bool, MoproErro

#[cfg(test)]
mod tests {
use ::ashlang::AshlangProver;

use crate::ashlang;
use super::*;

#[test]
fn test_ashlang_prove_verify() -> anyhow::Result<()> {
let proof = ashlang::prove(
prove(
"../test-vectors/ashlang/example.ar1cs".to_string(),
vec!["55".to_string()],
)?;
Expand Down

0 comments on commit d8aab2e

Please sign in to comment.