Skip to content

Commit

Permalink
More work on the workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed Nov 3, 2024
1 parent ecf6c4a commit 5a1dc31
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions workshop/workshop.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,28 @@ This part is optional but should be fun: team up with your neighbors and distrib

Make sure to open the required ports on your firewall.

### Interactive verifier

For the interactive verifier you can use the *interactive verifier* demo from the <https://github.com/tlsnotary/tlsn-js> repo. The demo is in the `verifier-server-ts` branch.

One team member starts the Verifier:
```bash
cd interactive-demo/verifier-rs; cargo run --release
```

And another team member runs the Prover. Make sure to configure the correct `VERIFIER_HOST` first:
```bash
cd interactive-demo/prover-rs; cargo run --release
```

[ ] Make it work
[ ] Check that the Verifier is not talking to the TLS server
[ ] Check that the Verifier only sees what the prover wants to disclose.
[ ] Try to make it break

## Building apps with TLSNotary

The next topic is building applications that use TLSNotary attestations.
The next topic is building web applications that use TLSNotary attestations.

First we'll create a plugin that notarizes your Twitter profile and next we'll crate a webapp that uses the browser extension to request an attestation of the user's Twitter profile.

Expand All @@ -218,21 +237,25 @@ Before we add the plugin into the extension, remove the existing Twitter plugin

Next click **Add plugin** and select the `twitter_profile.tlsn.wasm` file in the `dist` folder.

Next try the plugin.

Next try the plugin by clicking it in the extension and following the steps in the sidebar.

You can find more information at https://docs.tlsnotary.org/extension/plugins.html


> ℹ️ Note: Because we use Extism to build the TLSNotary Extension plugins, you can also write plugins in Rust. See https://github.com/tlsnotary/tlsn-plugin-boilerplate/tree/main/examples/twitter_profile_rs for an example.

TODO: merge https://github.com/tlsnotary/tlsn-plugin-boilerplate/pull/13

### Browser extension Connection API

TODO:
* https://docs.tlsnotary.org/extension/provider.html
https://github.com/tlsnotary/tlsn-plugin-demo
Good job! We are progressing nicely and learning a lot.
Next topic is exploring a web application that verifies that you have a Twitter account and rewards you with a POAP if you do.

Visit <TODO> and walk through the steps.

You can verify what the web app is doing by reading the source code at <https://github.com/tlsnotary/tlsn-plugin-demo>.

You can find more information on the [Provider API in our documentation](https://docs.tlsnotary.org/extension/provider.html).

> ⚠️ **Note:** This demo allows for proving with any notary (so that you can use local notary to avoid stressing the network.). In real world applications, please verify the attestation more carefully to make sure the attestations you receive are trustworthy.

### Play Time

Expand Down

0 comments on commit 5a1dc31

Please sign in to comment.