Files
tlsn-js/interactive-demo
Hendrik Eeckhaut 1ded4136bf Interactive Prover in Typescript (Verifier in Rust) (#74)
feat: interactive verifier demo

* Verifier in Rust
* Prover in both Rust and TypeScript/React

---------
Co-authored-by: Pete Thomas <pete@xminusone.net>
Co-authored-by: yuroitaki <25913766+yuroitaki@users.noreply.github.com>
2024-11-05 22:41:30 +07:00
..

Test Rust Prover

  1. Start the verifier:
cd verifier-rs; cargo run --release
  1. Run the prover:
cd prover-rs; cargo run --release

Test Browser Prover

  1. Start the verifier:
cd verifier-rs; cargo run --release
  1. Since a web browser doesn't have the ability to make TCP connection, we need to use a websocket proxy server to access <swapi.dev>.
cargo install wstcp

wstcp --bind-addr 127.0.0.1:55688 swapi.dev:443
  1. Run the prover
    1. Build tlsn-js
      cd ..
      npm i
      npm run build
      npm link
      
    2. Build demo prover-ts
      cd prover-ts
      npm i
      npm link
      npm run dev
      
    3. Open http://localhost:8080/ and click Start Prover