Skip to content

Commit

Permalink
update the host empty input
Browse files Browse the repository at this point in the history
  • Loading branch information
[gavin-ygy] committed Nov 13, 2024
1 parent b572ecc commit 70a6259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions host-program/src/bin/zkm-prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ fn update_public_inputs_with_bincode(
public_inputs.userdata = public_inputstream;
} else if public_inputstream.is_empty() {
log::info!(" hash(bincode(pulic_input))2: {:?} ", &userdata);
//, update userdata with bincode(host's public_inputs).
public_inputs.userdata = userdata;
//2', here, the bincode() setting as vec![0u8; 32].
public_inputs.userdata = vec![0u8; 32];
} else {
log::info!(
"public inputs's hash is different. the proof's is: {:?}, host's is :{:?} ",
Expand Down

0 comments on commit 70a6259

Please sign in to comment.