Ver código fonte

correctly witness variable for MerklePath

narodnik 4 anos atrás
pai
commit
a83b2dfc97
1 arquivos alterados com 1 adições e 1 exclusões
  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));