# Proof Source: https://docs.verity.usher.so/api-reference/endpoint/proof get /proof/{requestId} Opens a Server-Sent Events (SSE) connection to receive proofs for a specific request # ANY /proxy Source: https://docs.verity.usher.so/api-reference/endpoint/proxy-get get /proxy Technically, any HTTP method can be used, but the most common use cases are GET and POST. Forwards a GET request to a target URL and generates proofs # Proxy Source: https://docs.verity.usher.so/api-reference/endpoint/proxy-post post /proxy Forwards any HTTP request to a target URL and generates TLS proofs # null Source: https://docs.verity.usher.so/api-reference/introduction The Verity Prover is a proxy server that enables you to generate cryptographic proofs for API interactions. It acts as a middleware between your application and target APIs, allowing you to prove specific aspects of the request/response cycle while selectively redacting sensitive information. # Key Concepts ## Request ID Every proof generation requires a unique Request ID (UUID) to track and retrieve the proof. You can generate one using: ```bash uuidgen ``` ## Proof Subscription Proofs are delivered asynchronously via Server-Sent Events (SSE). You'll need to establish a connection to receive proofs as they're generated. ## Core Endpoints ### Proxy Endpoint (`/proxy`) This endpoint forwards your requests to target APIs while generating proofs. You can use any HTTP method to call this endpoint, such as GET, POST, PUT, DELETE, etc. #### Required Headers: * `T-PROXY-URL`: The target API URL you want to call * `T-REQUEST-ID`: Your generated UUID for tracking the proof * `T-REDACTED` (optional): Comma-separated list of fields to redact * `T-PROVE-FAILED-REQ` (optional): If set to true, the proof will be generated even if the request fails #### Redaction Syntax: The `T-REDACTED` header allows you to specify which parts of the request and response should be redacted from the generated proofs. Understanding the syntax is crucial for effectively protecting sensitive information while maintaining the integrity of your proofs. Below is a detailed explanation of each redaction pattern you can use: * **`req:body:fieldName`**\ *Redact a specific field in the request body.*\ Replace `fieldName` with the exact name of the field you want to redact.\ **Example:**\ `req:body:password`\ This will redact the `password` field from the request body. * **`req:header:headerName`**\ *Redact a specific header in the request.*\ Replace `headerName` with the name of the header you wish to redact.\ **Example:**\ `req:header:Authorization`\ This will redact the `Authorization` header from the request. * **`res:body:fieldName`**\ *Redact a specific field in the response body.*\ Replace `fieldName` with the name of the field you want to redact.\ **Example:**\ `res:body:creditCardNumber`\ This will redact the `creditCardNumber` field from the response body. * **`res:header:headerName`**\ *Redact a specific header in the response.*\ Replace `headerName` with the name of the header you wish to redact.\ **Example:**\ `res:header:Set-Cookie`\ This will redact the `Set-Cookie` header from the response. * **`res:query:queryName`**\ *Redact a specific query parameter in the response URL.*\ Replace `queryName` with the name of the query parameter you want to redact.\ **Example:**\ `res:query:userId`\ This will redact the `userId` query parameter from the response URL. * **`res:path:PathIndex`**\ *Redact a specific segment of the response URL path based on its position.*\ Replace `PathIndex` with the numerical position of the path segment you wish to redact, starting from 1.\ **Example:**\ `res:path:2`\ If the response URL is `https://api.example.com/users/12345/profile`,\ `res:path:2` will redact `12345` from the path. * **`search:substring`**\ *Redact all occurrences of a specific substring within the response.*\ Replace `substring` with the exact phrase or word you want to redact.\ **Example:**\ `search:secret`\ This will redact every instance of the word "secret" in the response content. **Usage Tips:** * **Combining Multiple Redactions:** You can specify multiple redaction patterns by separating them with commas.\ **Example:**\ `res:body:id,req:header:Authorization,search:password` * **Order Matters:** The redactions are applied in the order they are specified. Ensure that more general redactions (like `search`) do not inadvertently redact intended data. * **Testing Redactions:** Before deploying, test your redaction patterns to ensure they effectively hide the desired information without affecting other parts of the data. ### Proof Subscription (`/proof/{requestId}`) Subscribe to receive proofs for a specific request ID via SSE. #### Basic POST Request ```bash curl http://localhost:8080/proxy -X POST \ -H "T-PROXY-URL: https://jsonplaceholder.typicode.com/posts?search=john_dohn&type=agent&userId=1224" \ -H "T-REDACTED: res:body:id,req:body:userId,res:query:userId,search:title,req:header:x-api-key,res:path:1" \ -H "T-REQUEST-ID: " \ -H "Content-Type: application/json" \ -d '{"title": "Example", "userId": 1}' ``` #### Simple GET Request ```bash curl http://localhost:8080/proxy -X GET \ -H "T-PROXY-URL: https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd" \ -H "T-REQUEST-ID: " \ -H "Content-Type: application/json" ``` #### Subscribing to Proofs ```bash curl -N http://localhost:8080/proof/ ``` ## Best Practices 1. **Always Generate Fresh UUIDs**: Use a new UUID for each proof request to avoid collisions. 2. **Subscribe First**: Set up your SSE connection before making the proxy request. 3. **Handle Timeouts**: Implement appropriate timeout handling for both proxy requests and SSE connections. 4. **Redact Sensitive Data**: Use the `T-REDACTED` header to protect sensitive information from TLS proofs while maintaining proof validity. 5. **Error Handling**: The API uses standard HTTP status codes: * 200: Successful request * 400: Bad request (invalid headers or body) * 404: Target API not found * 500: Server error # Rust Source: https://docs.verity.usher.so/build/clients/rust A Rust client SDK for interacting with Verity Prover The Verity Client SDK is a Rust-based client library that enables interaction with the Verity Prover service. It's built on top of the `reqwest` HTTP client and provides a convenient interface for making verifiable HTTP requests. To read the docs.rs documentation on the `verity-client` crate, please visit: [https://usherlabs.github.io/verity-dp/packages/verity-client/doc/verity\_client/index.html](https://usherlabs.github.io/verity-dp/packages/verity-client/doc/verity_client/index.html) ## Installation Add the following to your `Cargo.toml`: ```toml [dependencies] verity-client = "0.1.0" ``` ## `VerityClient` The main client struct that handles all interactions with the Verity Prover service. It's built upon reqwest and provides methods for making HTTP requests with built-in verification. ```rust let config = VerityClientConfig { prover_url: String::from("http://127.0.0.1:8080"), }; let client = VerityClient::new(config); ``` ## Request Building The SDK provides a builder pattern for constructing requests. You can: * Make GET and POST requests * Add headers * Set request bodies * Configure redaction rules ## Making Requests ### GET Request Example Here's how to make a simple GET request: ```rust let response = VerityClient::new(config) .get("https://api.example.com/data") .send() .await?; ``` ### POST Request with JSON For POST requests with JSON payload: ```rust let response = VerityClient::new(config) .post("https://api.example.com/data") .json(&serde_json::json!({ "userId": 1000, "firstName": "John" })) .send() .await?; ``` ## Data Redaction The SDK supports redacting sensitive information from both requests and responses in the generated TLS proofs using the `redact()` method: ```rust let client = VerityClient::new(config); let response = client .post("https://api.example.com/users") .redact(String::from("req:body:firstName, res:body:firstName")) .json(&user_data) .send() .await?; ``` ## Response Handling The SDK returns a `VerityResponse` struct containing: * The original response (`subject`) * A proof of the request/response interaction (`proof`) * The notary's public key (`notary_pub_key`) ## Advanced Features ### Notary Information You can retrieve information about the connected notary: ```rust let notary_info = client.get_notary_info().await?; println!("Notary Version: {}", notary_info.version); println!("Public Key: {}", notary_info.public_key); ``` ### Response to Proof Timeout The SDK implements a default proof timeout of 1000ms, after which it will cancel the proof awaiting process if no proof is received. This is the time to wait for a proof received over SSE connection since receiving HTTP response. ### Error Handling The SDK uses anyhow for error handling, providing detailed error information when requests fail. All async operations return Result types that should be properly handled: ```rust match client.get("https://api.example.com/data").send().await { Ok(response) => { println!("Response received with proof"); }, Err(e) => { eprintln!("Request failed: {}", e); } } ``` ## Examples ### Basic GET Request ```rust #[tokio::main()] async fn main() -> anyhow::Result<()> { let config = VerityClientConfig { prover_url: String::from("http://127.0.0.1:8080"), }; let response = VerityClient::new(config) .get("https://jsonplaceholder.typicode.com/posts/98") .redact(String::from("res:body:dolor")) .send() .await?; println!("{:#?}", response); Ok(()) } ``` ### POST Request with Redaction ```rust #[tokio::main()] async fn main() -> anyhow::Result<()> { let config = VerityClientConfig { prover_url: String::from("http://127.0.0.1:8080"), }; let response = VerityClient::new(config) .post("https://jsonplaceholder.typicode.com/posts") .redact(String::from("req:body:firstName, res:body:firstName")) .json(&serde_json::json!({ "userId": 1000, "firstName": "John", "lastName": "Smith", "fullName": "John Smith" })) .send() .await?; println!("{:#?}", response); Ok(()) } ``` ## Technical Details The SDK is built on several key components: * `reqwest` for HTTP client functionality * `tokio` for async runtime * `serde` for JSON serialization/deserialization * Event Source implementation for proof streaming * UUID v4 for request identification For more detailed information about the implementation, [refer to the source code](https://github.com/usherlabs/verity-dp/tree/main/rs/verity-client), [review the docs.rs](https://usherlabs.github.io/verity-dp/packages/verity-client/doc/verity_client/index.html), or [contact the Usher Labs team](https://go.usher.so/discord). # Usher Labs' Managed Verity Services Source: https://docs.verity.usher.so/build/managed-services This topic covers operating the Verity Network Nodes via the CLI, and additional tools for verifying TLS proofs. ## Verity Notary Usher Labs manages Verity Notaries as a fundamental requirement for operating the Verity Network. Provers must connect to a verified Notary to generate TLS proofs. Notaries, can however, be operated third-party Node Operators in a fully decentralised manner. *This feature is not yet available.* Usher Labs has conducted thorough research and benchmarks to evaluate that ensuring Prover and Notary nodes are in close proximity is a requirement for reliable proof generation. ## Verity Prover Self-hosting the Verity Prover is advised to ensure full security over your data, and data acquired from your data sources. Self-hosting does require additional overhead in operating and scaling the Prover, especially in a production environment that demands massive concurrency. To address this, Usher Labs offers a fully managed Verity Prover infrastructure. This includes autoscaling, monitoring, and alerting to ensure uptime and performance of the Prover for your zkTLS use case. For specific circumstances, we may deploy a Prover at a different domain specific to your enterprise. Please [contact Usher Labs](https://go.usher.so/discord) for more information. ### Getting Started This guide outlines how to interact with the managed Verity Prover from a terminal. For convenience, the **Verity Client** has been developed to streamline and abstract many of these steps. #### **Verity Client Source Code** [https://github.com/usherlabs/verity-dp/tree/main/rs/verity-client](https://github.com/usherlabs/verity-dp/tree/main/rs/verity-client) #### Verity Client Integration Example 1. Instantiate the Client — [https://github.com/usherlabs/ic-adc/blob/8f28678abff9d8c098d878b83ebcc8615d442f35/orchestrator/src/helpers/verity.rs#L7](https://github.com/usherlabs/ic-adc/blob/8f28678abff9d8c098d878b83ebcc8615d442f35/orchestrator/src/helpers/verity.rs#L7) 2. Execute a Request Using the Client — \*\*\*\*[https://github.com/usherlabs/ic-adc/blob/8f28678abff9d8c098d878b83ebcc8615d442f35/orchestrator/src/handlers/price/sources/pyth.rs#L58](https://github.com/usherlabs/ic-adc/blob/8f28678abff9d8c098d878b83ebcc8615d442f35/orchestrator/src/handlers/price/sources/pyth.rs#L58) #### **Step 1: Generate a UUID** A UUID serves as a unique identifier for the verifiable request. It enables correlation between asynchronously generated proofs and the originating request. To generate a `request_id`, use the following command: ```bash uuidgen ``` **Output:** ```bash 5432b484-0e4c-4fc1-94e1-25e49a64b57 ``` #### **Step 2: Subscribe to Async Proofs** To receive proofs delivered via Server-Sent Events (SSE), use the `curl` tool. Open a terminal and listen for SSE at the `/proof/[request_id]` endpoint: ```bash curl -N https://prover.verity.usher.so/proof/5432b484-0e4c-4fc1-94e1-25e49a64b57f ``` #### **Step 3: Execute Request via Verity Prover** The Verity Prover functions as a proxy. It facilitates the desired HTTP request while generating a TLS attestation to cryptographically prove the correctness and authenticity of the data source. Under the hood, the process is assisted by the network and follows a protocol to guarantee integrity. In a second terminal window, execute the request to the Verity Prover, including the `request_id` as the value for the `T-REQUEST-ID` header. ```bash curl https://prover.verity.usher.so/proxy -X GET \ -H "T-PROXY-URL: https://jsonplaceholder.typicode.com/posts/98" \ -H "T-REQUEST-ID: 5432b484-0e4c-4fc1-94e1-25e49a64b57f" ``` Verity is designed to support high-concurrency proof generation for TLS attestations, accommodating a range of APIs, from social data to crypto asset data. **Sample HTTP Request Body to X API:** ```json { "data": [ { "edit_history_tweet_ids": [ "1848795612164305086" ], "public_metrics": { "retweet_count": 2204, "reply_count": 660, "like_count": 31415, "quote_count": 192, "bookmark_count": 2273, "impression_count": 2152378 }, "id": "1848795612164305086", "text": "Tucker Carlson says Tim Walz is \"very obviously gay. I look at him and I’m like ‘Well, you’re gay.’” \uD83D\uDC80\n\nhttps://t.co/s6CWzXZvpa" } ] } ``` #### **Step 4: Rollup** Verity operates as a [*zkRollup for TLS attestations*](/tech/introduction), consolidating numerous attestations into a single verifiable proof. The [**Verity Data Processor (VDP)**](/build/vdp) Framework simplifies this process by providing libraries and tools to process multiple TLS attestations into a verifiable output via a zkVM. This ensures scalability and efficiency. Verifiability is underpinned by decentralised compute, leveraging both public and private compute environments to partially verify proofs before consolidation. For more information, visit: [https://github.com/usherlabs/verity-dp/](https://github.com/usherlabs/verity-dp/) # Network Nodes & CLI Source: https://docs.verity.usher.so/build/network This topic covers operating the Verity Network Nodes via the CLI, and additional tools for verifying TLS proofs. Verity Network Nodes are isolated binaries, operable from the **Verity CLI**. These Network Nodes include: 1. Verity Prover 2. Verity Notary Their isolation as binaries, operated as a separate process from the host environment orchestrating the data pipeline, was a design decision that allows for various languages to be used by the developer. This decision also allows for intricate optimisations specifically for the TLS proving mechanic. All private data processed over network requests to data sources remains isolated in the **Verity Prover**. Interfacing with the Verity Prover is the primary action that the developer will perform. [Verity Clients](/build/clients/rust) exist to support the developer in this process. Usher Labs offers a fully managed Verity Prover as a service, minimising overhead in operating the Prover. To learn more, please review: [📓 Managed Services](/build/managed-services). The Verity CLI comes with tools for verifying TLS proofs from the command line. In essence, the Verity CLI encompasses technologies that establish our data pipeline through verifiable data sourcing. ## CLI Binary Download ```bash curl -fsSL https://get.verity.usher.so -o get-verity.sh sudo bash ./get-verity.sh ``` *The script automatically installs the appropriate binary based on the host environment and operating system.* ## Start a Verity Notary Node ```bash verity notary start --config ./config/notary.yaml ``` **In Production**: Usher Labs will manage a Notary on your behalf. This is advised, as Notary operators require PoS to secure their participation in the [Verity Protocol](/tech/architecture). A managed Notary URL can be shared on request. Please advise the specific region where you intend to deploy your Prover to ensure we can optimise latency in the MPC setup. ## Start a Verity Prover Node ```bash verity prover start ``` ## Use ### Generate a Request ID ```bash uuidgen # 678D765E-B6D0-4BFA-AD4C-EBBC92815B25 ``` ### **Subscribe to Async Proofs** To receive proofs delivered via Server-Sent Events (SSE), use the `curl` tool. Open a terminal and listen for SSE at the `/proof/[request_id]` endpoint: ``` curl -N http://localhost:8080/proof/678D765E-B6D0-4BFA-AD4C-EBBC92815B25 ``` ### Call the Prover ```bash curl http://localhost:8080/proxy -X POST \ -H "T-PROXY-URL: https://jsonplaceholder.typicode.com/posts" \ -H "T-REDACTED: res:body:id,req:body:userId,res:body:userId, req:header:x-api-key" \ -H "T-REQUEST-ID: 678D765E-B6D0-4BFA-AD4C-EBBC92815B25" \ -H "Content-Type: application/json" \ -H "X-API-KEY: secret" \ -d '{"title": "usher", "body": "labs", "userId": 10}' ``` **CoinGecko Example** ```bash curl http://localhost:8080/proxy -X GET \ -H "T-PROXY-URL: https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd" \ -H "T-REQUEST-ID: 678D765E-B6D0-4BFA-AD4C-EBBC92815B25" \ -H "Content-Type: application/json" ``` ### Verify the proof by the CLI ```bash verity verify --notary-pub-key ./fixture/notary/notary.pub --proof ./fixture/proof.json ``` # Oracle Integrations Source: https://docs.verity.usher.so/build/oracles Discover how Verity alleviates developer overhead when integrating with real-world data. Verity 🧪 is a data security infrastructure solution that enables developers to verify data authenticity, integrity, and transformation — **verifiable data pipelines**. This infrastructure operates within the scope of Oracle technologies, adjacent to blockchain technologies. However, its primary function extends beyond the Oracle Network, aligning more closely with traditional systems. Oracle Networks are primarily designed to streamline the process of delivering real-world data to the blockchain. Traditional Oracle Networks involve the aggregation of data that is highly available, for delivery to Smart Contracts, enabling developers to simply read the latest state all on-chain, without any additional off-chain components. Verity's default implementation requires off-chain components, as data management and processing is computationally intensive and typically cannot be done on all blockchains reasonably. While it's advised to extend the Verity Prover and orchestrate your data pipeline from an off-chain component specific to your use case, it may not be necessary for all types of data. Consider the following data types that Verity can guarantee correctness for: 1. Crypto asset data 2. Stock data 3. FX data 4. Government data 5. Real-estate data 6. Proof of CEX transactions 7. etc. Where there is a data feed that can be leveraged by more than one party, the party building with Verity to enable access to some real-world data, this data feed may be better suited to be delivered through existing Oracle technologies, also recognised as Data Delivery Networks (DDNs). ## Learn about Verity + Oracles **Rooch Network** and **Aptos Network** are now enabled with an Oracle marketplace. Proofs and data are only delivered when a request for the data is made to the Oracle facilitating that data. This integration with off-chain real-world data occurs all on-chain. The ADC is a highly efficient Oracle for real-world and cryptocurrency asset data on the Internet Computer. Developed by Usher Labs and powered by the Verity Protocol. ### Partner Platforms Offers a UI for building your own Oracle compatible with a wide array of destination blockchains. This UI allows you to configure sourcing and aggregation over zkTLS verified data from the Verity Network. Allows your data to compose as indexes alongside their existing SQL-based economic data warehouse. Indexes can then be requested via their Oracle deployed across various destination blockchains. ## Triggers Whether you decide to build with an existing Oracle Integration or not, there are still considerations about when your data pipeline initiates that should affect your decision. **Examples:** 1. If Verity zkTLS is used for fraud proofs, it may only be necessary to deliver the proof to the destination blockchain when fraud is first detected. 2. If Verity zkTLS is used for validity proofs, it may be necessary to deliver the proof to the destination blockchain on every block. 3. If Verity zkTLS is used for oracle-related data, it may be necessary to deliver the proof to the destination blockchain on a price or data deviation relevant to the specific type of data being verified and utilised on the destination blockchain. # Getting Started Source: https://docs.verity.usher.so/build/start Let's dive into development with Verity Verity 🧪 is comprised of the following components: 1. [Verity Network & CLI](/build/network) 2. [Verity Data Processor (VDP) Framework](/build/vdp) ## Building a Verifiable Data Pipeline To create a verifiable data pipeline, we need to: 1. Familiarise ourselves with generating TLS proofs using the [Verity Network CLI](/build/network). 2. Develop a **Prover Orchestrator**: a server application that programmatically orchestrates TLS proof generation and our verifiable data pipeline starting with the [Verity Client](/build/vdp/framework#verity-client). *The Verity Client is a library within the [Verity Data Processor (VDP) Framework](/build/vdp/framework).* 3. Utilise the VDP Framework, which provides libraries to assist our Orchestrator in processing data derived from our TLS proofs in a completely verifiable manner. Be sure to select the appropriate [Verifiable Data Processing Environment (VDPE)](/build/vdp/environment) for your use case. 4. Once we have our Data Flow Proof (DFP), obtained from our VDPE, we can submit our DFP to a blockchain for verification. ![Usher Labs' Verity - The Product](https://mintlify.s3.us-west-1.amazonaws.com/usherlabs/images/usherlabs-verity-product.jpg) ### Prover Orchestrator Examples Usher Labs has prepared examples demonstrating how to implement a Prover Orchestrator in various programming languages. * Rust using zkVM for data processing: * [zkTLS Example](https://github.com/usherlabs/verity-dp/tree/main/examples/zktls) * [X (Twitter) NFTs on the Near Blockchain](https://github.com/usherlabs/x-twitter-nfts) * Rust using the Internet Computer for both data processing and as a destination chain: * [IC-ADC](https://github.com/usherlabs/ic-adc/tree/main/orchestrator) * (**Work In Progress**) Typescript using Internet Computer as a precompute for data processing on the destination chain: * [Verity Move Oracles](https://github.com/usherlabs/verity-move-oracles) ## Managed Services Engaging the Verity Prover Node is typically done through self-hosting. However, Usher Labs offers [managed services](/build/managed-services) to support you. ## Oracle Integrations Verity is not primarily focused on the infrastructure for delivering your data and proofs to blockchains. Instead, it is designed to be extendable, allowing developers to customise the submission of Data Flow Proofs (DFPs) to blockchains. To facilitate this, we have partnered with and integrated various Oracle technologies, and have even developed our own solution for those who prefer to maintain minimal logic on-chain. Learn more about [Verity + Oracles](/build/oracles). # Thread Pool Management Source: https://docs.verity.usher.so/build/thread-pools Verity's Prover includes a mechanism to optimise proving times. The Verity Prover includes a mechanism to initialise warm MPC connection threads by server domain. This feature significantly improves time to response (**TTR**) and time to proof (**TTP**). **By default**, each request to the `/proxy` endpoint triggers the setup of a new MPC connection thread in a **cold start** manner. This process takes 2–3 seconds per request, depending on the geographic distance between the Prover and the source server. With **thread management**, the Prover can pre-prepare these connections for expected requests to the source server domain. This enables a **warm start**, cutting the response time for verifiable requests by 2–3 seconds. **Note:** TTR increases proportionally with the size of the request/response: 1. For data transfers \< 3 KB, TTR is 1–5 seconds. 2. For data transfers \~25 KB, TTR increases to around 20 seconds. ### Managing Thread Pools ``` GET http://localhost:8080/pools ### GET http://localhost:8080/pools/example.com ### POST http://localhost:8080/pools Content-Type: application/json { "domain": "example.com", "capacity": 2 } ### DELETE http://localhost:8080/pools/example.com ### ``` ### **Pool management via `/pools` API endpoint** To get statistics of all the pools ```bash theme={null} curl http://localhost:8080/pools ``` To get statistics of pool for a specific domain ```bash theme={null} curl http://localhost:8080/pools/api.coingecko.com ``` To create a pool for a domain ```bash theme={null} curl \ -X POST http://localhost:8080/pools \ -H 'content-type: application/json' \ -d '{ "domain": "api.coingecko.com", "capacity": 2 }' ``` To drop an existing pool ```bash theme={null} curl \ -X DELETE http://localhost:8080/pools/api.coingecko.com ``` ### Creating a pool via `/proxy` API endpoint and `T-PREPARE` header This works only for the very first proxy request, when there is no pool for the domain. If the pool already exists, the `T-PREPARE` header is ignored. ```bash theme={null} curl http://localhost:8080/proxy \ -H 'T-PROXY-URL: https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd' \ -H 'T-PREPARE: 2' ``` ### Creating a pool by defining it in the Prover configuration file To create a pool at prover startup, define it in the Prover configuration file: ```yaml theme={null} port: 8080 notary: host: prover.verity.usher.so port: 7047 enable-tls: true max-sent-data: 512 # default value for a pool max-recv-data: 1024 # default value for a pool timeout: 30 # default value for a pool num-threads: 4 domains: # defines a list of pools with parameter to override default values set above - domain: example.com capacity: 2 # optional, if not defined, the pool will spawn a connection on demand max-sent-data: 1024 # optional, overrides default value if set max-recv-data: 2048 # optional, overrides default value if set timeout: 60 # optional, overrides default value if set ``` ### Proxying requests concurrently ```bash theme={null} set +m jobs=() for currency in "bitcoin" "ethereum" "solana" do { curl http://localhost:8080/proxy \ -w "\ntime: %{time_total}\n" \ -H "T-PROXY-URL: https://api.coingecko.com/api/v3/simple/price?ids=$currency&vs_currencies=usd" } & jobs+=($!) done wait "${jobs[@]}" ``` # Environment Source: https://docs.verity.usher.so/build/vdp/environment Understanding which Verifiable Data Processing Environment (VDPE) is right for you depends on your use case. * The **IC VDPE** is designed for rapid data processing on a public replicated compute network. This means that data cannot be sensitive, or private in nature as it's shared to a network of node operators (ie. The Internet Computer). * The **ZK VDPE** is designed for private data processing. This means that data can be sensitive, or private in nature as it's processed within a zkVM. The tradeoff is that ZK Proving times are typically 40 seconds or more on GPU-accelerated hardware, and can be north of an hour on CPU-only hardware. If you have an enterprise use case, and require additional hands on support to determine how best to utilise Verity, please [contact Usher Labs](https://www.usher.so/contact) for support. ## IC VDPE If you have chosen the IC as the VDPE, then the `ic` module is the most important for you. Verifying and processing TLS proofs all within the IC does **NOT** require `verify-remote` or `verify-local` modules. The IC-ADC repository offers the best reference implementation for Developers choosing public replicated compute as their VDPE. Within the IC-ADC, we can observe sections of code that illustrate the verification process entirely within the IC. To review a walkthrough of the IC-ADC implementation, please refer to the [IC-ADC Implementation](/build/vdp/implementations/ic-adc) page. ## ZK VDPE If you have private or sensitive data that you must retain full data privacy over, even during data processing, and TLS proof [redactions](/build/vdp/framework#tls-proof-redactions) are not enough, then the ZK VDPE is the most appropriate choice for you. Here, we will be using the `verify-remote` and `verify-local` modules. 1. The `verify-remote` allows the host environment to prepare and optimise TLS proofs on remote replicated compute for compatibility with our zkVM. We extract and verify only public facets of the TLS proofs to do this. 2. The `verify-local` operates within the zkVM. With our prepared remote proof, we can present the TLS proof, and the remote prepared proof to the zkVM, and verify using the `verify-local` module. The Verity DP Framework repo includes a [full zkTLS demo](https://github.com/usherlabs/verity-dp/blob/main/examples/zktls/host/src/main.rs), where ZK VDPE is used. Furthermore, the [X (Twitter) NFTs](https://github.com/usherlabs/x-twitter-nfts) prediction market mini-game is an active working example of this same approach to implementing Verity. To review a walkthrough of the zkTLS implementation, please refer to the [zkTLS Implementation](/build/vdp/implementations/zktls) page. # Framework Source: https://docs.verity.usher.so/build/vdp/framework Now that we've generated TLS proofs, we can process the data with the Verity Data Processor (VDP) Framework. ## Modules Overview The VDP Framework is organised into the following modules: * `evm`: Smart Contract templates for integrating various chains in an app-specific multi-chain protocol powered by the IC and Verity. It works in tandem with `ic/canisters/asset_manager`. * `examples`: Demonstrations of how to use Verity, including: * `zktls`: An example of zkTLS proof generation using the ZK VDPE. * `ic`: Contains libraries for the Internet Computer (IC). * `canisters`: Pre-built canisters for the Internet Computer that facilitate primitives such as cross-chain asset management. * `asset_manager` *(WIP)*: A set of canisters that can be deployed to facilitate data-driven cross-chain asset management across integrated blockchains. * `libraries`: A collection of general-purpose and Verity-specific libraries that abstract logic and primitives for the IC. * `managed`: A directory containing canisters and primitives managed by Usher Labs. * `verifier`: **The Verity Verifier:** A canister that: 1. Verifies TLS proofs either via inter-canister calls (XNET) or via updates from external system calls. 2. Performs pre-computations specifically for the ZK VDPE. 3. Produces proofs of computation for verification in external systems, such as a zkVM. 4. Orchestrates a participation protocol to enforce the security and integrity of Verity Notary network nodes. * `rs`: Contains Rust libraries that abstract logic for engaging with Verity and ensuring verifiability in ZK data processing. * `verity-client`: A Rust SDK for interfacing with a Verity Prover. * `verify-remote`: Used for sending TLS proofs/attestations to the IC for partial or full verification. *Only required if using ZK VDPE, or preparing TLS proofs for verification and data processing directly on the destination chain.* * **Partial verification** is necessary when leveraging the zkVM, maintaining high performance by partially verifying proofs in a replicated compute platform to minimise ZK proving times. * **Full verification** is only necessary when the data processed is public, which is rare as the zkVM is designed to maintain data privacy and roll up various TLS attestations into a single succinct proof. * `verify-local`: Performs TLS proof verification by combining remote proof of computation verification of public facets with private facets of the TLS proof. Designed primarily for the zkVM guest environment. * `verity-tls`: A library to abstract the verification of TLS proofs produced by the Verity Network. * `zk`: Utilities and tests supporting zkVM usage. ## SDK Reference For detailed documentation on the Verity Data Processor Framework SDK, please refer to the [SDK Reference](https://usherlabs.github.io/verity-dp/). To refer to the Verity DP Github Repo and review examples, please visit: [https://github.com/usherlabs/verity-dp](https://github.com/usherlabs/verity-dp) ## Verity Client The Verity Client abstracts logic associated with interfacing with a Verity Prover. The Verity Prover operates as a proxy, receiving HTTP request parameters and executing these requests with assistance from the rest of the Verity protocol to generate a TLS attestation. The proof generation mechanism within the Prover is asynchronous, and the client is responsible for subscribing to proofs generated by the Prover until the proof is generated. The Verity Client is used in both [Verifiable Data Processing Environments (VDPEs)](/build/vdp/environment). Currently, the Verity Client language support is as follows: * [x] [**Rust**](/build/clients/rust) * [ ] *Typescript (Coming Soon...)* We are actively working on expanding language support. Stay tuned for updates via X (Twitter) or Discord. ### TLS Proof Redactions A ZK function embedded in MPC-TLS primitive is the ability for the Prover to redact data from the TLS transcript (i.e., request/response) when presenting the TLS proof.\ The Verity Prover simplifies this operation by exposing the `T-REDACT` header.\ The Verity Client simplifies this further by exposing a `.redact()` helper function, as demonstrated in the following code example: ```rust let response = VerityClient::new(config) .get("https://jsonplaceholder.typicode.com/posts/98") .redact(String::from("res:body:dolor")) .send() .await?; ``` The TLS proof will be generated, and if a property exists within the JSON response named `dolor`, then its value will be redacted and shown as `XXXXXXXX...`. To see this in action, please review the [demos of Verity](/welcome#demonstrations). # IC-ADC Implementation Source: https://docs.verity.usher.so/build/vdp/implementations/ic-adc This documentation provides an overview of how the Verity DP framework is integrated within the `processor` and `orchestrator` folders of the project. It highlights the usage of Verity modules and the inter-canister communication with the Verity Verifier. ## `processor` The processor is the on-chain aspect of the IC-ADC. It is responsible for receiving data from an off-chain `orchestrator` node, verifying provided TLS proofs, and processing this data for destination Canisters within the Internet Computer. ### Inter-Canister Call to Verity Verifier In the `processor/ic/src/sources/mod.rs` file, the function `request_proof_verification` makes an inter-canister call to the `ic/managed/verifier`. This call is crucial for obtaining verified or decrypted proofs from the managed verifier canister. ```rust /// Request verification from the managed verifier response pub async fn request_proof_verification( stringified_proofs: &Vec, notary_pubkey: &String, ) -> Vec { let verifier_canister = state::get_verifier_canister().unwrap(); // make a request to the managed verifier canister // to get a response which would contain the verified/decrypted proofs sent let (response,): (Vec,) = ic_cdk::call( verifier_canister, "verify_proof_async", (stringified_proofs, notary_pubkey), ) .await .unwrap(); response } ``` The function uses the `ic_cdk::call` method to communicate with the verifier canister, passing the stringified proofs and the notary public key as arguments. This interaction is a key part of the Verity DP framework, enabling the Internet Computer to verify proofs asynchronously. In a parent function call [`get_token_price`](https://github.com/usherlabs/ic-adc/blob/3075e393e416029c13ff350f97f75934101d3e72/processor/ic/src/utils.rs#L18), we simply parses the response proofs to obtain the values. There is no subsequent proof after the `request_proof_verification` call. This is because all of this computation is occurring on-chain, within the IC. ```rust // Provided a token and a notary public key for the notary used to generate the proofs attached to the tokens // verify/decrypt the proofs and come to a concensus on the token price pub async fn get_token_price(token: &Token, notary_pubkey: &String) -> anyhow::Result { // get the proofs in a stringified form let proof_types = token.proofs.as_ref().unwrap(); let stringified_proofs: Vec = proof_types .iter() .map(|pt: &ProofTypes| pt.to_string()) .collect(); // request proof response from verification canister let verification_response_proofs = request_proof_verification(&stringified_proofs, notary_pubkey).await; // parse the proof response based on the corresponding proof type // to get the price in the response of the http response body of the verified request // use the proof type to parse the json as either a pyth or redstone proof let asset_price = get_asset_price_from_proofs(proof_types, &verification_response_proofs); asset_price } ``` ## `orchestrator` ### Verity Client Usage The `verity-client` module is used in the [`orchestrator/src/helpers/verity.rs`](https://github.com/usherlabs/ic-adc/blob/eda06461349e85f8c16456af165654e7d167cfa2/orchestrator/src/helpers/verity.rs#L7) file to create a `VerityClient` for interfacing with a Verity Prover. ```rust use verity_client::client::{VerityClient, VerityClientConfig}; use crate::config::Config; pub const DEFAULT_PROVER_URL: &str = "http://127.0.0.1:8080"; pub fn get_verity_client() -> VerityClient { let config = Config::env(); let verity_config = VerityClientConfig { prover_url: config.prover_url, }; VerityClient::new(verity_config) } ``` In a [parent function](https://github.com/usherlabs/ic-adc/blob/7dd247aacaf358708ebb1ec7cb463ece48f410af/orchestrator/src/handlers/price/sources/pyth.rs#L42-L68), the `verity_client` is used similarly to Rust's [`reqwest`](https://docs.rs/reqwest/latest/reqwest/) library: ```rust impl PricingDataSource for Pyth { fn new() -> Self { Self {} } async fn get_url(ticker: String) -> Result { let ticker_id = Self::get_ticker_id(ticker).await?; Ok(format!( "https://hermes.pyth.network/api/latest_price_feeds?ids[]={}", ticker_id )) } async fn get_proof(ticker: String) -> Result { // construct the request URL let request_url = Self::get_url(ticker).await?; let verity_client = get_verity_client(); // get the proof using the verity client let response = verity_client.get(&request_url).send().await?; // check for a succesfull and valid response let http_response_string = response.subject.text().await?; Self::validate_response(http_response_string).await?; return Ok(ProofTypes::Pyth(response.proof)); } ``` ## Conclusion These references show where the Verity DP modules are integrated within the `processor` and `orchestrator` folders. The inter-canister call to the Verity Verifier and the use of the Verity Client are essential components of the Verity DP integration, ensuring secure and efficient data processing and verification. # zkTLS Implementation Source: https://docs.verity.usher.so/build/vdp/implementations/zktls This document provides an overview of the Verity DP modules utilised in the zkTLS implementation, explaining where and why they are used. ## Modules Overview ### `ic/managed/verifier` * **Purpose**: The Verity Verifier canister is responsible for verifying TLS proofs, performing pre-computations for the ZK VDPE, and producing proofs of computation for external verification. * **Usage**: * **Verification**: Verifies TLS proofs via inter-canister calls or external system updates. * **Pre-computation**: Prepares computations for the ZK VDPE. * **Proof Production**: Generates proofs for verification in systems like a zkVM. * **Security Protocol**: Orchestrates a protocol to ensure the security and integrity of Verity Notary network nodes. ### `rs/verity-client` * **Purpose**: A Rust SDK for interfacing with a Verity Prover. * **Usage**: Used in the host application to generate TLS attestations and interact with the Verity Prover. * [**Code Reference**](https://github.com/usherlabs/verity-dp/blob/347eb2e58a9abc1b712402c1a068ae22faec1d1a/examples/zktls/host/src/main.rs#L8-L64): ```rust use verity_client::client::{VerityClient, VerityClientConfig}; use verity_verify_remote::{ config::Config, ic::{Verifier, DEFAULT_IC_GATEWAY_LOCAL}, }; use verity_verify_tls::verify_proof; // use verity_dp_zk_host::generate_groth16_proof; pub const DEFAULT_PROVER_URL: &str = "http://127.0.0.1:8080"; pub const DEFAULT_VERITY_VERIFIER_ID: &str = "bkyz2-fmaaa-aaaaa-qaaaq-cai"; /// The input parameters for the zk_circuit /// /// Contains the details needed for proof verification #[derive(Serialize, Deserialize, Debug, Clone)] pub struct ZkInputParam { /// Session header information pub tls_proof: String, /// Proof of substrings pub remote_verifier_proof: String, /// Remote verifier's ECDSA public key pub remote_verifier_public_key: String, } #[derive(Deserialize, Serialize, Debug, Clone)] pub struct RemoteVerificationProof { pub results: Vec, pub root: String, pub signature: String, } #[tokio::main()] async fn main() -> anyhow::Result<()> { env::set_var("RISC0_DEV_MODE", "1"); // Included to ensure the zkVM prover is fast for demo purposes. // Initialize tracing. In order to view logs, run `RUST_LOG=info cargo run` tracing_subscriber::fmt() .with_env_filter(tracing_subscriber::filter::EnvFilter::from_default_env()) .init(); // Entry point of the program println!("Hello Verity zkTLS Demo!"); // -------------------- // THE PLAN // ------------------------ // Generate a TLS attestation using Verity Client // Pepare the TLS proof for the guest // Call the zkVM guest for zkSNARK // Verify the SNARK // -------------------- // THE PLAN // ------------------------ println!("Proving a GET request using VerityClient..."); let config = VerityClientConfig { prover_url: String::from(DEFAULT_PROVER_URL), }; let client = VerityClient::new(config); ``` ### `rs/verify-remote` * **Purpose**: Sends TLS proofs/attestations to the IC for partial or full verification. * **Usage**: * **Partial Verification**: Used when leveraging the zkVM to maintain high performance by partially verifying proofs. * **Full Verification**: Used when the data processed is public. * [**Code Reference**](https://github.com/usherlabs/verity-dp/blob/347eb2e58a9abc1b712402c1a068ae22faec1d1a/examples/zktls/host/src/main.rs#L119-L150): ```rust let rv_identity_path = "fixtures/identity.pem"; let rv_id = DEFAULT_VERITY_VERIFIER_ID.to_string(); let rv_config = Config::new( DEFAULT_IC_GATEWAY_LOCAL.to_string(), rv_identity_path.to_string(), rv_id, ); // 2. Create verifier from a config file let remote_verifier = Verifier::from_config(&rv_config).await.unwrap(); // 3. Extract our the public/private sub-proofs let proof_value: serde_json::Value = serde_json::from_str(&response.proof).unwrap(); let session = proof_value["session"].to_string(); // 4. Verify a proof and get the response let verified_by_remote = remote_verifier .verify_proof( // You can verify multiple proofs at once vec![session], notary_pub_key, ) .await .unwrap(); // Assuming `verified_by_remote` is of type `VerifierResponse` and has a field `results` // which is a vector of some type that has a method `get_content()`. let leaves: Vec = verified_by_remote .results .iter() .map(|proof_response| proof_response.get_content()) .collect(); ``` ### `rs/verify-local` * **Purpose**: Performs TLS proof verification by combining remote proof of computation verification with private facets of the TLS proof. * **Usage**: Primarily used in the zkVM guest environment to verify TLS proofs. * [**Code Reference**](https://github.com/usherlabs/verity-dp/blob/347eb2e58a9abc1b712402c1a068ae22faec1d1a/examples/zktls/methods/guest/src/main.rs#L4-L57): ```rust use verity_verify_local::{self, ecdsa::validate_ecdsa_signature, merkle::validate_merkle_tree}; use verity_verify_tls::verify_proof; /// The input parameters for the zk_circuit /// /// Contains the details needed for proof verification #[derive(Serialize, Deserialize, Debug, Clone)] pub struct ZkInputParam { /// Session header information pub tls_proof: String, /// Proof of substrings pub remote_verifier_proof: String, /// Remote verifier's ECDSA public key pub remote_verifier_public_key: String, } #[derive(Deserialize, Debug, Clone)] pub struct RemoteVerificationProof { pub results: Vec, pub root: String, pub signature: String, } fn main() { // Read the input data for this application. let input_bytes: Vec = env::read(); let params: String = String::from_utf8(input_bytes).unwrap(); let params: ZkInputParam = serde_json::from_str(params.as_str()).unwrap(); // Verify the Tls proof -- partially. let (recv, sent) = verify_proof(¶ms.tls_proof).unwrap(); // Verify the remote verifier's verification of the other part. let remote_verification_proof: RemoteVerificationProof = serde_json::from_str(params.remote_verifier_proof.as_str()).unwrap(); // Verify the signature and the Merkle tree root let root_hash = &remote_verification_proof.root; let is_signature_valid = validate_ecdsa_signature( &remote_verification_proof.signature, root_hash, ¶ms.remote_verifier_public_key, ) .unwrap(); let is_merkle_valid = validate_merkle_tree(&remote_verification_proof.results, root_hash); // Return the verification result assert!(is_signature_valid && is_merkle_valid); // write public output to the journal env::commit(&recv); env::commit(&sent); } ``` ### `rs/verity-tls` * **Purpose**: Abstracts the verification of TLS proofs produced by the Verity Network. * **Usage**: Utilised in both the host and guest environments to verify TLS proofs. * [**Code Reference**](https://github.com/usherlabs/verity-dp/blob/347eb2e58a9abc1b712402c1a068ae22faec1d1a/examples/zktls/host/src/main.rs#L108-L111): ```rust // Totally optional to verify proof on host too. // For the sake of this demo, we'll verify the proof on the host to ensure both the zkVM and host agree to the verification. let verified_by_host: (String, String) = verify_proof(&response.proof, ¬ary_pub_key).unwrap(); ``` ### `zk` * **Purpose**: Provides utilities and tests supporting zkVM usage. * **Usage**: Supports the zkVM environment by providing necessary utilities for proof generation and verification. ## Conclusion The Verity DP framework provides a comprehensive set of modules that facilitate the generation and verification of zkTLS proofs. Each module plays a crucial role in ensuring the integrity and privacy of data processed within the Verity platform. # Verifier Source: https://docs.verity.usher.so/build/verifier The Verifier is a specialised Internet Computer (IC) Smart Contract (Canister) designed to verify TLS session proofs and full TLS proofs. It provides both asynchronous and direct verification methods, with the latter including tECDSA signatures for cross-chain or off-chain verification. **Mainnet Canister ID:** [`yf57k-fyaaa-aaaaj-azw2a-cai`](https://dashboard.internetcomputer.org/canister/yf57k-fyaaa-aaaaj-azw2a-cai) ## Interface The canister exposes the following methods as defined in the [Candid interface](https://github.com/usherlabs/verity-dp/blob/main/ic/managed/verifier/verity_verifier.did): ```plaintext theme={null} service : { "ping" : () -> (text) query; "verify_proof_direct" : (proof_requests : vec text, notary_pub_key : text) -> (DirectVerificationResult); "verify_proof_async" : (proof_requests : vec text, notary_pub_key : text) -> (ProofVerificationResponse); "verify_proof_direct_batch": (batches: vec ProofBatch) -> (DirectVerificationResult); "verify_proof_async_batch" : (batches: vec ProofBatch) -> (ProofVerificationResponse); "public_key" : () -> (record { sec1_pk : text; etherum_pk : text }); }; ``` ## Methods ### `ping` * **Signature**: `() -> (text) query` * **Purpose**: A simple query method that returns a greeting message. This is typically used for testing connectivity and basic functionality. ### `verify_proof_direct` * **Signature**: `(proof_requests: vec text, notary_pub_key: text) -> (DirectVerificationResult)` * **Purpose**: This method is used for direct verification of proof requests. It returns a detailed verification response, including a tECDSA signature over the Merkle Root, which is essential for verification in foreign chains or off-chain environments like zkVMs. ### `verify_proof_async` * **Signature**: `(proof_requests: vec text, notary_pub_key: text) -> (ProofVerificationResponse)` * **Purpose**: This method is used for asynchronous verification of proof requests. It is intended for verifications that exist within the confines of the Internet Computer (IC). ### `public_key` * **Signature**: `() -> (record { sec1_pk: text; etherum_pk: text })` * **Purpose**: Retrieves the public key of the Canister, which includes both the SEC1 and Ethereum public keys. ## Async vs Direct Verification ### Async Verification Async verification is optimised for IC internal usage. It: * Performs proof verification * Returns results directly * No additional signatures or Merkle trees * Efficient for Canister-to-Canister communication ### Direct Verification Direct verification adds extra security layers for external verification: * Performs proof verification * Generates Merkle tree of results * Signs the Merkle root using tECDSA * Enables verification in foreign chains or zkVMs * Provides cryptographic proof of verification that can be validated outside the IC ## TLS Proof Verification Process The Smart Contract (Canister) verifies TLS proofs either partially or fully, depending on the type of proof submitted. The verification process involves: ### Session Proofs Session proofs verify the TLS session establishment: * Validates handshake parameters * Verifies server identity * Confirms session key establishment * Validates the session proof against notary's signature * Returns a hash of the verified proof ### Full Proofs Full proofs verify complete TLS sessions: * Validates the full TLS proof including: * Session establishment * HTTP request data * HTTP response data * Verifies data integrity * Confirms server responses * Enables verification of specific HTTP interactions ## Merkle Tree Generation **For direct verification**, results are organised in a Merkle tree: * Each proof response is hashed using SHA-256 * Hashes become leaves in the Merkle tree * Tree root is computed * Root is signed using the canister's tECDSA key * Both root and signature are returned for external verification ## Security Considerations 1. Always validate the notary's public key before verification 2. For cross-chain verification, ensure the IC Verifier Canister's public key is properly registered 3. When using direct verification, validate both the Merkle proof via `verify-local` module, and the tECDSA signature 4. Ensure proof requests are properly formatted JSON strings 5. Handle potential errors in proof verification gracefully ## Technical Implementation Details The verification process utilises several key components: 1. **Proof Parsing**: * JSON proofs are validated for required fields * Proofs are categorised as Session or Full proofs * Invalid proofs are rejected early in the process 2. **Cryptographic Operations**: * SHA-256 for hashing proof responses * tECDSA for signing Merkle roots * Merkle tree construction for batch verification 3. **State Management**: * Canister maintains its configuration state * ECDSA key management through IC system APIs * Thread-local storage for configuration ## Error Handling The canister provides detailed error messages for common failure scenarios: * Invalid proof format * Invalid notary signature * Failed TLS verification * Invalid handshake parameters * ECDSA signing failures ## Performance Considerations 1. **Batch Processing**: * Multiple proofs can be verified in a single call * Merkle tree construction optimises for batch verification 2. **Resource Usage**: * Proof verification is computationally intensive * Consider batch sizes carefully * Async verification has lower overhead 3. **Network Interaction**: * Direct verification requires additional cycles for ECDSA operations * Plan for slightly longer execution times with direct verification ## Example `verify_proof_async` Integration The following integration is adopted from the [IC-ADC repository](https://github.com/usherlabs/ic-adc). It demonstrates how to use the `verify_proof_async` method for proof verification within the Internet Computer (IC) environment. The example includes defining the Candid interface, implementing the async verification call, and handling the verification response. In your Rust code, you can use the `ic_cdk::call` function to make an async call to the Verifier Canister. Here's how you can do it: ```rust theme={null} pub async fn request_proof_verification( stringified_proofs: &Vec, notary_pubkey: &String, ) -> Vec { let verifier_canister = state::get_verifier_canister().unwrap(); // make a request to the managed verifier canister // to get a response which would contain the verified/decrypted proofs sent let (response,): (Vec,) = ic_cdk::call( verifier_canister, "verify_proof_async", (stringified_proofs, notary_pubkey), ) .await .unwrap(); response ``` In this snippet, the `request_proof_verification` function makes an async call to the Verifier Canister using the `verify_proof_async` method. It sends the proofs and the notary public key, and awaits the response. The response is a vector of `ProofResponse` objects, which contain the verified proofs. The async verification process does not utilize a Merkle tree, as it is intended to operate independently within the IC environment. ## Example `verify_proof_direct` Integration The following integration is adopted from the example zkTLS flow in the Verity DP repository. It demonstrates how the `verify_proof_direct` interface is used under the hood by the [`verify-remote`](https://github.com/usherlabs/verity-dp/tree/main/rs/verify-remote) module to precompute over public facets of the TLS proof before sending the remote proof and the private facets of the TLS proof to a zkVM for verification via the [`verify-local`](https://github.com/usherlabs/verity-dp/tree/main/rs/verify-remote). In this dynamic, the Verifier will respond with a tECDSA signed Merkle Root hash representing each of the verifications and precomputes performed so that the zkVM can verify that the TLS proofs were prepared in part by a set of honest actors facilitated by the Internet Computer. In your Rust code, you can use the `ic_cdk::call` function to make a direct call to the Verifier Canister. Here's how you can do it: ```rust theme={null} let rv_identity_path = "fixtures/identity.pem"; let rv_id = DEFAULT_VERITY_VERIFIER_ID.to_string(); let rv_config = Config::new( DEFAULT_IC_GATEWAY_LOCAL.to_string(), rv_identity_path.to_string(), rv_id, ); // 2. Create verifier from a config file let remote_verifier = Verifier::from_config(&rv_config).await.unwrap(); // 3. Extract our the public/private sub-proofs let proof_value: serde_json::Value = serde_json::from_str(&response.proof).unwrap(); let session = proof_value["session"].to_string(); // 4. Verify a proof and get the response let verified_by_remote = remote_verifier .verify_proof( // You can verify multiple proofs at once vec![session], notary_pub_key, ) .await .unwrap(); // Assuming `verified_by_remote` is of type `VerifierResponse` and has a field `results` // which is a vector of some type that has a method `get_content()`. let leaves: Vec = verified_by_remote .results .iter() .map(|proof_response| proof_response.get_content()) .collect(); // Create a `RemoteVerificationProof` instance let remote_verifier_proof = RemoteVerificationProof { results: leaves, root: verified_by_remote.root.clone(), signature: verified_by_remote.signature.clone(), }; println!("\nverified_by_remote: {:#?}", remote_verifier_proof); // Now we have a proof of remote verification... We can use this to verify the private transcript data within the zkVM // ? The reason to split the proofs is becuase the crypto primitives used for session verification are not compatible zkVM and/or dramatically increase ZK proving times. // Start with the remote verifier's ECDSA public key let remote_verifier_public_key = remote_verifier.get_public_key().await.unwrap(); // To do this, we need to seralize the data we pass to the zkVM let input = serde_json::to_string( &(ZkInputParam { tls_proof: response.proof.clone(), remote_verifier_proof: serde_json::to_string(&remote_verifier_proof).unwrap(), remote_verifier_public_key, }), ) .unwrap(); let input: &[u8] = input.as_bytes(); let env = ExecutorEnv::builder() .write(&input) .unwrap() .build() .unwrap(); ``` # Glossary Source: https://docs.verity.usher.so/glossary A full glossary of terms used in Verity documentation | **Term** | **Definition** | | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Verity** | A data security infrastructure solution that enables developers to verify data authenticity, integrity, and transformation, creating verifiable data pipelines between traditional systems and blockchains. | | **Verity Prover Orchestrator** | The process created by the Developer to orchestrate the data pipeline, using the Verity Client to interface with the Verity Prover. | | **Verity Prover Proxy** | A proxy node for generating MPC-TLS proofs. | | **Verity Client** | A client interface used to interact with the Verity Prover and manage data pipeline orchestration. | | **Verity Notary** | A node that verifies TLS proofs generated by the Prover, ensuring the integrity and authenticity of the data. | | **Verity Network** | A network of nodes, including Provers and Notaries, that collectively collaborate over a protocol to verify data authenticity, integrity, and transformation. | | **Verity CLI** | A command-line interface for operating Verity Network Nodes and verifying TLS proofs. | | **Verity Data Processor (VDP)** | A framework that provides libraries and tools to process multiple TLS attestations into a verifiable output via a zkVM, ensuring scalability and efficiency. | | **zkTLS** | A protocol that combines Zero-Knowledge (ZK) and Multi-Party Computation (MPC) cryptographic primitives to cryptographically prove data authenticity for TLS-enabled sources. | | **Data Flow Proofs (DFPs)** | Cryptographically verifiable proofs of data flow, ensuring that data is sourced and processed according to predefined logic. Used interchangeably with zkTLS proofs. | | **Verifiable Data Processing Environment (VDPE)** | An environment, such as a zkVM or a decentralised replicated compute platform, where data processing logic is executed and verified. | | **Oracle Integrations** | Collaborations with Decentralised Oracle Networks (DONs) and Data Delivery Networks (DDNs) to integrate zkTLS proofs into blockchain systems, simplifying the delivery of private data on-chain. | | **zkRollup** | A method of consolidating numerous TLS attestations into a single verifiable proof via ZK VDPE. | | **TLS Proof** | A cryptographic proof generated by the Verity Prover to verify the authenticity and integrity of data sourced from TLS-enabled endpoints. Used interchangeably with MPC-TLS proofs. | | **MPC-TLS** | An implementation of TLS that uses Multi-Party Computation to ensure data authenticity and integrity. | | **Verifier** | The coordination and verification layer of the Verity network, ensuring non-collusion and authorised notary selection. | | **Proof Precomputation** | The process of extracting and processing public elements from TLS proofs to optimise ZK computations and minimise proving times. | | **Proof Verification & Conversion** | The process of verifying TLS proofs and facilitating conversions to cryptographic formats like tECDSA for reduced ZK computational load and wider compatibility with destination systems. | | **Source** | A TLS-enabled HTTP endpoint, either third-party or first-party data owned by the Prover, from which data is sourced. May also be first-party data provided directly. | | **Destination** | Typically a blockchain for trustless final verification, but may also include centralised systems for data analysis, trust management, and cybersecurity applications. | | **zkVM** | A virtual machine that uses Zero-Knowledge proofs to verify computations, ensuring data privacy and integrity. | | **Decentralised Oracle Networks (DONs)** | Networks that decentralise trust in data sourcing, enabling the delivery of real-world data to blockchains. | | **Data Delivery Networks (DDNs)** | Networks that facilitate the delivery of data feeds to multiple parties, often used in conjunction with Oracle technologies. | | **IC (Internet Computer)** | A decentralised and replicated compute platform that enables the processing of data in a verifiable manner. It uses Chain-key cryptography to facilitate secure and efficient computation, allowing for the integration of real-world data into blockchain systems. | | **Chain-key Cryptography** | A cryptographic primitive specific to the Internet Computer (IC) that combines several advanced cryptographic techniques, including MPC, TSS, and DKG, to produce portable cryptographic outputs. | # Why Verity? Source: https://docs.verity.usher.so/purpose Bringing sensitive or gated data on-chain demands robust security guarantees. Traditional data pipelines ingest raw data from various sources, transform it for compatibility, and store it for integration or analysis. Verity extends this concept to blockchains, creating **verifiable data pipelines** that empower Smart Contracts to cryptographically confirm that critical data is sourced and processed according to predefined logic. **Example:** A prediction market uses Verity to enable a **parlay bet** across all eSports games for a specific week. Outcomes are verified using API-based session authorisations for each player. ## Why It Matters Blockchains are unforgiving environments: * Transactions are irreversible and challenging to trace. * Assets are uninsured, with high-velocity operations. * Errors or tampered data can result in severe capital losses. Verity ensures Smart Contracts can embed guarantees about sensitive or gated data — securely, at scale. ## Data & Trust In Web3, trust is decentralised: * **Blockchains** decentralise trust in program execution (Smart Contracts). * **Oracle Networks** decentralise trust in data sourcing. However, for private or niche data that remains centralised, Oracles cannot fully guarantee the origin or accuracy of the data. In this scenario, Oracles are centralised because at some point in the data lineage, the data source itself is centralised. Therefore, to minimise the trust required to understand the outcome of the data, we must trace the trust back to its original source. ![Usher Labs' Verity - The Problem](https://mintlify.s3.us-west-1.amazonaws.com/usherlabs/images/usherlabs-verity-problem.jpg) Verity serves as a data security layer, shifting trust to your verified data sources. It allows Smart Contracts to authenticate actions based on verifiable off-chain data, reducing risks from tampering, phishing, and insider threats. Verity enables: * **Accurate, secure data integration** for Smart Contracts. * **Innovative applications** where multiple participants can securely contribute and verify their private off-chain data, ensuring trust is rooted in the data sources. ![Usher Labs' Verity - The Solution](https://mintlify.s3.us-west-1.amazonaws.com/usherlabs/images/usherlabs-verity-solution.jpg) Explore why digital assets must be [secured with trusted data](https://mirror.xyz/ryanwould.eth/OcM1YRfsDuLXfOQOvJ5kNmtjYb8mTbVmXPYdL4xZ4qo). # Architecture Source: https://docs.verity.usher.so/tech/architecture Verity is a network of nodes, that collectively collobrate over a protocol to verify data authenticity, integrity, and transformation. In [Proof of Data Flow](/tech/proof-of-data-flow), we outline the stages of Verity's verifiable data pipelines. These pipelines are orchestrated by a developer-operated Prover, which generates Data Flow Proofs (DFPs) through a structured sequence of interactions with the Verity Network, referred to as the Verity Protocol. Understanding the Verity Protocol and its architecture requires familiarity with the roles played by various nodes within the Verity Network. ## Roles Verity's protocol is facilitated by a network of nodes, each fulfilling specific roles within the system. ### Prover The Prover orchestrates the verifiable data pipeline, managing data sourcing and processing for delivery to the destination platform. * **Data Sourcing**: Generates TLS proofs for data. * **Data Processing**: Executes logic in a **Verifiable Data Processing Environment (VDPE)**,such as a zkVM or a decentralised replicated compute platform like the Internet Computer (IC). ### Notary The Notary supports the Prover by enabling privacy-preserving MPC-TLS proof generation for API requests. * **3-Party MPC (3PC)**: The Prover and Notary establish an MPC session with the source HTTP server to emulate a TLS client-server interaction. * **Privacy-preserving Integrity Assurance**: Signs off on the TLS handshake and request/response data without accessing the raw data, ensuring authenticity to the source. #### Collusion Prevention * **Non-collusion Enforcement**: Provers and Notaries operate independently to preserve security properties and prevent proof fabrication. * **TEE Environments**: Notaries run in Intel TDX-enabled environments, ensuring operations are secure and isolated. * **Bitcoin Staking**: Notaries bond BTC as fraud insurance, enforced by protocol-level rules. * **On-chain TEE Verification**: Verifiers validate that Notaries operate with authorised OS images, on approved cloud providers, and generate TLS certificates confidentially within TEE parameters. Even if the same entity operates both the Prover and the Notary, cryptographic enforcement ensures that the Notary remains a secure, isolated black box. The goal of this collusion prevention mechanism is to prevent the Prover from accessing the Notary's cryptographic keys and to prevent the Notary from accessing the Prover's cryptographic keys. The approach ensures that the Notary generates its TLS certificates within a TEE-enabled environment, preventing interception or fabrication of TLS certificate keys. ### Verifier The Verifier is a Smart Contract (or "Canister") deployed on the Internet Computer (IC), chosen for its unique capabilities that combine blockchain security with [AVS](https://academy.binance.com/en/glossary/actively-validated-services-avs)-like functionality. The Verifier's responsibilities include: * **Notary Validation**: Enforces TEE operation, authorised OS usage, and confidential TLS certificate generation. * **Bitcoin Staking Management**: Manages BTC bonds as fraud protection, leveraging BTC's high cryptoeconomic security. * **Proof Precomputation:** Extracts and processes public elements from TLS proofs to optimise ZK computations and minimise proving times. * **Proof Verification & Conversion**: Verifies TLS proofs and facilitates conversions to cryptographic formats like tECDSA for reduced ZK computational load and wider compatibility with destination systems. ### Source The source is a TLS-enabled HTTP endpoint, either third-party or first-party data owned by the Prover. **Examples of third-party sources:** * Government APIs * Financial APIs * Weather APIs * Social media APIs ### Destination The destination is typically a blockchain for trustless final verification. It may also include centralised systems for: * Data analysis * Cryptographically supported trust management * Cybersecurity applications ## High-level Architecture The diagram below illustrates the roles and interactions within the Verity Network's architecture: ![Verity Network Architecture](https://mintlify.s3.us-west-1.amazonaws.com/usherlabs/images/verity-zktls-full-flow.jpg) **On 7) TLS Proof Generation:** 1. The Notary generates secret entropy for the MPC session state machine. 2. The Prover and Notary validate the TLS handshake. 3. The Prover commits byte sequences as Merkle tree leaves representing TLS data. 4. The Notary validates and signs the Merkle root hash. 5. Entropy is revealed to the Prover, enabling TLS proof construction. **On 8) TLS Proof Preparation** (In case of ZK VDPE): 1. Parse the TLS proof into public and private facets. 2. Submit public facets to the Verifier for conversion or ZK pre-computation. **On 9) ZK Proof Aggregation** (In case of ZK VDPE): 1. Verify remote tECDSA signature over the Merkle root hash of proof verifications and pre-computes. 2. Verify private facets of the TLS proof. 3. Generate a zkSNARK or zkSTARK. **On 10) Proof Delivery:** 1. Destination blockchains must support at least ECDSA signature verification. 2. For ZK VDPE, the destination blockchain should support Groth16 SNARK verification. 3. If SNARK verification is unsupported, an IC VDPE can perform SNARK-to-ECDSA conversion. Alternatively, a zkProof verification intermediary network may be necessary. 4. If the destination blockchain is the Internet Computer, the Prover Orchestrator does not need to collect a response from the Verifier. Instead, the IC VDPE Canister can serve as the destination for the TLS proofs and interface directly with the Verifier, all within the Internet Computer's environment. ## Process 1. **Prover Proxy Initiation:** Verity Prover technology operates as a proxy, routing API requests through the Prover Proxy to begin TLS proof generation. 2. **Session Initiation:** The Prover validates that the selected Notary is an authenticated and verified actor from the Verifier's state. 3. **Notary Engagement:** The Notary assists the Prover in generating TLS proofs. Notaries operate at the edge, minimising latency in network communication compared to other MPC-TLS networks. 4. **MPC Session Facilitation:** A cryptographic MPC session is conducted between the Prover and Notary to validate and prove data requests to various sources. 5. **Repeat for Each Data Source:** Steps 1–4 are repeated for each data source in the pipeline, with the Prover orchestrating the process. 6. **Proof Collation and Processing:** After collating data source proofs locally, the Prover proceeds with one of two paths: * **IC VDPE:** Forward proofs and data to a replicated compute VDPE (e.g., IC) for verification and processing into a tECDSA signature. * **ZK VDPE:** Use remote replicated compute Verifier to cryptographically convert public facets of TLS proofs, perform ZK-relevant pre-computations, for processing of private data through a ZK VDPE. 7. **Proof Generation:** The Prover receives the succinct output and cryptographic proof of computation from the VDPE. 8. **Proof Delivery:** The Prover forwards the output and proof to the destination system for *trustless* verification and utilisation. # Cryptography Source: https://docs.verity.usher.so/tech/cryptography Verity employs a variety of cryptographic primitives to deliver on the core value proposition - verifiable data pipelines. ## MPC-TLS (Multi-Party Computation over Transport Layer Security) Verity employs the MPC-TLS primitive to generate authenticity and integrity proofs for TLS-enabled HTTP requests (i.e., HTTPS). This ensures that data sourced from Web2 services can be cryptographically verified as authentic and untampered. ### How MPC-TLS Works In standard TLS communication, a handshake establishes a secure connection between a client and a server, using cryptographic keys to encrypt and authenticate the session. MPC-TLS modifies this process by incorporating a third-party Notary into the session: 1. **Handshake Inclusion:** During the handshake, the Notary receives encrypted data packets from both the Prover (client) and the Source (server). 2. **Authenticity Checks:** The Notary independently validates the handshake by verifying digital signatures, encryption parameters, and session metadata without accessing raw session data. 3. **Proof Generation:** The Notary co-signs the handshake and creates a proof of authenticity and integrity for the session. This proof includes verifiable information about the session, such as the source domain and cryptographic parameters, without exposing private data. [**TLSNotary Whitepaper**](https://tlsnotary.org/TLSNotary.pdf) explains the foundations of MPC-TLS and its use cases. ### Applications Examples of TLS-enabled requests secured by MPC-TLS include: 1. **API calls** to Web2 services, such as government or financial data platforms. 2. **Web page requests** retrieving sensitive information (e.g., viewing banking data via HTTPS). ### Verity’s Adoption Verity extends the open-source **TLSNotary Protocol** with enhancements: 1. **Server-reactive state:** Verity monitors server timeouts and error-prone scenarios to decide whether to terminate or maintain an MPC session. This necessitates slight adjustments to the MPC state machine. 2. **Collusion Prevention:** * TLSNotary assumes Provers and Notaries are non-collusive. * Verity ensures this through Verifiers, which enforce non-collusion via TEE attestation and operational oversight. 3. **Authorised Notary Selection:** * Provers interact with Verifiers to identify authorised Notaries. * Verifiers cross-reference inputs from Provers and Notaries, ensuring that the proof’s integrity is maintained. 4. **Portability:** * TLSNotary proofs are inherently non-portable, limiting their use to specific contexts. * Verity decomposes these proofs into sub-proofs to enable compatibility with zkVMs and decentralised replicated compute platforms. ### Why It Matters 1. **API Agnosticism:** MPC-TLS allows existing APIs to produce cryptographically verifiable data without server modifications. 2. **Transparency in Data Lineage:** Verity provides an immutable cryptographic audit trail for sourced data, ensuring transparency and trust. 3. **Cross-Blockchain Compatibility:** Sub-proof decomposition enables TLS proofs to integrate seamlessly into various blockchain ecosystems and computational environments. In summary, Verity extends MPC-TLS to create portable, verifiable data proofs, bridging Web2 data sources with Web3 applications. By launching a general-purpose core Verifier, Verity enables secure data pipelines across diverse blockchain networks and ecosystems. ## TEE (Trusted Execution Environment) A Trusted Execution Environment (TEE) is a hardware-based enclave designed for secure and tamper-resistant execution of code. TEEs isolate sensitive operations from the rest of the system, ensuring that computations and data remain confidential and secure. ### How TEEs Work 1. **Secure Memory Isolation:** * All data within the TEE is encrypted in memory, preventing unauthorised access from external processes or the host operating system. * This isolation ensures that sensitive computations remain shielded, even in the presence of compromised system components. 2. **CPU Lockdown:** * The CPU enforces strict policies to only execute approved code within the TEE. * This eliminates the risk of unauthorised instructions interfering with enclave operations. 3. **Remote Attestation:** * TEEs generate cryptographic attestations that prove the integrity of the environment to external verifiers. * These attestations confirm that the TEE is running trusted software on authorised hardware. ### Risks While TEEs provide strong security guarantees, they are not invulnerable. Common risks include: 1. **Physical Attacks:** Side-channel attacks can extract sensitive information by analysing power consumption, electromagnetic signals, or other physical characteristics of the TEE. 2. **Software Exploits:** Vulnerabilities in TEE firmware or software can be exploited to gain unauthorised access to the secure enclave. 3. **Supply Chain Risks:** Compromised hardware or firmware during manufacturing or distribution could undermine TEE security. ### Mitigation in Verity Verity leverages TEEs for a specific, narrowly defined purpose: ensuring the integrity and confidentiality of **TLS certificate generation** by Notaries. 1. **TLS Certificate Protection:** * The TEE ensures that the cryptographic keys used for TLS certificates are securely generated and remain inaccessible to the host. * This prevents any possibility of collusion or tampering between the Prover and the Notary. 2. **Enforcement of Non-Collusion:** By confining critical operations within the TEE, Verity ensures that Notaries cannot reveal private cryptographic keys, and Provers cannot access the Notary's internal operations. 3. **Shift of Trust:** Verity shifts trust from individual operators to authorised cloud providers (e.g., AWS Nitro, Azure Confidential Compute, and GCP Shielded VMs) that meet TEE security standards. The use of Trusted Execution Environments (TEEs) in Verity is crucial for ensuring the integrity and confidentiality of operations. TEEs prevent collusion between Provers and Notaries by securely generating and protecting TLS certificates, thereby maintaining the protocol's integrity. By limiting TEE reliance to this specific function, Verity minimises the attack surface while leveraging the strongest capabilities of the enclave. ## Verifiable Compute Verifiable Compute refers to computational environments that enable data processing with cryptographic guarantees of correctness. This ensures that outputs adhere to predetermined logic while preserving the privacy of sensitive data. Verity employs two core cryptographic primitives for verifiable compute: **Zero-Knowledge (ZK) Cryptography** and **Chain-Key (CK) Cryptography**. ### ZK (Zero-Knowledge) Cryptography Zero-Knowledge Cryptography (ZK) is a cryptographic technique that enables the validation of a computation without revealing the underlying inputs or outputs. By encapsulating the entire computational process into a succinct proof, ZK ensures privacy and verifiability simultaneously. #### How ZK Cryptography Works 1. **Circuit Construction:** The computational process is expressed as a ZK circuit, representing the inputs, operations, and outputs. 2. **Proof Generation:** The computation is executed over the circuit, resulting in a cryptographic proof (e.g., zkSNARK or zkSTARK) that attests to the correctness of the process. 3. **Proof Verification:** A verifier can validate the proof without needing to execute the computation or access sensitive input data. #### zkVMs (Zero-Knowledge Virtual Machines) **Definition:** zkVMs are specialised virtual machines that execute computational processes securely within a ZK framework. **Mechanism:** * Build on ISA-compatible CPU architectures (ie. RISC-V) to mimic conventional computational environments. * Aggregate the instruction set into a ZK circuit to produce a proof of correctness. **Advantages:** zkVMs enable secure and private computations in conventional programming languages like Rust, producing verifiable, portable, and tamper-proof outputs. Verity employs zkVMs to process private data within its pipelines, enabling secure transformations and aggregations. ZK proofs ensure that sensitive data can be validated without exposing its content, maintaining end-to-end privacy and integrity. [RISC Zero zkVM Whitepaper](https://dev.risczero.com/proof-system-in-detail.pdf) explains the foundations and applications of zkVMs in secure, verifiable computation. ### CK (Chain-Key) Cryptography Chain-Key Cryptography (CK), developed by the Internet Computer (IC), combines several advanced cryptographic primitives to facilitate distributed verifiable compute. CK integrates Multi-Party Computation (MPC), Threshold Signature Schemes (TSS), and Distributed Key Generation (DKG) to produce portable cryptographic outputs. Verity integrates Chain-Key cryptography to utilise the IC for efficient, decentralised computation. By generating portable ECDSA signatures, Verity ensures that outputs from its pipelines can be verified across various blockchains and systems, enhancing interoperability. #### How CK Cryptography Works: 1. **Distributed ECDSA Signatures:** A set of IC nodes collaborates to generate an ECDSA signature over specific data, ensuring correctness and provenance. 2. **Portability:** These signatures can be verified by external systems and blockchains using standard ECDSA verification methods. 3. **Dynamic Node Participation:** CK allows nodes to dynamically join or leave the computation set, overcoming static limitations of traditional MPC-TSS systems. #### NPVDKGRS Algorithm: The Non-interactive Publicly Verifiable Distributed Key Generation and Resharing Algorithm (NPVDKGRS) underpins CK cryptography. **Innovation:** Enables distributed systems to adapt to changing participants without compromising security or verifiability. **Impact:** Ensures that multi-party computations remain robust and scalable in dynamic environments. [NPVDKGRS Whitepaper](https://internetcomputer.org/whitepapers/Non-interactive%20distributed%20key%20generation%20and%20%20key%20resharing.pdf) details the advancements in distributed key generation and resharing algorithms critical to CK cryptography​TLSNotary-Review-2409.1…​TLSNotary. # Verifiable Data Processing Environment (VDPE) Source: https://docs.verity.usher.so/tech/data-processing Data processing is an imperative for any data pipeline. Verity ensures the entire pipeline and lineage can be verified to authenticate data on destination chains. A **Verifiable Data Processing Environment (VDPE)** is a platform that enables the processing of data in a manner that can be verified by a third-party verifier system, typically a destination system within the context of a data pipeline. The term "VDPE" specifies an environment for verifiable computation aimed at data processing. Verity supports two types of VDPEs to ensure compatibility with a wide range of destination systems, particularly diverse blockchains, from EVM, SVM to Move: 1. RiscZero's zkVM 2. The Internet Computer (IC) However, it is entirely up to the developer to determine how data processing is facilitated in their data pipeline. In some cases, certain blockchains may be capable of receiving raw data for processing without requiring intermediary VDPEs. Specific Move-based or Rust-based blockchains provide a wide array of tooling for processing data, making this viable. ## RiscZero's zkVM (ZK VDPE) RiscZero is the most production-grade zkVM, designed for CPUs with smaller workloads. It is the zkVM of choice for Verity, ensuring stateless Rust development to a limit, providing data processing capabilities, and a portable succinct proof format for verification across various environments, whether on- or off-chain. ## The Internet Computer (IC VDPE) The Internet Computer (IC) is a decentralised and replicated compute platform that enables the processing of data in a way that can be verified by a third-party verifier system, typically a destination system within the context of a data pipeline. It achieves this through [Chain-key cryptography](/tech/cryptography#chain-key-cryptography), a cryptographic primitive specific to the Internet Computer (IC). ## Verity Data Processor Framework (VDP) The VDP Framework is designed to support developers building provers of data pipelines with libraries that abstract cryptographic complexities when integrating data with existing prominent blockchains. The VDP streamlines the incorporation of intermediary ZK or IC VDPEs for processing data from its initial state into a new state that blockchains can accept and verify. Once data has been sourced and proofs attesting to the data sources are in place, the data can be transformed and processed with support from the VDP Framework for compatibility with a destination system, such as a prominent blockchain. For example, consider a zkTLS-enabled Oracle that proves various data sources indicating the price of an asset. Within the VDP, these sources can be verified and a weighted aggregation performed, which can then be verified by the destination blockchain. ![Verity Data Processor Architecture](https://mintlify.s3.us-west-1.amazonaws.com/usherlabs/images/vdp-architecture.jpeg) ### Developer Requirements Developers adopting the VDP need a programmatic **pure** (*aka stateless*) function capable of verifying the sub-proofs and processing the API response data. For now, **the Rust programming language is required.** ### VDPE Purpose The VDP libraries simplify the process of verifying these TLS proofs and their inner sub-proofs. * **ZK VDPE**: Under the hood, the Verifier is incorporated to share in MPC verification of only public facets of the TLS proof, essentially conducting precompute functions on TLS proofs, minimising ZK proving overhead and time to proof. * **IC VDPE**: The Verifier is called via cross-contract invocation, offering a simple, already deployed interface to ensure TLS proofs are verified and valid within the IC. ### Framework Flexibility The framework allows developers to choose between: * **ZK (Zero-Knowledge) Computation:** Privacy-preserving computation. * **IC (Decentralised) Computation:** High-speed public decentralised computation powered by the Internet Computer. Both environments leverage Rust, and the provided libraries are compatible between each environment. ### Cryptographic Proofs Each supported VDPE can produce a succinct cryptographic proof of the data processing outcome. * **ZK Computation:** Yields a ZK-SNARK based on the Groth16 primitive, directly compatible with blockchains such as Ethereum and other EVM chains. * **IC Computation:** Yields an ECDSA signature powered by TSS (Threshold Signature Scheme), where all parties reach consensus over outcomes to form a single signature. This proof is highly compatible with various blockchains, making the Internet Computer a viable candidate for versatile pipelines. ### Integration Finally, the Prover program logic collects the compute outcome and its associated proof of data processing for submission to a destination blockchain of your choice. Typically, the Prover operates in a centralised manner, but obtains the relevant cryptographic certainty from various verifiable components to deliver to the destination system. It's analogous to the concept of a "zkRollup" in a Layer 2 blockchain architecture - hence the comparison in the ["introduction" section of the technical overview](/tech/introduction). # Example TLS Proofs Source: https://docs.verity.usher.so/tech/example-tls-proofs This page aims to provide examples of TLS proofs generated by Verity to help developers understand the format and structure of the proofs. Verity's TLS proofs are currently based on [TLSNotary's `alpha.6` implementation](https://github.com/usherlabs/tlsn). To see live examples of TLS proofs, see the [IC-ADC Explorer](https://go.usher.so/ic-adc). ## Pyth Example: **URL**: `https://hermes.pyth.network/api/latest_price_feeds?ids[]=67aed5a24fdad045475e7195c98a98aea119c763f272d4523f5bac93a4f33c2b HTTP/1.1` **Date Created**: January 9, 2025, 3:04 PM **Request Body**: `{}` **Response Body**: ```json [ { "id": "67aed5a24fdad045475e7195c98a98aea119c763f272d4523f5bac93a4f33c2b", "price": { "conf": "25422", "expo": -8, "price": "24172585", "publish_time": 1736435040 }, "ema_price": { "conf": "23984", "expo": -8, "price": "24187697", "publish_time": 1736435040 } } ] ``` TLS Proof: ```json {"session":{"header":{"encoder_seed":[125,0,237,159,183,52,33,238,231,56,224,186,10,16,30,112,63,189,93,203,213,174,116,76,184,146,14,56,106,28,137,81],"merkle_root":[56,161,190,16,38,148,40,92,145,174,186,1,83,33,41,81,208,128,175,246,28,67,149,85,7,89,144,89,165,160,167,45],"sent_len":249,"recv_len":687,"handshake_summary":{"time":1736435030,"server_public_key":{"group":"secp256r1","key":[4,153,89,229,217,82,161,165,116,220,171,55,20,221,84,56,174,119,120,253,13,21,89,223,148,15,140,227,201,110,16,96,172,67,3,15,239,156,113,2,129,80,239,196,183,115,111,36,248,176,141,31,37,76,118,100,86,154,178,51,32,79,228,155,145]},"handshake_commitment":[206,196,207,168,173,151,255,94,241,252,137,188,26,125,91,79,46,43,50,175,224,190,154,33,184,104,108,40,10,25,60,32]}},"signature":{"P256":"DE176265C9D4A96AD3502B911EFAE92B2A42F82F4C7BDC1537E13B7F4058F63E0CF6508F73EEEBE88BF91531EAC6A3F3FD00D23D7A00F771AB5794DD6AAE95C1"},"session_info":{"server_name":{"Dns":"hermes.pyth.network"},"handshake_decommitment":{"nonce":[8,178,4,44,65,30,216,192,99,247,30,202,45,88,77,82,143,14,100,90,217,34,101,114,10,53,223,200,105,246,95,221],"data":{"server_cert_details":{"cert_chain":[[48,130,4,71,48,130,3,206,160,3,2,1,2,2,18,4,67,230,173,116,206,207,213,141,40,162,106,133,181,32,110,204,29,48,10,6,8,42,134,72,206,61,4,3,3,48,50,49,11,48,9,6,3,85,4,6,19,2,85,83,49,22,48,20,6,3,85,4,10,19,13,76,101,116,39,115,32,69,110,99,114,121,112,116,49,11,48,9,6,3,85,4,3,19,2,69,54,48,30,23,13,50,52,49,49,50,48,48,49,53,56,53,56,90,23,13,50,53,48,50,49,56,48,49,53,56,53,55,90,48,23,49,21,48,19,6,3,85,4,3,19,12,112,121,116,104,46,110,101,116,119,111,114,107,48,89,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,3,66,0,4,203,225,166,132,40,86,231,131,130,249,37,75,92,154,208,175,245,202,107,174,6,24,176,136,143,84,13,75,52,253,203,74,235,182,159,142,245,50,198,48,133,108,217,175,129,63,61,234,33,223,247,209,59,64,229,51,95,239,102,105,8,153,226,77,163,130,2,221,48,130,2,217,48,14,6,3,85,29,15,1,1,255,4,4,3,2,7,128,48,29,6,3,85,29,37,4,22,48,20,6,8,43,6,1,5,5,7,3,1,6,8,43,6,1,5,5,7,3,2,48,12,6,3,85,29,19,1,1,255,4,2,48,0,48,29,6,3,85,29,14,4,22,4,20,9,99,190,20,237,33,62,244,48,198,84,40,76,231,91,166,66,235,181,32,48,31,6,3,85,29,35,4,24,48,22,128,20,147,39,70,152,3,169,81,104,142,152,214,196,66,72,219,35,191,88,148,210,48,85,6,8,43,6,1,5,5,7,1,1,4,73,48,71,48,33,6,8,43,6,1,5,5,7,48,1,134,21,104,116,116,112,58,47,47,101,54,46,111,46,108,101,110,99,114,46,111,114,103,48,34,6,8,43,6,1,5,5,7,48,2,134,22,104,116,116,112,58,47,47,101,54,46,105,46,108,101,110,99,114,46,111,114,103,47,48,129,228,6,3,85,29,17,4,129,220,48,129,217,130,19,42,46,98,108,117,101,46,112,121,116,104,46,110,101,116,119,111,114,107,130,21,42,46,100,101,118,110,101,116,46,112,121,116,104,46,110,101,116,119,111,114,107,130,21,42,46,105,110,100,105,103,111,46,112,121,116,104,46,110,101,116,119,111,114,107,130,22,42,46,109,97,105,110,110,101,116,46,112,121,116,104,46,110,101,116,119,111,114,107,130,14,42,46,112,121,116,104,46,110,101,116,119,111,114,107,130,22,42,46,112,121,116,104,110,101,116,46,112,121,116,104,46,110,101,116,119,111,114,107,130,23,42,46,112,121,116,104,116,101,115,116,46,112,121,116,104,46,110,101,116,119,111,114,107,130,22,42,46,116,101,115,116,110,101,116,46,112,121,116,104,46,110,101,116,119,111,114,107,130,21,42,46,118,105,111,108,101,116,46,112,121,116,104,46,110,101,116,119,111,114,107,130,12,112,121,116,104,46,110,101,116,119,111,114,107,48,19,6,3,85,29,32,4,12,48,10,48,8,6,6,103,129,12,1,2,1,48,130,1,5,6,10,43,6,1,4,1,214,121,2,4,2,4,129,246,4,129,243,0,241,0,119,0,224,146,179,252,12,29,200,231,104,54,31,222,97,185,150,77,10,82,120,25,138,114,214,114,196,176,77,165,109,111,84,4,0,0,1,147,71,128,226,240,0,0,4,3,0,72,48,70,2,33,0,180,251,138,174,55,35,148,163,136,27,65,34,168,54,66,108,151,78,147,56,129,92,4,251,104,225,13,86,115,144,67,211,2,33,0,136,225,103,209,209,72,14,62,1,245,95,174,247,10,190,139,131,44,174,66,70,92,145,13,67,50,20,236,1,171,116,89,0,118,0,162,227,10,228,69,239,189,173,155,126,56,237,71,103,119,83,215,130,91,132,148,215,43,94,27,44,196,185,80,164,71,231,0,0,1,147,71,128,234,116,0,0,4,3,0,71,48,69,2,32,29,19,234,129,113,133,15,74,67,80,196,251,76,56,126,83,1,103,156,77,112,232,202,230,215,218,241,160,24,197,236,154,2,33,0,142,112,15,103,89,175,12,203,149,203,125,210,196,151,252,197,37,88,217,75,168,101,132,43,11,146,47,129,61,205,4,11,48,10,6,8,42,134,72,206,61,4,3,3,3,103,0,48,100,2,48,61,164,146,217,124,126,215,62,196,224,209,212,172,167,193,209,108,207,2,9,25,225,11,200,95,62,209,89,30,236,255,231,189,113,125,182,111,244,144,51,230,126,14,29,74,174,9,14,2,48,78,126,253,109,70,26,216,188,253,167,196,22,238,63,248,69,63,242,14,24,149,132,229,189,132,137,189,13,110,14,107,234,164,223,174,27,113,5,1,29,134,155,89,8,214,55,231,144],[48,130,4,87,48,130,2,63,160,3,2,1,2,2,17,0,176,87,62,145,115,151,39,112,219,180,135,203,58,69,43,56,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,79,49,11,48,9,6,3,85,4,6,19,2,85,83,49,41,48,39,6,3,85,4,10,19,32,73,110,116,101,114,110,101,116,32,83,101,99,117,114,105,116,121,32,82,101,115,101,97,114,99,104,32,71,114,111,117,112,49,21,48,19,6,3,85,4,3,19,12,73,83,82,71,32,82,111,111,116,32,88,49,48,30,23,13,50,52,48,51,49,51,48,48,48,48,48,48,90,23,13,50,55,48,51,49,50,50,51,53,57,53,57,90,48,50,49,11,48,9,6,3,85,4,6,19,2,85,83,49,22,48,20,6,3,85,4,10,19,13,76,101,116,39,115,32,69,110,99,114,121,112,116,49,11,48,9,6,3,85,4,3,19,2,69,54,48,118,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,34,3,98,0,4,217,241,158,70,135,248,33,113,96,168,38,235,163,250,185,234,218,29,185,18,167,212,38,217,81,20,177,97,124,117,150,191,34,11,57,31,213,190,209,10,70,170,45,60,74,9,132,46,190,64,149,85,233,25,64,55,102,117,237,50,78,119,4,73,248,112,123,195,24,231,206,247,113,16,254,172,116,216,0,212,237,109,28,115,22,51,16,156,58,178,234,108,98,244,189,184,163,129,248,48,129,245,48,14,6,3,85,29,15,1,1,255,4,4,3,2,1,134,48,29,6,3,85,29,37,4,22,48,20,6,8,43,6,1,5,5,7,3,2,6,8,43,6,1,5,5,7,3,1,48,18,6,3,85,29,19,1,1,255,4,8,48,6,1,1,255,2,1,0,48,29,6,3,85,29,14,4,22,4,20,147,39,70,152,3,169,81,104,142,152,214,196,66,72,219,35,191,88,148,210,48,31,6,3,85,29,35,4,24,48,22,128,20,121,180,89,230,123,182,229,228,1,115,128,8,136,200,26,88,246,233,155,110,48,50,6,8,43,6,1,5,5,7,1,1,4,38,48,36,48,34,6,8,43,6,1,5,5,7,48,2,134,22,104,116,116,112,58,47,47,120,49,46,105,46,108,101,110,99,114,46,111,114,103,47,48,19,6,3,85,29,32,4,12,48,10,48,8,6,6,103,129,12,1,2,1,48,39,6,3,85,29,31,4,32,48,30,48,28,160,26,160,24,134,22,104,116,116,112,58,47,47,120,49,46,99,46,108,101,110,99,114,46,111,114,103,47,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,2,1,0,125,139,123,74,32,53,178,5,134,8,138,110,158,78,58,175,128,4,196,132,92,51,25,10,129,72,77,150,186,239,212,29,181,132,230,151,55,254,102,136,79,139,57,54,235,114,101,63,51,220,175,11,163,21,99,189,244,24,209,104,47,194,33,39,200,252,190,179,139,164,198,54,216,227,250,109,164,181,147,214,12,174,208,211,151,2,71,160,102,242,211,132,225,77,71,129,14,75,18,245,24,174,30,248,156,102,160,94,117,7,72,23,174,105,102,232,105,120,55,6,5,194,226,97,171,16,175,241,14,230,12,113,180,188,147,154,11,7,72,229,82,5,193,78,159,217,96,191,178,196,8,250,189,139,185,159,31,121,169,198,10,209,41,44,71,164,234,25,208,165,204,112,31,161,30,235,229,146,81,231,182,247,8,210,99,12,67,73,161,98,62,170,180,193,82,182,65,117,70,144,134,220,131,221,35,10,85,9,10,174,240,101,123,179,203,155,146,116,115,179,237,194,252,25,181,245,17,78,162,35,233,14,76,47,200,215,239,153,13,120,94,76,170,168,162,185,161,159,51,132,61,246,144,84,80,147,22,188,185,148,174,135,134,147,34,97,113,146,123,183,247,6,129,196,132,87,19,136,202,198,80,38,65,206,16,140,86,104,171,82,166,66,164,32,208,159,245,36,95,17,148,91,201,106,205,85,114,50,239,98,91,212,7,107,122,158,147,186,161,8,193,222,95,143,53,253,3,165,1,251,137,76,119,91,62,64,141,0,162,232,189,185,22,60,132,211,170,186,5,159,208,150,107,88,118,95,252,101,134,168,225,36,106,60,75,63,233,192,34,23,228,31,231,56,54,82,70,150,180,58,97,151,82,202,50,228,205,46,139,111,177,127,125,28,254,189,87,103,218,55,39,160,161,212,52,47,36,192,166,191,239,79,77,88,60,78,58,188,219,3,46,2,190,225,194,250,78,188,194,253,174,22,114,97,121,73,18,125,223,204,235,191,247,110,36,114,215,64,137,46,230,253,62,19,3,178,231,209,221,155,67,211,252,74,255,243,135,67,87,64,146,141,212,127,217,123,153,51,121,41,202,196,138,46,0,245,112,168,131,3,226,17,130,227,131,11,23,206,245,204,152,34,14,58,191,217,133,152,27,242,31,78]],"ocsp_response":[48,130,1,85,10,1,0,160,130,1,78,48,130,1,74,6,9,43,6,1,5,5,7,48,1,1,4,130,1,59,48,130,1,55,48,129,190,161,52,48,50,49,11,48,9,6,3,85,4,6,19,2,85,83,49,22,48,20,6,3,85,4,10,19,13,76,101,116,39,115,32,69,110,99,114,121,112,116,49,11,48,9,6,3,85,4,3,19,2,69,54,24,15,50,48,50,53,48,49,48,54,49,56,50,51,48,48,90,48,117,48,115,48,75,48,9,6,5,43,14,3,2,26,5,0,4,20,212,122,56,128,65,232,233,141,7,56,124,236,246,182,216,242,15,165,100,49,4,20,13,197,204,253,155,238,20,5,161,76,48,130,165,62,94,138,195,88,9,210,2,18,4,67,230,173,116,206,207,213,141,40,162,106,133,181,32,110,204,29,128,0,24,15,50,48,50,53,48,49,48,54,49,56,50,51,48,48,90,160,17,24,15,50,48,50,53,48,49,49,51,49,56,50,50,53,56,90,48,10,6,8,42,134,72,206,61,4,3,3,3,104,0,48,101,2,48,122,238,89,145,92,81,19,63,48,108,247,139,52,231,120,10,26,171,239,33,204,137,242,105,211,196,147,185,53,77,160,195,226,75,92,176,253,240,150,80,17,191,208,0,239,135,245,171,2,49,0,221,69,156,118,172,132,58,250,114,150,29,74,92,98,28,114,44,223,255,181,80,126,35,213,157,116,239,224,36,49,142,252,51,208,114,69,182,131,61,113,7,38,161,61,95,68,230,155],"scts":[[0,207,17,86,238,213,46,124,175,243,135,91,217,105,46,155,233,26,113,103,74,176,23,236,172,1,210,91,119,206,204,59,8,0,0,1,147,71,128,235,177,0,0,4,3,0,72,48,70,2,33,0,128,124,124,121,72,46,34,229,40,129,40,78,74,19,128,29,72,58,174,250,34,122,165,130,138,181,10,187,21,130,38,5,2,33,0,234,107,20,123,93,230,142,227,43,183,74,16,220,155,163,116,151,41,239,229,2,32,123,191,18,114,191,74,108,143,123,197],[0,78,117,163,39,92,154,16,195,56,91,108,212,223,63,82,235,29,240,224,142,27,141,105,192,177,250,100,177,98,154,57,223,0,0,1,147,71,128,240,22,0,0,4,3,0,70,48,68,2,32,39,18,76,40,223,188,231,223,70,200,56,42,123,95,201,238,50,103,210,253,17,73,219,125,187,178,143,185,122,88,94,244,2,32,110,116,82,203,165,149,132,30,198,249,141,42,151,92,110,155,9,151,122,40,115,67,221,99,43,14,43,240,202,174,182,155]]},"server_kx_details":{"kx_params":[3,0,23,65,4,153,89,229,217,82,161,165,116,220,171,55,20,221,84,56,174,119,120,253,13,21,89,223,148,15,140,227,201,110,16,96,172,67,3,15,239,156,113,2,129,80,239,196,183,115,111,36,248,176,141,31,37,76,118,100,86,154,178,51,32,79,228,155,145],"kx_sig":{"scheme":"ECDSA_NISTP256_SHA256","sig":[48,69,2,33,0,172,66,145,64,145,169,61,175,226,241,128,133,224,103,173,129,49,122,125,229,185,146,67,71,231,215,12,202,77,225,50,227,2,32,16,97,100,137,98,177,52,59,225,121,94,16,224,146,35,40,220,186,17,59,192,239,90,244,231,14,87,100,166,187,140,52]}},"client_random":[205,239,15,60,203,131,106,9,113,201,99,173,169,124,114,34,25,145,135,127,202,24,242,147,173,83,157,75,34,226,67,227],"server_random":[103,127,229,86,29,206,16,139,9,157,174,95,15,137,60,160,107,46,63,127,139,246,143,200,68,79,87,78,71,82,68,1]}}}},"substrings":{"openings":{"0":[{"kind":"Blake3","ranges":[{"start":0,"end":249}],"direction":"Sent"},{"Blake3":{"data":[71,69,84,32,104,116,116,112,115,58,47,47,104,101,114,109,101,115,46,112,121,116,104,46,110,101,116,119,111,114,107,47,97,112,105,47,108,97,116,101,115,116,95,112,114,105,99,101,95,102,101,101,100,115,63,105,100,115,91,93,61,54,55,97,101,100,53,97,50,52,102,100,97,100,48,52,53,52,55,53,101,55,49,57,53,99,57,56,97,57,56,97,101,97,49,49,57,99,55,54,51,102,50,55,50,100,52,53,50,51,102,53,98,97,99,57,51,97,52,102,51,51,99,50,98,32,72,84,84,80,47,49,46,49,13,10,104,111,115,116,58,32,104,101,114,109,101,115,46,112,121,116,104,46,110,101,116,119,111,114,107,13,10,97,99,99,101,112,116,58,32,42,47,42,13,10,99,97,99,104,101,45,99,111,110,116,114,111,108,58,32,110,111,45,99,97,99,104,101,13,10,99,111,110,110,101,99,116,105,111,110,58,32,99,108,111,115,101,13,10,97,99,99,101,112,116,45,101,110,99,111,100,105,110,103,58,32,105,100,101,110,116,105,116,121,13,10,13,10],"nonce":[215,37,207,1,65,78,213,26,49,243,186,172,179,8,96,246,102,24,168,197,255,152,194,124,8,76,119,220,116,244,38,241]}}],"1":[{"kind":"Blake3","ranges":[{"start":0,"end":687}],"direction":"Received"},{"Blake3":{"data":[72,84,84,80,47,49,46,49,32,50,48,48,32,79,75,13,10,68,97,116,101,58,32,84,104,117,44,32,48,57,32,74,97,110,32,50,48,50,53,32,49,53,58,48,52,58,48,49,32,71,77,84,13,10,67,111,110,116,101,110,116,45,84,121,112,101,58,32,97,112,112,108,105,99,97,116,105,111,110,47,106,115,111,110,13,10,67,111,110,116,101,110,116,45,76,101,110,103,116,104,58,32,50,51,57,13,10,67,111,110,110,101,99,116,105,111,110,58,32,99,108,111,115,101,13,10,97,99,99,101,115,115,45,99,111,110,116,114,111,108,45,97,108,108,111,119,45,111,114,105,103,105,110,58,32,42,13,10,118,97,114,121,58,32,111,114,105,103,105,110,13,10,118,97,114,121,58,32,97,99,99,101,115,115,45,99,111,110,116,114,111,108,45,114,101,113,117,101,115,116,45,109,101,116,104,111,100,13,10,118,97,114,121,58,32,97,99,99,101,115,115,45,99,111,110,116,114,111,108,45,114,101,113,117,101,115,116,45,104,101,97,100,101,114,115,13,10,97,99,99,101,115,115,45,99,111,110,116,114,111,108,45,101,120,112,111,115,101,45,104,101,97,100,101,114,115,58,32,42,13,10,115,116,114,105,99,116,45,116,114,97,110,115,112,111,114,116,45,115,101,99,117,114,105,116,121,58,32,109,97,120,45,97,103,101,61,51,49,53,51,54,48,48,48,59,32,105,110,99,108,117,100,101,83,117,98,68,111,109,97,105,110,115,13,10,120,45,105,110,102,114,97,58,32,112,108,97,116,102,111,114,109,45,103,114,101,101,110,13,10,67,70,45,67,97,99,104,101,45,83,116,97,116,117,115,58,32,68,89,78,65,77,73,67,13,10,83,101,114,118,101,114,58,32,99,108,111,117,100,102,108,97,114,101,13,10,67,70,45,82,65,89,58,32,56,102,102,53,53,49,52,48,52,100,102,97,100,102,50,55,45,83,69,65,13,10,13,10,91,123,34,105,100,34,58,34,54,55,97,101,100,53,97,50,52,102,100,97,100,48,52,53,52,55,53,101,55,49,57,53,99,57,56,97,57,56,97,101,97,49,49,57,99,55,54,51,102,50,55,50,100,52,53,50,51,102,53,98,97,99,57,51,97,52,102,51,51,99,50,98,34,44,34,112,114,105,99,101,34,58,123,34,112,114,105,99,101,34,58,34,50,52,49,55,50,53,56,53,34,44,34,99,111,110,102,34,58,34,50,53,52,50,50,34,44,34,101,120,112,111,34,58,45,56,44,34,112,117,98,108,105,115,104,95,116,105,109,101,34,58,49,55,51,54,52,51,53,48,52,48,125,44,34,101,109,97,95,112,114,105,99,101,34,58,123,34,112,114,105,99,101,34,58,34,50,52,49,56,55,54,57,55,34,44,34,99,111,110,102,34,58,34,50,51,57,56,52,34,44,34,101,120,112,111,34,58,45,56,44,34,112,117,98,108,105,115,104,95,116,105,109,101,34,58,49,55,51,54,52,51,53,48,52,48,125,125,93],"nonce":[221,155,5,156,146,0,134,79,75,216,32,96,8,44,62,131,83,91,233,111,173,226,159,172,83,88,110,180,159,133,76,147]}}]},"inclusion_proof":{"proof":[],"total_leaves":2}}} ``` ## RedStone Example: **URL**: `https://api.redstone.finance/prices?symbol=XRP&provider=redstone&limit=1 HTTP/1.1` **Date Created**: January 9, 2025, 3:03 PM **Request Body**: `{}` **Response Body**: ```json [ { "id": "edc434e9-b5cb-43c7-9405-5ce770938b7f", "value": 2.2671558515, "source": { "okx-usdt": 2.266461998, "coingecko": 2.27, "kraken-usd": 2.26735, "lbank-usdt": 2.266961703, "kucoin-usdt": 2.2669317207, "binance-usdt": 2.265962293, "bitstamp-usd": 2.26772, "bitfinex2-usd": 2.2778 }, "symbol": "XRP", "minutes": 2, "version": "0.7", "provider": "I-5rWUehEv-MjdK9gFw09RxfSLQX9DIHxG614Wf8qo0", "timestamp": 1736434920000, "permawebTx": "mock-permaweb-tx", "liteEvmSignature": "77+9H3rvv73vv73vv73Tj3dvbTfvv73vv71eb19cbe+/vXVp77+9G2/vv73vv73ftu+/ve+/ve+/ve+/vX3vv73vv73vv70777+9Wu+/ve+/vXpz77+977+9c007ce+/ve+/veettNeneHfvv70fae+/vV3vv71fd++/ve+/ve+/ve+/vR9zXe+/vXNG77+9e++/ve+/vXtHe3nvv70a77+9bu+/ve+/ve+/ve+/ve+/ve+/vVs=", "providerPublicKey": "xyTvKiCST8bAT6sxrgkLh8UCX2N1eKvawODuxwq4qOHIdDAZFU_3N2m59rkZ0E7m77GsJuf1I8u0oEJEbxAdT7uD2JTwoYEHauXSxyJYvF0RCcZOhl5P1PJwImd44SJYa_9My7L84D5KXB9SKs8_VThe7ZyOb5HSGLNvMIK6A8IJ4Hr_tg9GYm65CRmtcu18S9mhun8vgw2wi7Gw6oR6mc4vU1I-hrU66Fi7YlXwFieP6YSy01JqoLPhU84EunPQzXPouVSbXjgRU5kFVxtdRy4GK2fzEBFYsQwCQgFrySCrFKHV8AInu9jerfof_DxNKiXkBzlB8nc22CrYnvvio_BWyh-gN0hQHZT0gwMR-A7sbXNCQJfReaIZzX_jP6XoB82PnpzmL_j1mJ2lnv2Rn001flBAx9AYxtGXd9s07pA-FggTbEG3Y2UnlWW6l3EJ93E0IfxL0PqGEUlp217mxUHvmTw9fkGDWa8rT9RPmsTyji-kMFSefclw80cBm_iOsIEutGP4S3LDbP-ZVJWDeJOBQQpSgwbisl8qbjl2sMQLQihoG2TQyNbmLwfyq-XSULkXjUi1_6BH36wnDBLWBKF-bS2bLKcGtn3Vjet72lNHxJJilcj8vpauwJG0078S_lO5uGt6oicdGR6eh_NSn6_8za_tXg0G_fohz4Yb1z8" } ] ``` TLS Proof: ```json {"session":{"header":{"encoder_seed":[73,42,135,124,235,86,149,21,203,228,49,182,190,128,250,54,185,69,14,44,234,186,57,98,19,172,109,18,161,205,67,5],"merkle_root":[131,33,198,162,5,93,228,144,141,205,174,72,230,248,122,178,173,180,80,30,31,111,238,249,210,196,50,4,93,118,181,180],"sent_len":201,"recv_len":1913,"handshake_summary":{"time":1736434974,"server_public_key":{"group":"secp256r1","key":[4,237,224,205,138,147,9,198,37,205,123,167,143,150,90,54,241,219,73,6,184,22,124,239,25,235,230,241,133,94,203,34,31,34,28,95,85,228,220,99,32,25,143,236,186,58,198,70,99,149,194,128,140,3,222,89,104,17,160,63,99,45,67,242,123]},"handshake_commitment":[251,99,59,233,235,180,41,52,116,138,160,221,123,90,180,121,157,18,138,255,46,185,190,149,8,118,170,90,46,42,104,9]}},"signature":{"P256":"05CF8D472ACD5647C401D73386F0D4FA87436106C500D8C903C0DF2DE22D2A395A6220A966626CEB769FFBB0A1A0AEED99938DD684A97CD0F934F4D19022D44F"},"session_info":{"server_name":{"Dns":"api.redstone.finance"},"handshake_decommitment":{"nonce":[221,154,73,132,167,156,208,244,147,25,221,171,6,41,121,80,153,212,127,246,206,194,220,66,47,163,179,66,201,216,2,68],"data":{"server_cert_details":{"cert_chain":[[48,130,5,213,48,130,4,189,160,3,2,1,2,2,16,14,181,180,133,29,40,166,216,136,180,71,163,92,181,215,224,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,60,49,11,48,9,6,3,85,4,6,19,2,85,83,49,15,48,13,6,3,85,4,10,19,6,65,109,97,122,111,110,49,28,48,26,6,3,85,4,3,19,19,65,109,97,122,111,110,32,82,83,65,32,50,48,52,56,32,77,48,51,48,30,23,13,50,52,49,48,48,50,48,48,48,48,48,48,90,23,13,50,53,49,48,51,49,50,51,53,57,53,57,90,48,31,49,29,48,27,6,3,85,4,3,19,20,97,112,105,46,114,101,100,115,116,111,110,101,46,102,105,110,97,110,99,101,48,130,1,34,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,130,1,15,0,48,130,1,10,2,130,1,1,0,147,123,79,170,48,56,30,198,22,238,163,197,59,61,103,148,160,177,218,184,222,220,210,182,216,115,12,7,228,125,78,38,3,164,140,11,99,55,130,72,250,137,170,61,206,21,161,47,233,36,39,46,122,174,141,2,145,218,134,117,209,236,161,145,232,227,75,11,96,238,44,81,207,227,134,77,194,120,224,4,31,48,230,208,133,196,140,37,157,15,236,117,2,66,150,162,164,218,19,31,123,65,248,204,251,236,0,155,227,109,183,207,190,200,124,241,203,172,152,192,195,231,237,4,5,133,243,133,44,216,14,202,236,86,2,190,169,201,198,221,150,194,100,25,194,6,76,210,88,131,189,55,21,182,75,10,49,68,148,127,9,173,60,0,181,92,210,177,132,24,245,124,126,255,67,192,244,17,117,157,21,125,250,117,39,169,212,223,66,67,33,63,81,48,254,67,204,35,112,132,34,131,43,0,162,29,168,39,166,28,55,244,154,37,1,120,234,126,99,200,6,43,64,36,127,92,107,20,71,145,216,231,116,102,76,124,187,215,103,85,107,135,87,49,228,203,78,231,216,147,68,186,50,213,0,253,2,3,1,0,1,163,130,2,238,48,130,2,234,48,31,6,3,85,29,35,4,24,48,22,128,20,85,217,24,95,210,28,204,1,225,88,180,190,171,217,85,66,1,215,46,2,48,29,6,3,85,29,14,4,22,4,20,226,233,20,208,86,37,234,182,13,117,75,106,135,34,157,158,186,63,108,41,48,31,6,3,85,29,17,4,24,48,22,130,20,97,112,105,46,114,101,100,115,116,111,110,101,46,102,105,110,97,110,99,101,48,19,6,3,85,29,32,4,12,48,10,48,8,6,6,103,129,12,1,2,1,48,14,6,3,85,29,15,1,1,255,4,4,3,2,5,160,48,29,6,3,85,29,37,4,22,48,20,6,8,43,6,1,5,5,7,3,1,6,8,43,6,1,5,5,7,3,2,48,59,6,3,85,29,31,4,52,48,50,48,48,160,46,160,44,134,42,104,116,116,112,58,47,47,99,114,108,46,114,50,109,48,51,46,97,109,97,122,111,110,116,114,117,115,116,46,99,111,109,47,114,50,109,48,51,46,99,114,108,48,117,6,8,43,6,1,5,5,7,1,1,4,105,48,103,48,45,6,8,43,6,1,5,5,7,48,1,134,33,104,116,116,112,58,47,47,111,99,115,112,46,114,50,109,48,51,46,97,109,97,122,111,110,116,114,117,115,116,46,99,111,109,48,54,6,8,43,6,1,5,5,7,48,2,134,42,104,116,116,112,58,47,47,99,114,116,46,114,50,109,48,51,46,97,109,97,122,111,110,116,114,117,115,116,46,99,111,109,47,114,50,109,48,51,46,99,101,114,48,12,6,3,85,29,19,1,1,255,4,2,48,0,48,130,1,127,6,10,43,6,1,4,1,214,121,2,4,2,4,130,1,111,4,130,1,107,1,105,0,119,0,18,241,78,52,189,83,114,76,132,6,25,195,143,63,122,19,248,231,181,98,135,136,156,109,48,5,132,235,229,134,38,58,0,0,1,146,76,10,66,44,0,0,4,3,0,72,48,70,2,33,0,188,31,206,192,244,209,84,114,76,212,60,55,248,192,131,254,101,52,68,170,203,181,10,71,162,82,13,205,208,66,223,240,2,33,0,189,99,58,192,167,64,167,140,28,193,102,230,121,47,1,194,35,168,142,228,36,155,246,131,112,255,182,133,195,44,75,137,0,117,0,125,89,30,18,225,120,42,123,28,97,103,124,94,253,248,208,135,92,20,160,78,149,158,185,3,47,217,14,140,46,121,184,0,0,1,146,76,10,66,104,0,0,4,3,0,70,48,68,2,32,33,120,184,217,224,185,87,25,24,199,126,155,60,122,154,140,243,104,180,160,163,63,58,42,73,245,164,196,173,158,206,106,2,32,58,40,28,13,161,86,119,60,127,212,88,76,70,199,116,184,243,178,40,9,42,208,132,88,161,125,192,107,35,224,183,103,0,119,0,230,210,49,99,64,119,140,193,16,65,6,215,113,185,206,193,210,64,246,150,132,134,251,186,135,50,29,253,30,55,142,80,0,0,1,146,76,10,66,119,0,0,4,3,0,72,48,70,2,33,0,185,139,17,185,96,221,19,140,174,53,73,255,167,248,182,238,155,248,39,19,235,20,103,15,38,249,87,70,252,139,98,127,2,33,0,178,79,29,195,13,231,34,169,126,52,92,244,56,212,139,125,248,33,223,118,225,24,56,23,235,188,250,83,10,127,225,68,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,72,5,177,34,116,20,169,59,38,28,153,181,244,184,53,237,3,230,7,196,237,241,42,156,80,43,125,66,66,84,175,58,220,184,204,227,10,213,205,154,141,134,196,46,5,248,78,133,209,151,78,212,53,246,39,9,94,194,143,207,252,150,224,173,45,78,234,119,80,3,210,153,37,151,80,217,35,36,189,126,101,129,169,67,79,31,102,124,120,241,165,10,225,182,18,36,181,39,107,220,126,21,219,77,146,40,71,195,221,215,82,251,44,158,193,246,162,9,247,125,11,107,78,125,124,226,220,114,133,128,223,130,170,105,87,229,5,122,6,105,131,140,207,183,254,26,69,238,246,224,204,142,194,28,104,17,2,160,234,190,19,114,237,146,87,229,0,185,134,98,56,227,209,68,113,138,154,105,41,132,125,208,126,183,191,26,178,42,44,70,246,220,234,158,156,230,17,92,134,16,209,220,152,160,34,122,166,39,48,108,49,84,244,165,145,52,66,19,48,119,15,140,229,234,94,145,86,2,101,213,12,245,158,98,93,116,54,205,4,61,42,72,220,7,161,215,18,232,239,8,223,208,164,82,165,70],[48,130,4,94,48,130,3,70,160,3,2,1,2,2,19,7,115,18,76,212,6,210,103,192,153,28,221,41,154,159,56,49,121,133,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,57,49,11,48,9,6,3,85,4,6,19,2,85,83,49,15,48,13,6,3,85,4,10,19,6,65,109,97,122,111,110,49,25,48,23,6,3,85,4,3,19,16,65,109,97,122,111,110,32,82,111,111,116,32,67,65,32,49,48,30,23,13,50,50,48,56,50,51,50,50,50,54,48,52,90,23,13,51,48,48,56,50,51,50,50,50,54,48,52,90,48,60,49,11,48,9,6,3,85,4,6,19,2,85,83,49,15,48,13,6,3,85,4,10,19,6,65,109,97,122,111,110,49,28,48,26,6,3,85,4,3,19,19,65,109,97,122,111,110,32,82,83,65,32,50,48,52,56,32,77,48,51,48,130,1,34,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,130,1,15,0,48,130,1,10,2,130,1,1,0,183,127,165,89,40,242,251,140,227,190,83,127,142,71,87,112,91,10,95,193,244,156,188,244,109,66,70,65,99,112,246,52,233,96,61,149,47,187,117,102,212,3,177,173,89,66,168,146,202,250,246,18,140,193,195,44,54,156,101,195,182,247,141,229,197,131,16,116,247,249,230,106,87,0,90,217,203,204,95,139,104,50,132,3,144,208,154,242,179,186,29,103,124,135,234,18,34,130,65,41,151,94,29,61,94,207,157,59,183,38,230,166,218,47,104,97,52,144,146,1,232,220,139,7,47,56,88,5,54,1,12,71,141,176,155,162,136,20,123,16,91,111,35,132,15,181,187,243,52,167,167,213,193,23,174,18,6,95,45,247,113,243,99,241,208,178,92,147,121,82,79,113,1,252,151,219,118,199,78,207,60,224,229,137,24,213,215,238,169,255,50,229,245,30,103,176,179,89,118,211,142,232,240,95,244,232,190,103,150,40,13,250,84,176,179,239,150,179,91,171,67,54,224,231,235,161,78,164,0,217,103,218,38,85,161,122,6,163,73,136,179,21,151,163,247,253,205,14,137,67,2,233,158,78,124,167,2,3,1,0,1,163,130,1,90,48,130,1,86,48,18,6,3,85,29,19,1,1,255,4,8,48,6,1,1,255,2,1,0,48,14,6,3,85,29,15,1,1,255,4,4,3,2,1,134,48,29,6,3,85,29,37,4,22,48,20,6,8,43,6,1,5,5,7,3,1,6,8,43,6,1,5,5,7,3,2,48,29,6,3,85,29,14,4,22,4,20,85,217,24,95,210,28,204,1,225,88,180,190,171,217,85,66,1,215,46,2,48,31,6,3,85,29,35,4,24,48,22,128,20,132,24,204,133,52,236,188,12,148,148,46,8,89,156,199,178,16,78,10,8,48,123,6,8,43,6,1,5,5,7,1,1,4,111,48,109,48,47,6,8,43,6,1,5,5,7,48,1,134,35,104,116,116,112,58,47,47,111,99,115,112,46,114,111,111,116,99,97,49,46,97,109,97,122,111,110,116,114,117,115,116,46,99,111,109,48,58,6,8,43,6,1,5,5,7,48,2,134,46,104,116,116,112,58,47,47,99,114,116,46,114,111,111,116,99,97,49,46,97,109,97,122,111,110,116,114,117,115,116,46,99,111,109,47,114,111,111,116,99,97,49,46,99,101,114,48,63,6,3,85,29,31,4,56,48,54,48,52,160,50,160,48,134,46,104,116,116,112,58,47,47,99,114,108,46,114,111,111,116,99,97,49,46,97,109,97,122,111,110,116,114,117,115,116,46,99,111,109,47,114,111,111,116,99,97,49,46,99,114,108,48,19,6,3,85,29,32,4,12,48,10,48,8,6,6,103,129,12,1,2,1,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,6,141,229,166,217,192,190,223,61,140,205,32,167,181,238,58,255,178,89,190,61,226,65,144,216,236,75,206,12,215,89,23,141,103,239,82,235,147,217,27,124,220,30,172,173,29,84,220,214,223,165,158,126,190,227,237,148,176,5,88,57,209,110,90,203,174,99,53,35,123,225,52,208,87,92,173,225,105,210,109,91,205,232,169,76,179,88,98,200,230,93,160,114,172,40,53,118,80,99,113,109,218,1,96,36,13,107,97,152,23,193,80,33,98,238,128,218,119,229,164,142,164,204,186,112,89,114,152,84,40,152,138,231,57,1,240,43,89,239,85,142,42,196,52,137,49,79,224,52,156,245,236,63,0,172,243,119,158,9,242,103,100,240,122,146,116,184,18,13,207,113,185,181,237,171,116,85,5,226,46,24,220,22,251,21,73,71,13,137,184,187,198,136,68,106,100,217,154,95,94,108,90,163,25,219,32,22,81,188,98,207,73,75,143,194,124,40,80,227,44,39,200,226,172,142,111,179,103,111,114,19,219,236,203,72,214,185,94,139,77,159,218,43,199,218,252,100,140,50,229,181,42,94,217,248,130],[48,130,4,146,48,130,3,122,160,3,2,1,2,2,19,6,127,148,74,42,39,205,243,250,194,174,43,1,249,8,238,185,196,198,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,129,152,49,11,48,9,6,3,85,4,6,19,2,85,83,49,16,48,14,6,3,85,4,8,19,7,65,114,105,122,111,110,97,49,19,48,17,6,3,85,4,7,19,10,83,99,111,116,116,115,100,97,108,101,49,37,48,35,6,3,85,4,10,19,28,83,116,97,114,102,105,101,108,100,32,84,101,99,104,110,111,108,111,103,105,101,115,44,32,73,110,99,46,49,59,48,57,6,3,85,4,3,19,50,83,116,97,114,102,105,101,108,100,32,83,101,114,118,105,99,101,115,32,82,111,111,116,32,67,101,114,116,105,102,105,99,97,116,101,32,65,117,116,104,111,114,105,116,121,32,45,32,71,50,48,30,23,13,49,53,48,53,50,53,49,50,48,48,48,48,90,23,13,51,55,49,50,51,49,48,49,48,48,48,48,90,48,57,49,11,48,9,6,3,85,4,6,19,2,85,83,49,15,48,13,6,3,85,4,10,19,6,65,109,97,122,111,110,49,25,48,23,6,3,85,4,3,19,16,65,109,97,122,111,110,32,82,111,111,116,32,67,65,32,49,48,130,1,34,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,130,1,15,0,48,130,1,10,2,130,1,1,0,178,120,128,113,202,120,213,227,113,175,71,128,80,116,125,110,216,215,136,118,244,153,104,247,88,33,96,249,116,132,1,47,172,2,45,134,211,160,67,122,78,178,164,208,54,186,1,190,141,219,72,200,7,23,54,76,244,238,136,35,199,62,235,55,245,181,25,248,73,104,176,222,215,185,118,56,29,97,158,164,254,130,54,165,229,74,86,228,69,225,249,253,180,22,250,116,218,156,155,53,57,47,250,176,32,80,6,108,122,208,128,178,166,249,175,236,71,25,143,80,56,7,220,162,135,57,88,248,186,213,169,249,72,103,48,150,238,148,120,94,111,137,163,81,192,48,134,102,161,69,102,186,84,235,163,195,145,249,72,220,255,209,232,48,45,125,45,116,112,53,215,136,36,247,158,196,89,110,187,115,135,23,242,50,70,40,184,67,250,183,29,170,202,180,242,159,36,14,45,75,247,113,92,94,105,255,234,149,2,203,56,138,174,80,56,111,219,251,45,98,27,197,199,30,84,225,119,224,103,200,15,156,135,35,214,63,64,32,127,32,128,196,128,76,62,59,36,38,142,4,174,108,154,200,170,13,2,3,1,0,1,163,130,1,49,48,130,1,45,48,15,6,3,85,29,19,1,1,255,4,5,48,3,1,1,255,48,14,6,3,85,29,15,1,1,255,4,4,3,2,1,134,48,29,6,3,85,29,14,4,22,4,20,132,24,204,133,52,236,188,12,148,148,46,8,89,156,199,178,16,78,10,8,48,31,6,3,85,29,35,4,24,48,22,128,20,156,95,0,223,170,1,215,48,43,56,136,162,184,109,74,156,242,17,145,131,48,120,6,8,43,6,1,5,5,7,1,1,4,108,48,106,48,46,6,8,43,6,1,5,5,7,48,1,134,34,104,116,116,112,58,47,47,111,99,115,112,46,114,111,111,116,103,50,46,97,109,97,122,111,110,116,114,117,115,116,46,99,111,109,48,56,6,8,43,6,1,5,5,7,48,2,134,44,104,116,116,112,58,47,47,99,114,116,46,114,111,111,116,103,50,46,97,109,97,122,111,110,116,114,117,115,116,46,99,111,109,47,114,111,111,116,103,50,46,99,101,114,48,61,6,3,85,29,31,4,54,48,52,48,50,160,48,160,46,134,44,104,116,116,112,58,47,47,99,114,108,46,114,111,111,116,103,50,46,97,109,97,122,111,110,116,114,117,115,116,46,99,111,109,47,114,111,111,116,103,50,46,99,114,108,48,17,6,3,85,29,32,4,10,48,8,48,6,6,4,85,29,32,0,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,98,55,66,92,188,16,181,62,139,44,233,12,155,108,69,226,7,0,122,249,197,88,11,185,8,140,62,237,179,37,60,181,111,80,228,205,53,106,167,147,52,150,50,33,169,72,68,171,156,237,61,180,170,115,109,228,127,22,128,137,108,207,40,3,24,131,71,121,163,16,126,48,91,172,59,176,96,224,119,212,8,166,225,29,124,94,192,187,249,154,123,34,157,167,0,9,126,172,70,23,131,220,156,38,87,153,48,57,98,150,143,237,218,222,170,197,204,27,62,202,67,104,108,87,22,188,213,14,32,46,254,255,194,106,93,46,160,74,109,20,88,135,148,230,57,49,95,124,115,203,144,136,106,132,17,150,39,166,237,217,129,70,166,126,163,114,0,10,82,62,131,136,7,99,119,137,105,23,15,57,133,210,171,8,69,77,208,81,58,253,93,93,55,100,76,126,48,178,85,36,66,157,54,176,93,156,23,129,97,241,202,249,16,2,36,171,235,13,116,145,141,123,69,41,80,57,136,178,166,137,53,37,30,20,106,71,35,49,47,92,154,250,173,154,14,98,81,164,42,169,196,249,52,157,33,24]],"ocsp_response":[],"scts":null},"server_kx_details":{"kx_params":[3,0,23,65,4,237,224,205,138,147,9,198,37,205,123,167,143,150,90,54,241,219,73,6,184,22,124,239,25,235,230,241,133,94,203,34,31,34,28,95,85,228,220,99,32,25,143,236,186,58,198,70,99,149,194,128,140,3,222,89,104,17,160,63,99,45,67,242,123],"kx_sig":{"scheme":"RSA_PSS_SHA256","sig":[5,202,234,36,129,187,44,74,29,213,234,82,166,197,249,4,56,220,25,38,15,143,174,228,218,231,38,172,10,194,105,82,231,109,166,196,29,156,118,223,45,231,31,70,178,114,146,105,172,23,245,17,5,8,158,122,95,35,66,30,255,208,2,185,156,0,247,229,246,41,195,53,226,122,111,62,199,154,43,210,231,211,45,42,32,229,34,75,216,109,85,11,125,157,136,176,11,217,60,153,162,179,62,150,25,85,123,145,56,155,239,60,85,79,235,89,17,237,3,58,255,6,198,247,58,173,104,185,144,129,53,67,72,223,253,193,37,81,225,88,193,31,118,196,236,229,138,63,141,182,227,168,59,94,57,142,22,130,208,122,202,245,216,131,7,138,213,99,108,159,223,2,78,183,65,119,9,112,0,159,138,142,96,22,12,217,169,231,201,230,106,7,53,197,5,194,96,203,95,202,34,228,132,158,216,33,78,113,184,132,96,65,180,90,51,19,46,74,43,143,154,203,241,191,219,100,255,130,239,153,253,137,24,50,246,143,176,88,94,98,83,179,132,184,245,152,215,146,1,70,40,37,53,75,189,73]}},"client_random":[28,145,18,154,194,213,20,15,148,249,158,100,113,88,255,232,238,208,109,117,114,133,218,21,0,221,144,15,23,179,160,172],"server_random":[160,226,170,231,248,200,49,43,125,208,31,91,135,18,61,247,145,198,154,1,170,206,63,187,68,79,87,78,71,82,68,1]}}}},"substrings":{"openings":{"1":[{"kind":"Blake3","ranges":[{"start":0,"end":1913}],"direction":"Received"},{"Blake3":{"data":[72,84,84,80,47,49,46,49,32,50,48,48,32,79,75,13,10,83,101,114,118,101,114,58,32,67,108,111,117,100,70,114,111,110,116,13,10,67,111,110,116,101,110,116,45,84,121,112,101,58,32,97,112,112,108,105,99,97,116,105,111,110,47,106,115,111,110,59,32,99,104,97,114,115,101,116,61,117,116,102,45,56,13,10,67,111,110,116,101,110,116,45,76,101,110,103,116,104,58,32,49,51,57,53,13,10,67,111,110,110,101,99,116,105,111,110,58,32,99,108,111,115,101,13,10,68,97,116,101,58,32,84,104,117,44,32,48,57,32,74,97,110,32,50,48,50,53,32,49,53,58,48,51,58,48,49,32,71,77,84,13,10,69,116,97,103,58,32,87,47,34,53,55,51,45,118,119,110,82,72,78,51,72,43,88,77,57,81,85,68,98,113,65,121,111,108,43,84,56,112,111,73,34,13,10,88,45,80,111,119,101,114,101,100,45,66,121,58,32,69,120,112,114,101,115,115,13,10,65,112,105,103,119,45,82,101,113,117,101,115,116,105,100,58,32,69,73,67,57,51,106,120,74,68,111,69,69,74,50,81,61,13,10,86,97,114,121,58,32,65,99,99,101,112,116,45,69,110,99,111,100,105,110,103,13,10,86,105,97,58,32,49,46,49,32,51,52,97,57,53,102,102,54,54,50,57,100,100,48,102,52,54,50,51,50,53,98,99,97,54,97,101,55,48,50,99,54,46,99,108,111,117,100,102,114,111,110,116,46,110,101,116,32,40,67,108,111,117,100,70,114,111,110,116,41,13,10,65,99,99,101,115,115,45,67,111,110,116,114,111,108,45,65,108,108,111,119,45,79,114,105,103,105,110,58,32,42,13,10,88,45,67,97,99,104,101,58,32,77,105,115,115,32,102,114,111,109,32,99,108,111,117,100,102,114,111,110,116,13,10,88,45,65,109,122,45,67,102,45,80,111,112,58,32,83,69,65,57,48,48,45,80,54,13,10,88,45,65,109,122,45,67,102,45,73,100,58,32,85,55,80,54,106,50,97,109,83,78,107,88,49,109,115,102,53,74,81,85,48,65,74,51,85,72,101,54,76,66,85,110,119,103,104,84,45,57,45,83,100,111,108,74,114,90,108,112,98,49,72,116,86,81,61,61,13,10,13,10,91,123,34,105,100,34,58,34,101,100,99,52,51,52,101,57,45,98,53,99,98,45,52,51,99,55,45,57,52,48,53,45,53,99,101,55,55,48,57,51,56,98,55,102,34,44,34,115,121,109,98,111,108,34,58,34,88,82,80,34,44,34,112,114,111,118,105,100,101,114,34,58,34,73,45,53,114,87,85,101,104,69,118,45,77,106,100,75,57,103,70,119,48,57,82,120,102,83,76,81,88,57,68,73,72,120,71,54,49,52,87,102,56,113,111,48,34,44,34,118,97,108,117,101,34,58,50,46,50,54,55,49,53,53,56,53,49,53,44,34,108,105,116,101,69,118,109,83,105,103,110,97,116,117,114,101,34,58,34,55,55,43,57,72,51,114,118,118,55,51,118,118,55,51,118,118,55,51,84,106,51,100,118,98,84,102,118,118,55,51,118,118,55,49,101,98,49,57,99,98,101,43,47,118,88,86,112,55,55,43,57,71,50,47,118,118,55,51,118,118,55,51,102,116,117,43,47,118,101,43,47,118,101,43,47,118,101,43,47,118,88,51,118,118,55,51,118,118,55,51,118,118,55,48,55,55,55,43,57,87,117,43,47,118,101,43,47,118,88,112,122,55,55,43,57,55,55,43,57,99,48,48,55,99,101,43,47,118,101,43,47,118,101,101,116,116,78,101,110,101,72,102,118,118,55,48,102,97,101,43,47,118,86,51,118,118,55,49,102,100,43,43,47,118,101,43,47,118,101,43,47,118,101,43,47,118,82,57,122,88,101,43,47,118,88,78,71,55,55,43,57,101,43,43,47,118,101,43,47,118,88,116,72,101,51,110,118,118,55,48,97,55,55,43,57,98,117,43,47,118,101,43,47,118,101,43,47,118,101,43,47,118,101,43,47,118,101,43,47,118,86,115,61,34,44,34,112,101,114,109,97,119,101,98,84,120,34,58,34,109,111,99,107,45,112,101,114,109,97,119,101,98,45,116,120,34,44,34,118,101,114,115,105,111,110,34,58,34,48,46,55,34,44,34,115,111,117,114,99,101,34,58,123,34,98,105,110,97,110,99,101,45,117,115,100,116,34,58,50,46,50,54,53,57,54,50,50,57,51,44,34,98,105,116,102,105,110,101,120,50,45,117,115,100,34,58,50,46,50,55,55,56,44,34,98,105,116,115,116,97,109,112,45,117,115,100,34,58,50,46,50,54,55,55,50,44,34,99,111,105,110,103,101,99,107,111,34,58,50,46,50,55,44,34,107,114,97,107,101,110,45,117,115,100,34,58,50,46,50,54,55,51,53,44,34,107,117,99,111,105,110,45,117,115,100,116,34,58,50,46,50,54,54,57,51,49,55,50,48,55,44,34,108,98,97,110,107,45,117,115,100,116,34,58,50,46,50,54,54,57,54,49,55,48,51,44,34,111,107,120,45,117,115,100,116,34,58,50,46,50,54,54,52,54,49,57,57,56,125,44,34,116,105,109,101,115,116,97,109,112,34,58,49,55,51,54,52,51,52,57,50,48,48,48,48,44,34,109,105,110,117,116,101,115,34,58,50,44,34,112,114,111,118,105,100,101,114,80,117,98,108,105,99,75,101,121,34,58,34,120,121,84,118,75,105,67,83,84,56,98,65,84,54,115,120,114,103,107,76,104,56,85,67,88,50,78,49,101,75,118,97,119,79,68,117,120,119,113,52,113,79,72,73,100,68,65,90,70,85,95,51,78,50,109,53,57,114,107,90,48,69,55,109,55,55,71,115,74,117,102,49,73,56,117,48,111,69,74,69,98,120,65,100,84,55,117,68,50,74,84,119,111,89,69,72,97,117,88,83,120,121,74,89,118,70,48,82,67,99,90,79,104,108,53,80,49,80,74,119,73,109,100,52,52,83,74,89,97,95,57,77,121,55,76,56,52,68,53,75,88,66,57,83,75,115,56,95,86,84,104,101,55,90,121,79,98,53,72,83,71,76,78,118,77,73,75,54,65,56,73,74,52,72,114,95,116,103,57,71,89,109,54,53,67,82,109,116,99,117,49,56,83,57,109,104,117,110,56,118,103,119,50,119,105,55,71,119,54,111,82,54,109,99,52,118,85,49,73,45,104,114,85,54,54,70,105,55,89,108,88,119,70,105,101,80,54,89,83,121,48,49,74,113,111,76,80,104,85,56,52,69,117,110,80,81,122,88,80,111,117,86,83,98,88,106,103,82,85,53,107,70,86,120,116,100,82,121,52,71,75,50,102,122,69,66,70,89,115,81,119,67,81,103,70,114,121,83,67,114,70,75,72,86,56,65,73,110,117,57,106,101,114,102,111,102,95,68,120,78,75,105,88,107,66,122,108,66,56,110,99,50,50,67,114,89,110,118,118,105,111,95,66,87,121,104,45,103,78,48,104,81,72,90,84,48,103,119,77,82,45,65,55,115,98,88,78,67,81,74,102,82,101,97,73,90,122,88,95,106,80,54,88,111,66,56,50,80,110,112,122,109,76,95,106,49,109,74,50,108,110,118,50,82,110,48,48,49,102,108,66,65,120,57,65,89,120,116,71,88,100,57,115,48,55,112,65,45,70,103,103,84,98,69,71,51,89,50,85,110,108,87,87,54,108,51,69,74,57,51,69,48,73,102,120,76,48,80,113,71,69,85,108,112,50,49,55,109,120,85,72,118,109,84,119,57,102,107,71,68,87,97,56,114,84,57,82,80,109,115,84,121,106,105,45,107,77,70,83,101,102,99,108,119,56,48,99,66,109,95,105,79,115,73,69,117,116,71,80,52,83,51,76,68,98,80,45,90,86,74,87,68,101,74,79,66,81,81,112,83,103,119,98,105,115,108,56,113,98,106,108,50,115,77,81,76,81,105,104,111,71,50,84,81,121,78,98,109,76,119,102,121,113,45,88,83,85,76,107,88,106,85,105,49,95,54,66,72,51,54,119,110,68,66,76,87,66,75,70,45,98,83,50,98,76,75,99,71,116,110,51,86,106,101,116,55,50,108,78,72,120,74,74,105,108,99,106,56,118,112,97,117,119,74,71,48,48,55,56,83,95,108,79,53,117,71,116,54,111,105,99,100,71,82,54,101,104,95,78,83,110,54,95,56,122,97,95,116,88,103,48,71,95,102,111,104,122,52,89,98,49,122,56,34,125,93],"nonce":[192,158,226,248,50,225,116,40,62,67,173,180,29,91,170,34,54,6,153,106,189,43,97,185,65,66,186,158,143,3,232,168]}}],"0":[{"kind":"Blake3","ranges":[{"start":0,"end":201}],"direction":"Sent"},{"Blake3":{"data":[71,69,84,32,104,116,116,112,115,58,47,47,97,112,105,46,114,101,100,115,116,111,110,101,46,102,105,110,97,110,99,101,47,112,114,105,99,101,115,63,115,121,109,98,111,108,61,88,82,80,38,112,114,111,118,105,100,101,114,61,114,101,100,115,116,111,110,101,38,108,105,109,105,116,61,49,32,72,84,84,80,47,49,46,49,13,10,104,111,115,116,58,32,97,112,105,46,114,101,100,115,116,111,110,101,46,102,105,110,97,110,99,101,13,10,97,99,99,101,112,116,58,32,42,47,42,13,10,99,97,99,104,101,45,99,111,110,116,114,111,108,58,32,110,111,45,99,97,99,104,101,13,10,99,111,110,110,101,99,116,105,111,110,58,32,99,108,111,115,101,13,10,97,99,99,101,112,116,45,101,110,99,111,100,105,110,103,58,32,105,100,101,110,116,105,116,121,13,10,13,10],"nonce":[73,99,145,54,121,167,219,94,136,36,43,29,226,146,146,92,209,72,13,93,191,43,176,193,210,29,87,241,197,214,188,68]}}]},"inclusion_proof":{"proof":[],"total_leaves":2}}} ``` # Implementations Source: https://docs.verity.usher.so/tech/implementations Verity offers the framework and platform for creating pipelines, and guides developers to implement using standards. However, developers retain full control over their own implementation. ## Primary Implementation Verity is designed for compatibility with any blockchain. The general-purpose Verifier within the protocol ensures this, however, the choice between VDPEs is left to the Developer to determine how best to adopt and implement data pipelines that serve the best outcomes for their use case. ![Verity Primary Implementation Architecture](https://mintlify.s3.us-west-1.amazonaws.com/usherlabs/images/verity-zktls-full-flow-explained.jpg) ### Off Destination The "Off Destination" implementation is the most common use case for Verity. It involves abstracting as much data processing and orchestration of the verifiable data pipeline off of the destination blockchain as possible. This is ideal for destination blockchains that: 1. Are expensive to compute on, such as Ethereum. 2. Are restricted with respect to their transaction size limits, making them limited with respect to the amount of data they can process. 3. Involve Smart Contract programming in languages that are not suited for data processing requirements, such as Solidity. ### On Destination The "On Destination" implementation is a secondary approach for implementing Verity. Here, the Verity Verifier is utilised specifically to ensure cryptographic compatibility with the destination blockchain. However, all subsequent data processing is performed on the destination blockchain. Some Move-based Blockchains such as [Rooch Network](https://rooch.network/) have proven to be capable of parsing and processing JSON data, for example. ## Tailored Alternative Implementations ### Sovereign Blockchain Extension Verity's Verifier serves as the coordination and verification layer of the network. While the Verifier will be deployed for general-purpose use, Verity is designed to empower sovereign blockchains with enhanced capabilities for verifying real-world data. Verifier Sidecars are created to extend blockchain nodes, effectively embedding their role into the base layer of a blockchain. ![Verity MPC TLS Proof Engine for Sovereign Blockchains](https://mintlify.s3.us-west-1.amazonaws.com/usherlabs/images/verity-mpc-tls-proof-engine-for-sovereign-blockchains.jpg) The first compatible decentralised networks will be based on CometBFT, such as [Kwil](https://kwil.com/). However, Usher Labs is prepared to collaborate with any blockchain team to enable this functionality as a first-class feature. ### Transparency and Observability for Data Analysis Cryptographically enforcing verification of real-world data directly within Blockchain Nodes and Smart Contracts may introduce additional considerations, such as upgrade requirements, migrations, and operator coordination. To alleviate these risks while adopting the value of transparent data, Verity can be leveraged preliminarily for the purpose of data & trust analysis. The network roles are maintained; however, instead of pushing transparency proofs to a trustless environment for verification, this metadata is forwarded to a centralised aggregator. Here, it is verified and used to analyse how data impacts the blockchain and where trust is established and maintained. This approach offers significant insights to blockchain developers, auditors, and communities, revealing the true source of data powering various protocols. It helps determine whether there is a need for diversification of data sources or if there are synergies with particular data providers that were previously unknown to the core team. Beyond analysing data and trust flow, this same pipeline enables observability over network operator health, uptime, and more. It indicates whether new updates pose risks to operators or if there are code-level optimisations that can be applied. # Introduction Source: https://docs.verity.usher.so/tech/introduction Dive into the technical details of Verity Verity 🧪 bridges the "real world" and blockchain, securing data pipelines with transparency and verifiable [data lineage](https://www.ibm.com/think/topics/data-lineage). Data lineage tracks the flow of data from its source through transformations to its destination, ensuring trust at every step. With Verity, sovereign blockchains and data-driven protocols can verify: 1. **Data Authenticity:** Guarantee data originates from trusted entities. 2. **Data Integrity:** Embed tamper-resistance to prevent unauthorised manipulation or inclusion of bad data. 3. **Data Transformation:** Facilitate trust-minimised transitions of data for compatibility with destination systems. By leveraging cryptography, Verity shifts trust from operators of data pipelines to the code and data sources themselves, eliminating reliance on operators for trustworthy outcomes. To explore the "why" behind Verity, read [Why Verity?](/purpose). ## A zkTLS-Driven Protocol Verity implements a zkTLS protocol, combining Zero-Knowledge (ZK) and Multi-Party Computation (MPC) cryptographic primitives. It operates as a decentralised network, with a Prover Node at its core, orchestrated via a developer-centric framework. The goal is to enable developers to create data pipelines that produce cryptographic Data Flow Proofs (DFPs) — cryptographically verifiable Proofs of Data Flow. "zkTLS" (or "MPC-TLS") cryptographically proves data authenticity for TLS-enabled sources (e.g., APIs). It ensures the data is tamper-resistant and accurately represents the source. ## Beyond Cryptographic Primitives Verity extends zkTLS concepts, covering the entire data journey from source to destination. Conceptually, it operates like a **zkRollup for TLS attestations and private data**, producing verifiable DFPs. Data Flow Proofs (DFPs) encapsulate the entire pipeline: 1. Sourcing data from trusted third-party APIs. 2. Combining third-party data with private first-party inputs. 3. Processing and aggregating data securely. 4. Generating verifiable outputs for downstream systems. This paradigm maximises user trust in outcomes while mitigating risks inherent in sourcing and processing "real-world" data. Verity supports sensitive, niche, or custom data across systems and APIs outside blockchains. By offering verifiable and privacy-preserving transparency, Verity ensures developers can privately authenticate on-chain outcomes dependent on off-chain [data lineage](https://www.ibm.com/think/topics/data-lineage). # Proof of Data Flow Source: https://docs.verity.usher.so/tech/proof-of-data-flow To grasp the scope of Verity, it's important to understand each of stage of a provable data flow. Verity embeds a protocol of cryptographically enforced conditions that govern the proofs associated with data as it flows from source to destination. Developers can extend this protocol to suit their use cases, designing custom data pipelines that impose their own cryptographic guarantees over data integrity. Verity’s **Data Flow Proofs (DFPs)** are composed of recursive sub-proofs, each layer corresponding to a specific stage of the data pipeline. The base protocol abstracts proof generation and management mechanics, allowing developers to focus on defining data-specific protocols. ### 1. Data Sourcing Data sourcing involves obtaining third-party data from TLS-enabled endpoints, to combine with first-party data. Third-party data sources include: 1. Government APIs 2. Financial APIs 3. Weather APIs 4. Social media APIs First-party data sources include: 1. Private user data 2. Systems data 3. Custom data #### TLS Proof Generation Verity generates TLS proofs for data sourced from these endpoints, allowing developers to aggregate proofs across multiple requests into a single, cryptographically verifiable proof. Verity leverages a fork of **TLSNotary**, an MPC-TLS implementation supported by Ethereum's Privacy and Scaling Explorations (PSE). [See examples of TLS proofs.](/tech/example-tls-proofs) ### 2. Data Processing At this stage, data is processed and/or transformed into a format compatible with the destination system. This transformation must be verifiable to ensure the integrity of the applied logic. * Aggregation examples include computing median or mean values, as seen in Decentralised Oracle Networks. * Computational logic must be provably adhered to using a **Verifiable Data Processing Environment (VDPE).** #### TLS Proof Aggregation The Prover orchestrates the aggregation of TLS proofs within a VDPE, ensuring verifiability of transformations. A VDPE can be: * zkVM: For privacy-preserving computation. * Replicated Compute Platform (e.g., Internet Computer): For faster processing with simpler proofs (e.g., tECDSA). Verity natively supports the following platforms for verifiable data processing: * RiscZero zkVM (default ZK VDPE). * Internet Computer (replicated compute VDPE). #### zkTLS Flow & Optimisation In Verity, "zkTLS" refers to a data flow where a zkVM-based VDPE is used to aggregate and process MPC-TLS proofs. Essentially, zkTLS represents TLS data flow through ZK compute. Therefore, Verity uses **zkTLS proofs** and **Data Flow Proofs (DFPs)** interchangeably. To enhance zkTLS, Verity offloads pre-computation to replicated compute platforms, significantly reducing zkVM proving times from hours to minutes. ### 3. Output The output is a succinct, verifiable value ready for delivery to the destination system, typically a Smart Contract. #### zkSNARK or tECDSA Proof * **zkSNARK:** Ensures privacy, recommended for private TLS data. * **tECDSA:** Efficient, suitable for public TLS data. The choice of proof format ensures compatibility with nearly all programmable blockchains. ### 4. Proof & Data Delivery Verity equips developers with tools for orchestrating proof generation, aggregation, and delivery. The delivery mechanism, often referred to as the **Orchestrator**, manages: 1. Proof generation timing (e.g., accounting for blockchain re-orgs). 2. Data authentication. 3. Follow-on actions upon proof delivery. **Example:** A zkVM-based Verity pipeline might wait for a predetermined period post-blockchain event detection before generating and delivering the ZK-DFP to mitigate risks in blockchain re-orgs. #### Oracle Integrations Usher Labs collaborates with **Decentralised Oracle Networks (DONs)** and **Data Delivery Networks (DDNs)** to integrate zkTLS proofs into blockchain systems. These partnerships simplify the delivery of private data on-chain while preserving security. [Learn more about integrations.](/build/oracles) ### Recursion A unique aspect of Verity’s protocol is its recursive compatibility. A proof from one data pipeline can serve as an input for another, enabling layered pipelines with independently verifiable stages. While this feature is currently experimental, it demonstrates Verity’s potential to scale trust across complex data systems. # Protocol Source: https://docs.verity.usher.so/tech/protocol Verity's protocol is a sequence of specific steps between the network of nodes, resulting in proof of data flows. The following sequence diagram illustrates the interaction between each role in the Verity Protocol: ![Verity Protocol Core Sequence Diagram](https://mintlify.s3.us-west-1.amazonaws.com/usherlabs/images/verity-protocol-core-sequence-diagram.svg) ## Notary Participation The following sequence diagram highlights the interactions necessary for the Notary to participate as a verified entity in the Verity Protocol: ![Verity Protocol Notary Participation Sequence Diagram](https://mintlify.s3.us-west-1.amazonaws.com/usherlabs/images/verity-protocol-notary-participation-sequence-diagram.svg) **For Provers, the Verifier state is the only source of truth.** # Use Cases Source: https://docs.verity.usher.so/use-cases Verity powers innovative applications through partnerships with leading networks and platforms. ## Truflation / Truf Network Truf Network Logo **A decentralised economic database enabling next-generation markets with real-world data.** Verity integrates with Truflation's Truf Connect SDK, empowering data providers to cryptographically prove the authenticity of data sourced for the network - enabling verifiable integrations from virtually any source. ![Usher Labs' Verity - Preflect Orchestrator](https://mintlify.s3.us-west-1.amazonaws.com/usherlabs/images/truflation-prefect-ingestions.png) Explore the [Truf Network Whitepaper](https://whitepaper.truflation.com/tsn/data-providers) to understand the role of data providers and the benefits. ## ChainSight ChainSight Logo **A platform for building Oracles with custom embedded models over data sourced from anywhere.** Verity ensures Oracle developers achieve optional full verifiability, making data sent to foreign chains tamper-resistant and accurate reflections of data in the real world. ## Rooch Network Rooch Network Logo **A Bitcoin + Move Layer 2 enabling on-chain SocialFi and AI dynamics through proof of data sources.** Verity powers Rooch's SocialFi and AI features, embedding a request/response HTTPS client directly in the Move Programming Environment. Developers get a guarantee that data sourced via Rooch's Oracle marketplace are authentic and accurate. [Discover the integration](https://github.com/rooch-network/rooch/blob/main/examples/verity_oracle_example/Readme.md) for Move-based on-chain verified data. ## Internet Computer Internet Computer Logo **Cost-efficient asset data integration with Verity.** The Internet Computer Asset Data Canister (IC-ADC) enhances cost efficiency over the native Exchange Rate Canister, using Verity for secure data sourcing while delegating proof indexing and verification to the IC. [View the IC-ADC explorer](https://go.usher.so/ic-adc) or learn more about the integration in the [GitHub repository](https://github.com/usherlabs/ic-adc). ## Bitte AI Bitte AI Logo **An AI-enabled cross-chain wallet that converts intents into blockchain transactions.** Verity supports Bitte AI's Proof-of-Concept SocialFi application, X NFTs — unique 1-of-1 NFTs representing individual X Posts (Tweets). A zkProof is generated for each NFT which encapsulates verification that data is sourced from X (Twitter), that public metrics are accurate, and that no new X NFT can be minted for the same X Post (Tweet). Explore the integration in our [GitHub repository](https://github.com/usherlabs/x-twitter-nfts). # Welcome Source: https://docs.verity.usher.so/welcome The home for developers and cryptographic experts exploring secure data integration with blockchains. Verity 🧪 enables secure and **verifiable data pipelines** between traditional systems and blockchains, allowing private or restricted data to seamlessly connect with blockchain ecosystems. ## What Verity Does * **Proves data authenticity** by verifying its origin from trusted APIs. * **Integrates private data** securely with reliable external sources. * **Ensures integrity** throughout the data processing pipeline. ![Usher Labs' Verity - Simple](https://mintlify.s3.us-west-1.amazonaws.com/usherlabs/images/verity-simplified-diagram.jpg) ## Why Verity? 1. **Server-side architecture:** Built for business-centric applications and processes. 2. **High-performance proofs:** Achieves concurrent proof generation with TLS proving times averaging 3 seconds. 3. **zkTLS compatibility:** Produces proofs verifiable within any on-chain environment. 4. **Privacy-preserving:** Maintains data confidentiality while enabling verifiable processing. 5. **Analysis:** Verity's proofs are portable, offering analysis of data lineage and integrity even where data sourcing is private and/or decentralised.\ Review the Verity Explorer, or create your own: [Verity Explorer](https://go.usher.so/ic-adc). ## Developer-Centric by Design * **Rust-based SDKs and libraries** to accelerate integration. * **Supported by Usher Labs’ expert team**, ready to assist with tailored solutions. Verity simplifies data verification, keeping it private and blockchain-ready. [Usher Labs](https://usher.so/) offers managed infrastructure capable of scaling TLS proof generation by 1000x — empowering developers with streamlined integration and unparalleled scalability. Join us on Discord to learn more. ## Demonstrations