TLSNotary
- Interactive Prover Demo
+ Interactive Verifier Demo
- Before clicking the Start{' '}
- button, make sure the interactive verifier and the{' '}
- web socket proxy are running.
+ Before clicking the Verify{' '}
+ button, make sure the interactive Prover is running.
+ (This demo does not require a proxy server.)
Check the{' '}
@@ -181,13 +125,10 @@ function App(): ReactElement {
{serverUrl} |
- | Verifier |
- {verifierProxyUrl} |
-
-
- | WebSocket Proxy |
- {websocketProxyUrl} |
+ Prover |
+ {proverProxyUrl} |
+
@@ -199,11 +140,11 @@ function App(): ReactElement {
${processing ? 'bg-slate-400 cursor-not-allowed' : 'bg-slate-600 hover:bg-slate-700'}
`}
>
- Start Prover
+ Verify Prover Server
- Proof:
+ Verified data:
{!processing && !result ? (
Not started yet
) : !result ? (
diff --git a/demo/interactive-demo-inverted/prover-ts/src/worker.ts b/demo/interactive-demo-inverted/verifier-ts/src/worker.ts
similarity index 55%
rename from demo/interactive-demo-inverted/prover-ts/src/worker.ts
rename to demo/interactive-demo-inverted/verifier-ts/src/worker.ts
index 72ced4f..d221592 100644
--- a/demo/interactive-demo-inverted/prover-ts/src/worker.ts
+++ b/demo/interactive-demo-inverted/verifier-ts/src/worker.ts
@@ -1,7 +1,7 @@
import * as Comlink from 'comlink';
-import init, { Prover } from 'tlsn-js';
+import init, { Verifier } from 'tlsn-js';
Comlink.expose({
init,
- Prover,
+ Verifier,
});
diff --git a/demo/interactive-demo-inverted/prover-ts/tailwind.config.js b/demo/interactive-demo-inverted/verifier-ts/tailwind.config.js
similarity index 100%
rename from demo/interactive-demo-inverted/prover-ts/tailwind.config.js
rename to demo/interactive-demo-inverted/verifier-ts/tailwind.config.js
diff --git a/demo/interactive-demo-inverted/prover-ts/tests/demo-flow.spec.ts b/demo/interactive-demo-inverted/verifier-ts/tests/demo-flow.spec.ts
similarity index 100%
rename from demo/interactive-demo-inverted/prover-ts/tests/demo-flow.spec.ts
rename to demo/interactive-demo-inverted/verifier-ts/tests/demo-flow.spec.ts
diff --git a/demo/interactive-demo-inverted/prover-ts/tsconfig.json b/demo/interactive-demo-inverted/verifier-ts/tsconfig.json
similarity index 100%
rename from demo/interactive-demo-inverted/prover-ts/tsconfig.json
rename to demo/interactive-demo-inverted/verifier-ts/tsconfig.json
diff --git a/demo/interactive-demo-inverted/prover-ts/webpack.js b/demo/interactive-demo-inverted/verifier-ts/webpack.js
similarity index 100%
rename from demo/interactive-demo-inverted/prover-ts/webpack.js
rename to demo/interactive-demo-inverted/verifier-ts/webpack.js