Updated for alpha4 release

This commit is contained in:
Hendrik Eeckhaut
2024-02-13 20:56:50 +01:00
parent 8c6067f20a
commit 34b13559b6
3 changed files with 7 additions and 5 deletions

View File

@@ -14,8 +14,8 @@ gloo = "0.11.0"
js-sys = "0.3"
p256 = {version = "0.13", features = ["ecdsa"]}
serde_json = "1.0.107"
spansy = {git = "https://github.com/sinui0/spansy", rev = "becb33d"}
tlsn-core = {git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.3", package = "tlsn-core"}
spansy = {git = "https://github.com/tlsnotary/tlsn-utils", rev = "51f313d"}
tlsn-core = {git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.4", package = "tlsn-core"}
wasm-bindgen = "0.2.89"
wasm-logger = "0.2.0"
web-sys = {version = "0.3", features = ["File", "DragEvent", "DataTransfer"]}

View File

@@ -31,7 +31,9 @@ fn get_content_type(bytes: &[u8]) -> (ContentType, String) {
// log!(format!("Test {:?}", x.headers));
let content_type = (&x)
.header("Content-Type")
.headers
.iter()
.find(|h| h.name.as_str().to_lowercase() == "content-type")
.map_or(ContentType::Other, |header| {
let type_string = String::from_utf8_lossy(header.value.as_bytes());
match type_string {

View File

@@ -70,7 +70,7 @@ pub fn ViewFile(props: &Props) -> Html {
// 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.
server_name,
session_info,
..
} = session;
@@ -112,7 +112,7 @@ pub fn ViewFile(props: &Props) -> Html {
<div class="p-4 w-5/6">
<b>{"Server domain:" }</b>
<div class="bg-black text-white p-4 rounded-md">
<pre>{server_name.as_str().to_string()}</pre>
<pre>{session_info.server_name.as_str().to_string()}</pre>
</div>
<b>{"Notarization time:" }</b>
<div class="bg-black text-white p-4 rounded-md">