Files
website/docs/quick_start/rust.md
2025-10-16 09:47:29 +02:00

1.8 KiB

sidebar_position, sidebar_label
sidebar_position sidebar_label
1 Rust

Rust Quick Start

This quick start demonstrates how to use TLSNotary with Rust code.

Requirements

Before we start, make sure you have cloned the tlsn repository and have a recent version of Rust installed.

  1. Clone the tlsn repository (defaults to the main branch, which points to the latest release):
    git clone https://github.com/tlsnotary/tlsn.git
    
  2. If you don't have Rust installed yet, you can install it using rustup. If your Rust version is outdated, update it with rustup update stable.

Simple Interactive Verifier: Verifying Data from an API in Rust

This example demonstrates how to use TLSNotary in a simple interactive session between a Prover and a Verifier. It involves the Verifier first verifying the MPC-TLS session and then confirming the correctness of the data.

Follow the instructions from: https://github.com/tlsnotary/tlsn/tree/main/crates/examples/interactive#readme

Simple Attestation Example: Attesting and Verifying Data from an API in Rust

TLSNotary also supports a workflow where a Verifier (acting as Attestor) attests to the proven data. The Prover can then generate a presentation of this attested data, which can be verified by anyone who trusts the Attestor.

Follow the instructions from: https://github.com/tlsnotary/tlsn/tree/main/crates/examples/attestation#readme

🍾 Great job! You have successfully used TLSNotary in Rust.