Skip to content

Commit 45fe696

Browse files
committed
chore: serialized
1 parent ca0be87 commit 45fe696

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

notary/src/proxy.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,11 @@ pub fn create_tee_proof(
124124
validate_notarization_legal(manifest, request, response)?;
125125

126126
let value = response.notary_response_body.clone().json.unwrap();
127+
let serialized_value = serde_json::to_string(&value).unwrap();
127128
let manifest_hash = manifest.to_keccak_digest()?;
128-
let to_sign = VerifyOutput { value, manifest: manifest.clone() };
129+
let to_sign = VerifyOutput { value: serialized_value.clone(), manifest: manifest.clone() };
129130
let signature = sign_verification(to_sign, State(state)).unwrap();
130-
let data = TeeProofData { value, manifest_hash: manifest_hash.to_vec() };
131+
let data = TeeProofData { value: serialized_value, manifest_hash: manifest_hash.to_vec() };
131132
Ok(TeeProof { data, signature })
132133
}
133134

0 commit comments

Comments
 (0)