Explorar o código

correctly witness variable for MerklePath

narodnik %!s(int64=4) %!d(string=hai) anos
pai
achega
a83b2dfc97
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      example/halo2/src/vm2.rs

+ 1 - 1
example/halo2/src/vm2.rs

@@ -201,7 +201,7 @@ impl<'a> ZkCircuit<'a> {
             if name != variable {
                 continue;
             }
-            if *type_id != ZkType::Scalar {
+            if *type_id != ZkType::MerklePath {
                 return Err(Error::InvalidParamType);
             }
             *self.witness_merkle_path.get_mut(name).unwrap() = (Some(leaf_pos), Some(path));