mirror of
https://github.com/tlsnotary/proof_viz.git
synced 2026-01-08 03:53:51 -05:00
Updated for alpha4 release
This commit is contained in:
@@ -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"]}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user