Skip to content

Commit

Permalink
Revert "fix: api change in SessionProof"
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtsukino authored Jan 30, 2024
1 parent 3ba4269 commit 1ef6323
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wasm/prover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ pub async fn verify(proof: &str, notary_pubkey_str: &str) -> Result<String, JsVa
// The session header that was signed by the Notary is a succinct commitment to the TLS transcript.
header,
// This is the server name, checked against the certificate chain shared in the TLS handshake.
session_info,
server_name,
..
} = session;

Expand All @@ -474,7 +474,7 @@ pub async fn verify(proof: &str, notary_pubkey_str: &str) -> Result<String, JsVa
log!("-------------------------------------------------------------------");
log!(
"Successfully verified that the bytes below came from a session with {:?} at {}.",
session_info.server_name,
server_name,
time
);
log!("Note that the bytes which the Prover chose not to disclose are shown as X.");
Expand All @@ -497,7 +497,7 @@ pub async fn verify(proof: &str, notary_pubkey_str: &str) -> Result<String, JsVa
log!("-------------------------------------------------------------------");

let result = VerifyResult {
server_name: String::from(session_info.server_name.as_str()),
server_name: String::from(server_name.as_str()),
time: header.time(),
sent: String::from_utf8(sent.data().to_vec()).map_err(|e| {
JsValue::from_str(&format!("Could not convert sent data to string: {:?}", e))
Expand Down

0 comments on commit 1ef6323

Please sign in to comment.