diff --git a/src/process.rs b/src/process.rs index 474e9c6..ad553c5 100644 --- a/src/process.rs +++ b/src/process.rs @@ -83,6 +83,9 @@ impl ProcessState { // Todo for now we rehash everything, which is a bit wasteful but fine for a proto + // Update state_id + self.state_id = self.pcd_commitment.create_merkle_tree()?.root().unwrap().to_lower_hex_string(); + // Update the encrypted value Value::Object(clear_pcd).encrypt_fields(&[key.to_string()], &mut self.keys, self.encrypted_pcd.as_object_mut().unwrap())?;