Przeglądaj źródła

tests: Fix halo2_vk_ser test.

parazyd 3 lat temu
rodzic
commit
39dd16e9a9
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      tests/halo2_vk_ser.rs

+ 3 - 3
tests/halo2_vk_ser.rs

@@ -44,7 +44,7 @@ use darkfi::{
 };
 
 #[test]
-fn zkvm_opcodes() -> Result<()> {
+fn halo2_vk_ser() -> Result<()> {
     let bincode = include_bytes!("../proof/opcodes.zk.bin");
     let zkbin = ZkBinary::decode(bincode)?;
 
@@ -95,8 +95,8 @@ fn zkvm_opcodes() -> Result<()> {
     let c1 = pallas::Base::random(&mut OsRng);
     let c3 = pallas::Base::random(&mut OsRng);
     let c2 = {
-        let messages = [pallas::Base::one(), blind];
-        poseidon::Hash::<_, P128Pow5T3, ConstantLength<2>, 3, 2>::init().hash(messages)
+        let messages = [pallas::Base::one(), pallas::Base::from(2), blind];
+        poseidon::Hash::<_, P128Pow5T3, ConstantLength<3>, 3, 2>::init().hash(messages)
     };
 
     tree.append(&MerkleNode::from(c0));