Browse Source

remove the test case as we no longer have circom to reproduce it

remove unused file

remove further smt stuff
pull/4/head
mmagician 5 months ago
parent
commit
48610729f2
No known key found for this signature in database GPG Key ID: BDEF1AAE14CCE516
5 changed files with 1 additions and 20 deletions
  1. +1
    -17
      src/witness/witness_calculator.rs
  2. +0
    -1
      test-vectors/smtverifier10-input.json
  3. +0
    -1
      test-vectors/smtverifier10-witness.0.json
  4. +0
    -1
      test-vectors/smtverifier10-witness.json
  5. BIN
      test-vectors/smtverifier10.wasm

+ 1
- 17
src/witness/witness_calculator.rs

@ -316,7 +316,7 @@ mod tests {
let witness: Vec<String> = serde_json::from_str(&witness).unwrap();
let witness = &witness.iter().map(|x| x.as_ref()).collect::<Vec<_>>();
run_test(TestCase {
circuit_path: root_path("test-vectors/circuit2.wasm").as_str(),
circuit_path: root_path("test-vectors/circuit2_js/circuit2.wasm").as_str(),
inputs_path: root_path("test-vectors/mycircuit-input1.json").as_str(),
n_vars: 132, // 128 + 4
n64: 4,
@ -324,22 +324,6 @@ mod tests {
});
}
#[tokio::test]
async fn smt_verifier() {
let witness =
std::fs::read_to_string(root_path("test-vectors/smtverifier10-witness.json")).unwrap();
let witness: Vec<String> = serde_json::from_str(&witness).unwrap();
let witness = &witness.iter().map(|x| x.as_ref()).collect::<Vec<_>>();
run_test(TestCase {
circuit_path: root_path("test-vectors/smtverifier10.wasm").as_str(),
inputs_path: root_path("test-vectors/smtverifier10-input.json").as_str(),
n_vars: 4794,
n64: 4,
witness,
});
}
use serde_json::Value;
use std::str::FromStr;

+ 0
- 1
test-vectors/smtverifier10-input.json

@ -1 +0,0 @@
{"enabled":1,"fnc":0,"root":"4677130581325536491486966387607462164138332022971476080171400451642918512081","siblings":["3663166078965935940798554689567237216195612079341396621785946741270885707796","0","0","15268343501033916092396853374199187988748455820543796633535012025134089057292","0","0","0","0","0","0"],"oldKey":0,"oldValue":0,"isOld0":0,"key":8,"value":"88"}

+ 0
- 1
test-vectors/smtverifier10-witness.0.json
File diff suppressed because it is too large
View File


+ 0
- 1
test-vectors/smtverifier10-witness.json
File diff suppressed because it is too large
View File


BIN
test-vectors/smtverifier10.wasm


Loading…
Cancel
Save