Clique Client SDK

This section primarily focuses on integrating the off-chain component of your application with the Clique co-processor. For on-chain integration, refer toSmart Contract SDK

The Clique Client SDK is an open-source library that enables users to interact with the Clique Network. We currently support Rust, NodeJS, and Web.

The SDK facilitates communication between your application clients and the Clique Network. Custom client implementation is also possible. The flowchart below depicts a simple communication process.

The client SDK executes two primary steps that are outlined in subsequent sections:

  1. Forward the query and poll results from the network: Clique Query

  2. Verify the proof upon receiving the response

Proof Verification

The verification process is automatically handled if you're using the Clique Client SDK.

The proofs of each task are aggregated in an aggregation program that runs in our TEE kernel. Roughly, each executor provides a proof (eg. TEE attestation or trusted signatures) for their respective programs. The kernel then aggregates these proofs in its own TEE and produces a remote attestation of the execution results.

To fully understand the verification process, please refer to the official Intel SGX Remote Attestation Docs here.

Rust SDK

How to Use

Add this dependency to your Cargo.toml

Here is an example:

NodeJS SDK

How to Use

Add this dependency to your package.json:

Here is an example:

Web SDK

Add this dependency to your package.json:

Here is an example:

Last updated