# Example
Source: https://nexaid.hashkey.com/docs/build/dapp-integration/example
This part will help you understand the fundamental steps to integrate NexaID Network-JS-SDK and complete a basic data verification process through your application.
### Prerequisites
Before you begin, ensure you have the following:
* A valid Template ID (obtainable from the [NexaID Developer Hub](https://nexaid.hashkey.com/))
* The SDK installed. (see [Installation Guide](/build/dapp-integration/installation)
for instructions)
### Key Features
#### **1. SDK Initialization**
Connect to specified blockchain networks.
Function Name: `init`
##### **Parameter Description**:
| Parameter Name | Type | Required | Description |
| -------------- | ---------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `provider` | `Provider` | Yes | Web3 provider, can be:
- An instance of `ethers.providers.JsonRpcProvider`
- An instance of `ethers.providers.Web3Provider`
- An instance of `ethers.providers.JsonRpcSigner` |
| `chainId` | `number` | Yes | The blockchain network ID to connect to. Must be one of [the supported chain IDs](/build/dapp-integration/example#6-list-of-supported-chains) |
#### **2. Task Submission**
Submit tasks to require an attestation from the network.
Function Name: `submitTask`
##### **Parameter Description**:
| Parameter Name | Type | Required | Description |
| -------------- | -------- | -------- | ------------ |
| `templateId` | `string` | Yes | Template ID |
| `address` | `string` | Yes | User address |
#### **3. Attestation Execution**
Execute the zkTLS protocol with the network attestor node, and return an attestation issued by the attestor node.
Function Name: `attest`
##### **Parameter Description**:
| Parameter Name | Type | Required | Description |
| ---------------- | ---------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `templateId` | `string` | Yes | Template ID |
| `address` | `string` | Yes | User address |
| `taskId` | `string` | Yes | Task ID |
| `taskTxHash` | `string` | Yes | Task transaction hash |
| `taskAttestors` | `string[]` | Yes | Array of attestor IDs |
| `additionParams` | `string` | No | Extended parameters in JSON format. Developers can include custom business parameters (e.g., user IDs, session info),These parameters will be returned with the final results `const additionParams = JSON.stringify({ YOUR_CUSTOM_KEY: "YOUR_CUSTOM_VALUE" })` |
| `attMode` | `string` | No | proxytls or mpctls,default is proxytls. you can refer to [Overview](/nexaid/overview-of-zktls)
section for more details. |
| `attConditions` | `Array` | No | By default, the zkTLS SDK returns plaintext verification results. You can also define verification logics for hashed results or condition-based results. Example hashed result: `const attConditions = [[{ field: "YOUR_CUSTOM_DATA_FIELD", op: "SHA256" }]]`. Example condition result: `const attConditions = [[{ field: "YOUR_CUSTOM_DATA_FIELD", op: ">", value: "YOUR_CUSTOM_TARGET_DATA_VALUE" }]]`. For the full explanation, see [zkTLS Operations](/build/zktls-operations). |
#### **4. Verify & Poll Task Result**
Verify and poll task results. The function is additionally provided for any use case that requires to double check the validity of a created attestation through NexaID contracts.
Function Name: `verifyAndPollTaskResult`
##### **Parameter Description**:
| Parameter Name | Type | Required | Description |
| -------------- | -------- | -------- | ----------------------------------------------------------- |
| `taskId` | `string` | Yes | The ID of the task to poll |
| `reportTxHash` | `string` | No | Report transaction hash (optional) |
| `intervalMs` | `number` | No | Polling interval in milliseconds, default is 2000 |
| `timeoutMs` | `number` | No | Total timeout duration in milliseconds, default is 1 minute |
#### **5. Balance Withdrawal**
Retrieve the fees for unsettled tasks.
Function Name: `withdrawBalance`
##### **Parameter Description**:
| Parameter Name | Type | Required | Description |
| -------------- | ------------- | -------- | --------------------------------------- |
| `tokenSymbol` | `TokenSymbol` | No | Token type to withdraw, default is ETH |
| `limit` | `number` | No | Withdrawal amount limit, default is 100 |
#### **6. List of Supported Chains**
Property Name:`supportedChainIds`
Currently supports **HashKey Chain Testnet**, additional chains will be added in upcoming releases.
### Using Attestations in zkVM
To retrieve a proof validated using hashed verification logic, you may use **getAllJsonResponse** to collect the associated HTTP response payloads. These two components — the attestation (***hashed data***) and the HTTP responses (***raw data***) — can then be jointly submitted to the zkVM for further computation and verification. For more details about hashed and condition-based logic, see [zkTLS Operations](/build/zktls-operations).
```javascript theme={null}
const attestParams = {
...submitTaskParams,
...submitTaskResult,
attConditions: [
[
{
field: "YOUR_FIELD_NAME",
op: "SHA256",
},
],
],
allJsonResponseFlag: "true", // optional, default is "false"
};
const attestResult = await nexaIDNetwork.attest(attestParams);
const allJsonResponse = await nexaIDNetwork.getAllJsonResponse(
attestResult[0].taskId
);
```
## Complete Example
```javascript theme={null}
import { NexaIDNetwork } from "@nexaid/network-js-sdk";
async function main() {
const provider = window.ethereum;
const nexaIDNetwork = new NexaIDNetwork();
console.log(nexaIDNetwork.supportedChainIds); // [133]
try {
// 1. Initialize
await nexaIDNetwork.init(provider, 133); // HashKey Chain Testnet
console.log("SDK initialized");
// 2. Submit task, set TemplateID and user address
const submitTaskParams = {
templateId: "YOUR_TEMPLATEID",
address: "YOUR_USER_ADDRESS",
};
const submitTaskResult = await nexaIDNetwork.submitTask(submitTaskParams);
console.log("Task submitted:", submitTaskResult);
// 3. Perform attestation
const attestParams = {
...submitTaskParams,
...submitTaskResult,
// extendedParams: JSON.stringify({ attUrlOptimization: true }),
// Optional: optimize the URL of attestation.
};
const attestResult = await nexaIDNetwork.attest(attestParams);
console.log("Attestation completed:", attestResult);
// 4. Verify and poll task result
const verifyAndPollTaskResultParams = {
taskId: attestResult[0].taskId,
reportTxHash: attestResult[0].reportTxHash,
};
const taskResult = await nexaIDNetwork.verifyAndPollTaskResult(
verifyAndPollTaskResultParams
);
console.log("Final result:", taskResult);
// Optional withdrawal
// const settledTaskIds = await nexaIDNetwork.withdrawBalance();
// console.log("Withdrawn:", settledTaskIds);
} catch (error) {
console.error("Main flow error:", error);
}
}
main();
```
### Understanding the Attestation Structure
When a successful data verification process is completed, you will receive an zkTLS attestation (proof) from the attestor.
For more information about the attestation structure, see the [section](/build/misc/attestation-structure)
.
### Error Codes
We have defined several error codes in the SDK. If an error occurs during the data verification process, you can refer to the [error code list](/build/misc/error-code)
for troubleshooting.
# Installation
Source: https://nexaid.hashkey.com/docs/build/dapp-integration/installation
## Installing the NexaID Network-JS-SDK
Welcome to the first step in integrating NexaID Network-JS-SDK into your project! This guide will walk you through the installation process and help you get started quickly.
### Prerequisites
Before you begin, make sure you have:
* Node.js (version 18 or later) installed on your system
* npm (usually comes with Node.js) or yarn as your package manager
### Installation Steps
#### 1. Install the SDK
Open your terminal and navigate to your project directory. Then run one of the following commands:
* Using npm:
```bash theme={null}
npm install --save @nexaid/network-js-sdk
```
* Using yarn:
```bash theme={null}
yarn add --save @nexaid/network-js-sdk
```
This command will download and install the NexaID Network SDK and its dependencies into your project.
#### 2. Verify Installation
To ensure the SDK was installed correctly, you can check your `package.json` file. You should see `@nexaid/network-js-sdk` listed in the `dependencies` section.
### Importing the SDK
After installation, you can import the SDK in your JavaScript or TypeScript files. Here's how:
```javascript theme={null}
import { NexaIDNetwork } from "@nexaid/network-js-sdk";
```
### Next Steps
Congratulations! You've successfully installed the NexaID Network SDK. Here's what you can do next:
**Quick Start**: Explore our [Example](/build/dapp-integration/example)
to quickly experience the project in action.
# Developer Hub
Source: https://nexaid.hashkey.com/docs/build/developer-hub
NexaID offers a [Dev Hub](https://nexaid.hashkey.com/)
where developers can easily configure verified internet data and utilize zkTLS capabilities across various application scenarios, such as executing zkTLS protocols in a web-based DApp and implicitly running zkTLS in a backend server.
As a developer, two main features you need to be involved with:
**1. Create Data Verification Templates**
We provide a streamlined process to help you quickly locate and identify the network requests required for data verification. This straightforward process enables seamless integration of verified data without the need to understand complex algorithm implementations or intricate system configurations.
By creating a **Data Verification Template** (“Template” for short), you can define the data source URL and the network request containing the verified data. The request URL is essential when initiating a zkTLS process.
You can create different templates to meet various application needs. When **integrating with web-based DApp**, you only need to configure the **template ID** (which can be flexibly replaced based on requirements) to complete the data verification process.
All templates you create are visible and usable only by you. However, you can also publish them to the **Templates Market** to support other developers.
**2. Create Projects**
We offer a developer-friendly integration approach that allows you to create **a unique pair of appID and appSecret** for each project. The appID and appSecret are used to manage and authenticate the project’s associated entities.
Please note that the appSecret is only visible once when you create the project.
We're excited to see what you'll build using our Developer Hub and the zkTLS SDK. If you need any help, feel free to contact us through our [Discord Community](https://discord.com/invite/pdrNxRrApX)
.
# DVC (Data Verification and Computation)
Source: https://nexaid.hashkey.com/docs/build/dvc
## Introduction
DVC (Data Verification and Computation) mode is a workflow where:
1. one uses zkTLS to verify the correctness and authenticity of HTTPS requests and responses by proving the encrypted TLS transcript directly, without executing any business logic itself.
2. one uses zkVM to consume and compute the verified private data for business logic execution.
The advantages of the DVC pattern are clear: user data privacy is strongly protected, while the value or insights derived from the data can be extracted and consumed through an external zkVM program. This separation keeps the workflow clean, modular, and easy to maintain. Moreover, the output of the zkVM programm, a.k.a., a zkSNARK proof, can be publicly verified through zk verifier contract on-chain.
## The Reference Implementation
Developers can refer to the reference implementation repository for a complete implementation guide.
## Comparison with Native zkTLS Operations
The [zkTLS Operations](/build/zktls-operations)
is another approah to process with private data, which also provide a certain type of computation in the zkTLS algorithm layer. However, The method of using zkTLS operations provides less public verifiability, since the output of a zkVM circuit, namely a SNARK proof, can be publicly verified on-chain.
# Main Functions
Source: https://nexaid.hashkey.com/docs/build/extension/main-functions
This guide walks you through the main functions of the NexaID Extension. All functions are listed on the left navigation bar in the extension.
### 1. Attestation
#### (1) Create attestation
The **attestation** function allows you to create verifiable proofs from various types of internet data. Currently supported options include:
* **Asset Verification**: Attest your asset balance, token holdings, or 30-day spot trading volume on an exchange.
* **Humanity Verification**: Attest your KYC completion status on an exchange or prove ownership of a social media account.
* **Social Connections**: Attest your follower count on social media platforms.
To start a verification, first connect your Web3 wallet. The connected wallet address will be used to generate your attestation and serve as your identity for Web3 projects that require verification.
This function leverages zkTLS techniques to ensure your data remains anonymous and up-to-date throughout the verification process.
A stable internet connection is required. If you encounter errors (e.g., network issues or data format problems), please reach out to us on our Discord channel for assistance.
#### (2) Submit proof on-chain
To allow web3 projects or dApps to verify your attestations, you need to submit them on-chain. The extension currently supports the following blockchains:
* Linea
* BNB Chain
* opBNB
* Arbitrum
* Scroll
Once submitted, a blockchain icon will appear in the bottom-right corner of your attestation card, indicating the network where it’s recorded.
Note: Each attestation can only be submitted to one blockchain network once.
### 4. Settings
Customize your preferences from the Settings page:
* Password Management: Set or change your password for secure access.
**Note**: The account information displayed is the first web3 wallet address you connected to this extension. NexaID uses this address to track your reward points.
# Prerequisites
Source: https://nexaid.hashkey.com/docs/build/extension/prerequisites
We will guide through the main function of NexaID browser extension.
**Download**
The NexaID browser extension, downloadable from the Chrome Web Store (versions greater than 0.3.0), is currently compatible with Chrome and Edge browsers. Support for other browsers is planned for the future.
Search `NexaID TransGate` in the Chrome Web Store, click the “Add to Chrome” button, the extension will install automatically. For the MetaMask wallet, remember to download from the chrome web store as well, make sure you update the MetaMask to the version above 11.8.0.
# Attestation Structure
Source: https://nexaid.hashkey.com/docs/build/misc/attestation-structure
## Attestation Structure in NexaID
When a successful data verification process is completed, the client will receive a zkTLS attestation issued by the network attestor. The attestation is defined with the following structure.
```json theme={null}
[
{
"attestor": "ATTESTOR_ADDRESS",
"taskId": "TASK_ID",
"attestation": {
"recipient": "YOUR_USER_ADDRESS",
"request": [
{
"url": "REQUEST_URL",
"header": "REQUEST_HEADER",
"method": "REQUEST_METHOD",
"body": "REQUEST_BODY"
}
],
"responseResolve": [
{
"oneUrlResponseResolve": [
{
"keyName": "VERIFY_DATA_ITEMS",
"parseType": "",
"parsePath": "DARA_ITEM_PATH"
}
]
}
],
"data": "{ACTUAL_DATA}",
"attConditions": "[RESPONSE_CONDITIONS]",
"timestamp": "TIMESTAMP_OF_VERIFICATION_EXECUTION",
"additionParams": ""
}
}
]
```
# Error Code
Source: https://nexaid.hashkey.com/docs/build/misc/error-code
We have defined some error codes in the SDK. When an error occurs during the data verification process, you can refer to the following list for troubleshooting.
### 1. General Errors
| Error Code | Situation |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------- |
| 00000 | Operation too frequent. Please try again later. |
| 00001 | Algorithm startup exception. |
| 00002 | The verification process timed out. |
| 00003 | A verification process is in progress. Please try again later. |
| 00004 | The user closes or cancels the verification process. |
| 00005 | Wrong SDK parameters. |
| 00012 | Invalid Template ID. |
| 00013 | Target data missing. Please check that the JSON path of the data in the response from the request URL matches your template. |
| 00104 | Not met the verification requirements. |
| -1002001 | Invalid App ID. |
| -1002002 | Invalid App Secret. |
### 2. zkTLS Related Errors
| Error Code | Situation |
| -------------- | --------------------------------------------------- |
| 10001 \~ 10004 | Unstable internet connection. Please try again. |
| 20001 | An internal error occurred. |
| 20003 | Invalid algorithm parameters. |
| 20005 | An internal error occurred. |
| 30001 | Response error. Please try again. |
| 30002 | Response check error. |
| 30004 | Response parse error. |
| 40002 | SSL certificate error. |
| 50001 | An internal error occurred. |
| 50003 | The client encountered an unexpected error. |
| 50004 | The client not started. Please try again. |
| 50006 | The algorithm server not started. Please try again. |
| 50007 | Algorithm execution issues. |
| 50008 | Abnormal execution results. |
| 50009 | Algorithm service timed out. |
| 50010 | Compatibility issues during algorithm execution. |
| 50011 | Unsupported TLS version. |
| 99999 | Undefined error. |
Please contact our [Community](https://discord.com/invite/pdrNxRrApX)
for assistance in resolving the issues.
# Overview
Source: https://nexaid.hashkey.com/docs/build/overview
Here we'll explain about how to create off-data verification applications with **NexaID SDKs**. Note all applications using NexaID SDKs are interacted with NexaID, a.k.a., decentralized attestors, where the attestations are generated in a decentralized process with a high hardware security level.
With the vision of creating a decentralized data verification and computation network, NexaID provides developer tools to help applications leverage zkTLS capability from the network attestors.
* For web-based applications, we recommend to use the **Network-JS-SDK** (see the [DApp Integration Guide](/build/dapp-integration/example)
). This is the most straightforward tool that allows end users to create zkTLS attestations through this SDK. Note the end user is required to install [NexaID extension](/build/extension/prerequisites)
to perform the zkTLS session with the network attestor.
## Build with NexaID SDKs
# zkTLS Operations
Source: https://nexaid.hashkey.com/docs/build/zktls-operations
## Verification Logics and Private Data
By default, a zkTLS attestation can return the verified field values in plaintext. This is the simplest mode, but it is not always the right choice when the proved data is privacy-sensitive.
To handle this, NexaID SDKs support a shared concept called **verification logics**. In practice, verification logics are expressed through zkTLS operations that decide how each verified field should be processed before it is returned in the attestation.
The three most common patterns are:
* Plaintext result: reveal the verified value directly
* Hashed result: return a digest such as `SHA256` instead of the raw value
* Condition result: return whether a comparison such as `>`, `<`, `=` or `!=` is satisfied
In the current SDK documentation, verification logics are configured in `Network-JS-SDK` through `attConditions`.
## Supported zkTLS Operations
Using comparison operations inside the attestation is an effective way to avoid exposing raw data while still proving useful facts about it.
The supported comparison operators include:
* `>`: verifies whether the data item is greater than a target value
* `<`: verifies whether the data item is less than a target value
* `=`: verifies whether the data item is equal to a target value
* `!=`: verifies whether the data item is not equal to a target value
* `>=`: verifies whether the data item is greater than or equal to a target value
* `<=`: verifies whether the data item is less than or equal to a target value
### Hash Operations
`SHA256` hides a single proved field by returning its SHA-256 digest instead of the plaintext value.
`SHA256_EX` is the extended version used when you need to hide multiple data fields, especially in multi-URL scenarios.
## How to Use Verification Logics in SDKs
### Network-JS-SDK
For DApps that build on NexaID and use `Network-JS-SDK`, verification logics are configured with the `attConditions` parameter when calling `attest()`.
| Parameter Name | Type | Required | Description |
| --------------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `attConditions` | `Array` | No | By default, the SDK returns plaintext verification results. You can also define verification logics for hashed results or condition-based results. Example hashed result: `const attConditions = [[{ field: "YOUR_CUSTOM_DATA_FIELD", op: "SHA256" }]]`. Example condition result: `const attConditions = [[{ field: "YOUR_CUSTOM_DATA_FIELD", op: ">", value: "YOUR_CUSTOM_TARGET_DATA_VALUE" }]]`. |
## When to Use zkTLS Operations vs DVC
zkTLS operations perform lightweight processing directly inside the attestation flow. This is useful when you want to hide raw values or prove simple comparisons without introducing another proving system.
By contrast, the DVC (Data Verification and Computation) pattern sends the attestation data and related HTTP responses into a zkVM circuit for further computation. DVC provides stronger public verifiability, while zkTLS operations are usually simpler and more efficient for application-level privacy needs.
# Automating Verification Process
Source: https://nexaid.hashkey.com/docs/implementation-scenarios/automating-verification-process
Automating manual verification processes represents a transformative opportunity where data proofs can significantly reduce operational costs and improve efficiency. Tasks that traditionally relied on human validation can now be streamlined with zkTLS technology. For instance, an dapp can leverage data proofs to automate the verification of influencer engagement metrics, eliminating the need for screenshots and tedious manual reviews. zkTLS-based data proofs can provide verifiable evidence of such claims, distinguishing genuine influencers from those making exaggerated or false statements.
Another compelling use case could be in job marketplaces, where verifying resumes and matching candidates to jobs is often labor-intensive. A large number of applicants include inaccurate information in their applications, forcing companies to rely on extensive background checks, including calls to universities and past employers. Data proofs can automate this process, enabling instant, trustworthy verification and bringing significant disruption to the recruitment industry in a positive way.
# Crypto Lending with Proofs of Dynamic Assets
Source: https://nexaid.hashkey.com/docs/implementation-scenarios/crypto-lending
Unlike traditional financial lending, most on-chain loans require collateral from users. In the traditional financial system, credit is a broader form of lending that doesn't necessitate collateral and is based on credit information. However, in the DeFi world, due to the characteristics of trustlessness, permissionlessness, and the lack of KYC, it becomes challenging for DeFi developers to restrict borrowers based on off-chain behavior.
While many projects are exploring on-chain credit lending methods, it is undoubtedly a challenging task. The difficulty lies in how to lock off-chain assets and how to effectively recover them. Nevertheless, attempting to enhance the lending rate and asset utilization through a combination of dynamic asset proofs is worth considering.
Providers of funds can request borrowers to provide proof of identity, assets, credit, etc., off-chain, and then conduct risk assessments based on on-chain data to increase the original lending rate (e.g., from 70% to a higher ratio like 75%). Simultaneously, borrowers are required to provide proofs of dynamic asset at an agreed frequency. When assets change within a specified range, repayment and liquidation will be triggered.
From increasing lending rates to exploring on-chain microcredit lending, the utilization of combined on-chain and off-chain data presents an opportunity to innovate DeFi applications once again.
In general, with zkTLS-based data proofs, offchain credit data including FICO scores, income statements, and payment histories can be securely verified onchain in a privacy-preserving way with arbitrary disclosure, and used for onchain credit score verification. Achieving credible onchain credit for our digital identities would enable a wide range of new DeFi products around personalized lending rates, dynamic collateral requirements, and risk-based interest models. Defaults would penalize onchain creditworthiness and reputation of the digital identity.
# Crypto On-Ramp and Off-Ramp
Source: https://nexaid.hashkey.com/docs/implementation-scenarios/crypto-on-ramp-and-off-ramp
Crypto on-ramp and off-ramp is an intractable issue to the crypto users, due to the fairness, security and compliance problems.
With NexaID zkTLS technique, one can create a secure end-to-end crypto on and off-ramps solution on the blockchain. Suppose Alice want to buy some crypto tokens with fiat from Bob. The general workflow of such an on/off-ramp protocol can be as the following.
* Deploy an on-chain escrow smart contract to securely hold tokens (e.g., USDC, ETH). These tokens are released only after verifying the corresponding off-chain payment. The escrow is pre-funded by Bob.
* Alice initiates a payment using platforms like Paypal or similar Web2 payment services.
* Using zkTLS, Alice creates a data proof, which validates key transaction details, including sender, recipient, and payment amount.
* The verified proof is submitted to the on-chain escrow smart contract, which processes it. Once the proof is confirmed, the escrow releases the tokens directly to Alice's wallet.
# Data Quality Control
Source: https://nexaid.hashkey.com/docs/implementation-scenarios/data-quality-control
Big AI companies need to do reinforcement learning from human feedbacks, to get high-quality labeling on images and other media data to train AIs for accuracy. Some companies usually do this in regions where labor is cheap. Labeling tasks like medical or legal, need expert to complete the job. It is crucial to verify that the labelers have sufficient knowledge and skills to accurately label in these domains, e.g., by proving they are indeed an MD or JD.
zkTLS-based data proofs are an efficient way to verify the eligibility of labelers and weed out the bad actors lying about their credentials and providing inaccurate training data in these specific domains. Automating credential verification with data proofs can improve the integrity of AI training data sets but also streamline operations, cutting costs and increasing trust in the data pipeline.
# Identity Verification
Source: https://nexaid.hashkey.com/docs/implementation-scenarios/identity-verification
Traditional identity verification struggles with privacy concerns, centralized storage risks, high costs, time-consuming processes, data inefficiencies, lack of interoperability, compliance complexities, and fraud risks. zkTLS enables users to prove eligibility without revealing specific details, ensuring seamless privacy compliance. Some typical examples include age-like verification and reusable verification.
## Age-like Verification
Personal information like age, location and nationality, is very sensitive and considered as core factors of identification risks. NexaID' zkTLS technique achieves complete data minimization, which only provides the final result after applying the computable condition to the sensitive data. For instance, an age attestation can provide the satisfiability towards a gaming service to ensure age compliance, without disclosing the exact age or birth date.
As long as the sensitive data is an input to a computable function, the verification can be well constructed by using ZKP. Other examples include:
* one can provide proof of eligible nationality, by cryptographically showing the user's nationality is NOT in the blacklist which may contain a couple of restricted countries and regions.
* one can provide proof of qualified address to confirm the user's area falls in the designated region.
## Reusable Verification
Proof of Humanity (PoH) is crucial in ensuring that online participants are genuine individuals rather than bots or fake identities. Existing PoH methods, such as CAPTCHA and hCAPTCHA, focus on human verification tests to achieve Sybil resistance for Web3 applications.
NexaID introduces a new approach to PoH by re-using existing identity/KYC results. For example, consider the case of Alice, an active Twitter user seeking access to a chat service provided by a new decentralized social protocol. NexaID can create an attestation for Alice after verifying that she has posted more than 100 tweets within the last quarter. This attestation can then be re-used by the new protocol to ensure Alice's humanity, utilizing the verification results from NexaID.
NexaID' innovative solution enhances Web3 identity systems by reducing trust assumptions and integrating specialized verifiable attestations. By binding these attestations to specific Web2 data sources, NexaID ensures authentication and privacy preservation. Additionally, NexaID introduces a new type of Proof of Humanity by leveraging existing identity/KYC information, enabling the creation of more secure and trustworthy Web3 applications.
# Private Dataset for AI Models
Source: https://nexaid.hashkey.com/docs/implementation-scenarios/private-dataset-for-ai-models
AI models, especially LLMs, need access to more personalized data to improve the performance, as public datasets are exhausted nowadays. However, the traditional way of using private data like user behavior and transaction history, suffers from privacy and integrity challenges.
zkTLS-based data proofs offers a secure and verifiable way to access high-quality private data for AI model training. In particular, data proofs address the issues by allowing AI developers to verify the provenance and authenticity of private data without revealing privacy-compromising details. It enhances the value of data shared for training by making it verifiable, which significantly increases its economic worth. Verifiable data also mitigates the risks of data poisoning or manipulation during the training process.
zkTLS-based data proofs have compelling economic implications. They enable users to retain control over their private data, selectively sharing only what they choose in a competitive marketplace where AI developers strive to build the best models. This approach unlocks new opportunities for AI applications in privacy-sensitive fields such as healthcare, parenting, and finance.
# Proof of Assets
Source: https://nexaid.hashkey.com/docs/implementation-scenarios/proof-of-assets
Digital assets, including Bitcoin, ERC-20 tokens, NFTs, and other cryptocurrencies, are revolutionizing the financial landscape. These assets represent value and are recorded on secure distributed ledgers using cryptographic techniques. While proof of on-chain assets can be easily obtained by examining the on-chain data associated with a specific account, proving ownership of off-chain assets has been a challenge due to the opacity of centralized exchanges (CEXs).
NexaID presents an innovative approach that allows users to prove ownership of their off-chain assets to attestors while leveraging the power of zkTLS and IZK (Interactive Zero-Knowledge Proofs). With NexaID, users can establish proof of off-chain assets and obtain attestor signatures, enabling them to present verifiable evidence, i.e., attestations, to third parties.
NexaID' ability to provide proof of off-chain assets opens up a wide range of use cases within the ecosystem. Here are a few examples:
* Alice wants to obtain an undercollateralized loan from a lending protocol. She can leverage NexaID to prove to the protocol that she possesses over 10,000 USDT in her CEX account, composed of various cryptocurrencies. This created attestation allows Alice to demonstrate her credit and qualify for the loan.
* Bob participates in a Gamefi platform and wants to receive exclusive airdrops such as game props, skins, or other privileges. By using NexaID, Bob can prove that he holds a specific amount of Gamefi tokens, enabling him to unlock these rewards based on his ownership.
* Cindy is an active on-chain derivatives trader and wants to engage with a derivative protocol. She can provide a zero-knowledge proof using NexaID, sharing her trading history and derivative positions without revealing sensitive details. This proof establishes her credibility as a long-term trader and allows the protocol to incentivize her with tokens or other benefits.
NexaID is a groundbreaking solution that empowers users to prove ownership of off-chain assets securely and verifiably. By leveraging zkTLS, NexaID enables users to obtain attestor signatures, establishing proof of ownership (attestations) that can be presented to third parties. With NexaID, the potential of off-chain asset proof is unlocked, opening up new opportunities in lending, Gamefi, derivatives, and other areas within the Web3 ecosystem.
# zkTLS-based Crypto Payment
Source: https://nexaid.hashkey.com/docs/implementation-scenarios/zktls-based-crypto-payment
Crypto payment is one of the most compelling applications of blockchain and decentralized technologies. It enables permissionless, censorship-resistant transfer of assets across the globe.
With zkTLS, crypto payment can be further simplified and abstracted away from wallet addresses. Instead of requiring a recipient’s wallet address, senders can specify a social account (e.g., email, Twitter, GitHub) as the payment destination. The recipient can later prove ownership of that account via zkTLS and securely claim the tokens into their own wallet.
Developers can implement such a payment flow by:
* Deploying smart contracts to manage payment records on-chain (from sender to recipient identity).
* Mapping social accounts to verifiable claims using zkTLS proofs.
* Allowing recipients to generate zero-knowledge proofs to withdraw assets to their preferred address.
**User Benefits**
With zkTLS-based crypto payments, users no longer need to manage or disclose their wallet addresses. Instead, they can receive assets by simply proving ownership of an existing identity—such as a social account or email—without exposing sensitive information on-chain. This approach ensures end-to-end privacy, as the user’s identity remains completely hidden from the public ledger, reducing both privacy risks and friction in participation.
The experience is seamless for both Web3-native users and those from traditional Web2 environments, making it significantly easier for anyone to access and benefit from crypto-based systems. By removing the technical complexity often associated with wallet management for newbies, this mechanism lowers the barrier to entry and creates a more intuitive, flexible, and inclusive way to send and receive crypto assets in a peer-to-peer manner.
# What is NexaID
Source: https://nexaid.hashkey.com/docs/index
NexaID is building the future of data interoperability. The mission of NexaID is to enable secure, permissionless data verification and computation in blockchain and AI.
### The Problems
* As blockchain and decentralized technologies continue to evolve, they encounter critical challenges, including limited on-chain data, fragmentation between Web2 and Web3 systems, and the difficulty mature industries face in leveraging decentralized networks effectively. Traditional systems fail to deliver the privacy, scalability, and interoperability required to overcome these obstacles.
* A key issue with AI in decentralized systems is the absence of transparency and accountability. Without verifiable mechanisms, users cannot trust AI’s actions, decisions, or data management, raising concerns about potential manipulation, security vulnerabilities, and privacy breaches.
### Our Solutions
The challenges we face today point to one clear solution: a cryptographic layer. This layer securely connects off-chain data with blockchain and AI systems. NexaID tackles this by leveraging verification and encrypted computation to introduce valuable data into these ecosystems, empowering data owners and enabling a world where data can flow freely, unlocking its full potential.
NexaID also provides developers with easy-to-use APIs. Think of it as a bridge, linking foundational blockchain and AI ecosystems with the diverse applications being built on top.
### Core Technologies
Our technology focuses on two key innovations: [zkTLS](/nexaid/overview-of-zktls)
and zkFHE. zkTLS builds on the Transport Layer Security (TLS) protocol by adding zero-knowledge proofs, so you can verify data authenticity without revealing the data itself. zkFHE takes this a step further, ensuring computations on encrypted data are secure and tamper-proof, even when outsourced.
* zkTLS Resources:
* [Whitepaper](https://eprint.iacr.org/2023/964)
* [QuickSilver](https://eprint.iacr.org/2021/076)
* zkFHE Resources:
* [GINX](https://eprint.iacr.org/2014/283.pdf)
# Why NexaID
Source: https://nexaid.hashkey.com/docs/introduction/why-nexaid
NexaID offers numerous benefits to community developers and network participants:
### **Chain-Agnostic**
* NexaID’ data verification and computation capabilities are chain-agnostic, enabling dApps across various blockchains to seamlessly interact with cryptographic computations without technical barriers. By bridging the gap between off-chain and on-chain data, NexaID empowers blockchain ecosystems to support more diverse and data-driven applications.
### **Openness**
* NexaID’ core technologies are open and freely accessible to all developers. Additionally, the network incentivizes contributions from a wide range of communities—including cryptography, distributed systems, DeFi, AI, and others—to collaboratively build a trustless and privacy-centric ecosystem.
### **High Performance**
* zkTLS: [NexaID zkTLS](https://eprint.iacr.org/2023/964)
is a state-of-the-art solution that is over 10x faster than existing alternatives and is compatible with diverse environments, from browsers to mobile apps. Powered by the innovative [QuickSilver](https://eprint.iacr.org/2021/076)
interactive zero-knowledge proof system, NexaID zkTLS sets a new industry standard and is the first solution capable of efficiently proving large-scale content, such as ChatGPT conversations.
* zkFHE: NexaID zkFHE introduces a groundbreaking protocol with the proving time about 340x faster than existing systems. This advancement makes zkFHE practical for real-world applications, such as confidential voting, auctions, and FHE rollups.
# Attestor Security
Source: https://nexaid.hashkey.com/docs/nexaid/attestor-security
## Security of Attestor Nodes
The security of attestor nodes is critical and must be safeguarded to protect both node maintainers and network clients. A key security concern in the zkTLS protocol is how to enforce the computational integrity of the attestor node. Note this aspect is not covered by the original protocol security.
To strengthen attestor security, the NexaID adopts a hardware-based approach. Specifically, [Phala’s TEE technology](https://docs.phala.com/phala-cloud/what-is/what-is-phala-cloud)
is integrated with the NexaID attestor node software to ensure nodes always execute correctly, while critical assets such as node keys remain protected and securely utilized.
### Key Management
The attestor node leverages Phala’s TEE solution, including a secure Key Management Service (KMS), to safeguard node keys throughout their entire lifecycle. These node keys are the most critical assets within the attestor node, primarily used for signing zkTLS sessions and issuing proofs. Key generation is performed exclusively by the KMS inside the TEE, ensuring that the attestor node software never has direct access to the key material. Signing operations can only be performed within TEE, and only after the correct execution of the zkTLS protocol.
### Version Managemnt
Another security concern involves the attestor’s DevOps process. To prevent attacks such as code injection or malware hijacking, only official, verified software versions are allowed to be deployed and maintained within the network. This policy is further enforced by TEE, as the entire attestor node software always runs inside the enclave, ensuring runtime integrity and protection against unauthorized modifications.
# Overview of zkTLS
Source: https://nexaid.hashkey.com/docs/nexaid/overview-of-zktls
zkTLS (also known as "web proofs") is a cryptographic technology that verifies the authenticity of TLS data while preserving privacy, all without requiring modifications to the data source servers. This innovation enables the secure utilization of personal data stored in siloed Web2 servers, facilitating seamless and cost-effective cross-platform data flow.
In the industry, two primary modes are commonly used for zkTLS: the **MPC mode** and the **Proxy mode**. Each mode presents its own trade-offs in terms of security and performance. NexaID addresses these differences by providing unified APIs, allowing developers to choose the most suitable mode based on the specific requirements of their applications.
### MPC Mode
In the MPC mode, the attestor and the client collaboratively execute a secure multi-party computation protocol to generate the materials needed to set up a TLS session with the data source server. This ensures that the client cannot control or modify the TLS data before the attestor sends back its share of the session key.
The key advantage of NexaID' MPC mode is its use of the highly efficient and lightweight interactive zero-knowledge proof system, [QuickSilver](https://eprint.iacr.org/2021/076)
, developed by the NexaID team. QuickSilver significantly reduces both computational and communication overhead, enhancing performance. For more details, please refer to our technical [whitepaper](https://eprint.iacr.org/2023/964)
.
The diagram below illustrates the general workflow of how the MPC mode operates.
### Proxy Mode
In the Proxy mode, the attestor acts as an intermediary between the client and the data source server, forwarding TLS traffic between them. Additionally, the attestor records all ciphertexts exchanged between the client and the server. At the end of the session, the client must prove to the attestor that it knows the plaintext messages underlying the ciphertexts.
The Proxy mode can offer better performance than the MPC mode, as it avoids the computational overhead of the multi-party computation protocol. However, it introduces a new network assumption: the attestor must ensure that it is indeed communicating with the intended server, mitigating any potential risks of miscommunication or attacks.
NexaID’ Proxy mode differs from others in the industry by leveraging the highly efficient [QuickSilver](https://eprint.iacr.org/2021/076)
protocol during the proof process. Additionally, it proves the Key Derivation Functions (KDFs) during the TLS connection establishment, which is typically inefficient in zk-SNARK alternatives. This approach also eliminates the need for extra padding, which can be limiting and lack generality.
The diagram below illustrates the general workflow of how the Proxy mode operates.
# Understand NexaID
Source: https://nexaid.hashkey.com/docs/nexaid/understand-nexaid
NexaID is fundamental layer of the zkTLS protocols that provides decentralized security and robustness, with driving the demand for data verifications and monetizations.
### Roles of The Network
#### 1. Attestor Node
An attestor node is a computing node of the NexaID, which forms a secure computation layer for executing zkTLS protocol. The attestor node is designated to run zkTLS tasks with zkTLS software including web version (NexaID extension) and mobile versions (NexaID AppClips and NexaID Instant Apps) on indicated data sources. For [security consideration](/nexaid/attestor-security)
, the attestor node runs inside a Trusted Execution Environment (TEE), ensuring runtime integrity and providing stronger version control.
Any operator of the attestor node is required to stake a certain amount of tokens as collateral to secure his participation in the network activities. The attestor can earn incomes on successfully running the network task. If the zkTLS task is not run correctly, it will also be punished.
#### 2. Developer
A developer within NexaID builds zkTLS app by utilizing NexaID SDK.
#### 3. Client
A client is an end user who directly allocates a zkTLS task to the network through a dapp built by a developer.
### Network Architecture and Workflow
The NexaID system contracts act as the core hub and the dispatcher to manage the network activities. They need to handle fee settlement, stakings, rewards, and penalties about zkTLS tasks. In the network, normally a session starts with a task created by a client. The task is sent to the contracts to be processed by the network attestors.
Within the task session, a selected attestor will perform a chosen zkTLS protocol (MPC Mode or Proxy Mode) with the client, to verify the web data which is specified in the task (dapp) and issue zkTLS proofs.
Another core component is **NexaID SDK**, which is used implicitly in the network activities. The SDK is normally integrated and used by the zkTLS dapps, to send tasks to the contracts and locate the selected attestor. The SDK is the true vehicle to run the zkTLS protocol with the attestor, and create the related zkTLS proofs.
### Network Economics
Clients shall pay task fees with crypto tokens to the verification service provided by the network. The fee shall be paid to the system contracts prior to the task execution. The fees from the executed task will be shared by the attestor which actually runs the zkTLS session with the client, and the protocol.
Attestor shall stake a certain number of tokens and waits for a while before it can onboard as an official node. Attestor will have to wait for a certain period to exit the staking before returning the locked funds.
### Penalties
If an attestor does not execute the zkTLS protocol honestly and instead arbitrarily signs on the zkTLS session, penalties will apply. The correctness of the protocol execution is validated through TEE attestation.
If a node’s instability leads to execution failures or timeouts, the task output must be reported to the system contracts. A pre-defined threshold will determine whether penalties apply: within a given time window, a certain failure rate may be tolerated without punishment, while exceeding a specified timeout rate will trigger penalties.
The penalty mechanism is designed as an incremental means of network security, and will not be introduced on the first day of the mainnet launch. In the staging phases, there will be no penalty mechanism, only authorized nodes will be allowed to join the network. When the penalty mechanism is formally introduced, task execution will be verified through TEE attestations, ensuring that correctness of the cryptographic operations can be enforced and validated.
### Network Governance
The governance mechanism will primarily be responsible for network upgrades, parameter adjustments, and other key decisions affecting the system. In the early stages, governance will not be activated, allowing the network to focus on stability and adoption. Once introduced, governance will cover parameters such as the minimum staking requirement for attestor nodes, the unbonding period for attestor nodes, the minimum staking requirement for clients, the unbonding period for regular stakers, and the allowable range for the proportion of staking rewards distributed by regular stakers to their delegated attestor nodes.
# Privacy Policy
Source: https://nexaid.hashkey.com/docs/resources/privacy-policy
**Last Updated:** April 2nd, 2026
#### Introduction
This Privacy Policy explains how NexaID collects, uses, and handles information when users access or interact with the NexaID website, browser extension, APIs, and related services (collectively, the “***Service***”).
NexaID is designed as a privacy-preserving infrastructure that enables users to generate cryptographic attestations without directly disclosing underlying personal data. NexaID does not provide identity verification, identity certification, or KYC services.
#### Information We Do Not Collect
NexaID is designed to minimize the collection of personal information.
When using the Service, NexaID does not collect or store:
* names or real-world identity information;
* government identification numbers;
* contact information voluntarily provided by users;
* passwords or login credentials for third-party services;
* personal financial information.
Authentication with third-party services is performed on the user’s device through the browser extension or other user-side software.
#### Information We May Process
To operate the Service, NexaID may process limited technical information, including:
* wallet addresses associated with attestations;
* cryptographic proof data or proof metadata;
* timestamps associated with proof generation or verification;
* technical logs necessary for system operation and security;
* device or browser-related information required for the extension to function.
This information is used only to operate, secure, and improve the Service. Information that is publicly available on blockchain networks (such as wallet addresses or transaction identifiers) may be processed as part of the operation of the Service.
#### Zero-Knowledge Proofs and Attestations
NexaID enables users to generate cryptographic proofs based on interactions with third-party services.
The Service is designed so that:
* the underlying personal data used to generate a proof remains on the user’s device;
* NexaID does not access the user’s login credentials for third-party services;
* NexaID does not store the personal information contained in third-party accounts.
NexaID only processes the resulting proof or attestation necessary for verification. Attestations generated through NexaID do not constitute confirmation of a user’s legal identity or eligibility for any regulatory purpose.
#### Blockchain Data
Certain information related to attestations may be recorded on public blockchain networks. Such information may be publicly visible and cannot be altered or deleted by NexaID.
#### Third-Party Services
The Service may interact with third-party platforms, websites, or services.
When users access third-party services through the browser extension or related tools:
* those services operate under their own privacy policies and terms;
* NexaID does not control how those services collect or process user information.
Users should review the privacy policies of such third-party services before interacting with them. Authentication interactions with third-party services occur directly between the user and the relevant service provider through the user’s device.
#### Use of Information
NexaID uses the limited information described above for the following purposes:
* operating and maintaining the Service;
* verifying attestations and proofs;
* preventing fraud, abuse, or misuse of the Service;
* improving system performance and reliability;
* complying with applicable legal obligations.
#### Data Retention
NexaID retains technical information only for as long as reasonably necessary to operate and secure the Service.
Attestation-related data may be stored in connection with verification functionality, system integrity, and security monitoring.
#### Data Security
NexaID implements reasonable technical and organizational measures to protect the integrity and security of the Service.
However, no system can guarantee absolute security. Users are responsible for protecting their own devices, accounts, and credentials.
#### International Data Processing
Because the Service operates on a decentralized infrastructure and may interact with globally distributed systems, information processed by NexaID may be transmitted or processed in multiple jurisdictions.
NexaID may use globally distributed infrastructure providers or cloud services. As a result, limited technical information may be processed in jurisdictions outside the user’s country of residence.
#### Children
The Service is not intended for children. We do not knowingly collect personal data from children without appropriate authorization. If you believe a child has provided personal data, contact us and we will take appropriate steps.
#### Contact Us
If you have questions or requests regarding this Privacy Policy or our personal data practices, contact:
**Email:** [caas\_service@haskey.com](mailto:caas_service@haskey.com)
#### Changes to This Privacy Policy
NexaID may update this Privacy Policy from time to time to reflect changes in the Service or applicable legal requirements.
Users will be notified of material changes through the website or other appropriate channels.
# Terms of Service
Source: https://nexaid.hashkey.com/docs/resources/terms-of-service
**Last Updated:** April 2nd, 2026
These Terms of Service (“***Terms***”) govern your access to and use of the NexaID identity attestation infrastructure, including the NexaID website, browser extension, APIs, and related services (collectively, the “***Service***”).
By accessing or using the Service, you agree to be bound by these Terms. If you do not agree to these Terms, you must not access or use the Service.
#### Definitions
“**NexaID**” or “**Service**”
means the blockchain-based identity attestation infrastructure operated by NexaID that enables users to generate and submit cryptographic proofs relating to certain attributes or account ownership to supported third-party applications.
“**User**”
means any individual or entity that accesses or uses the NexaID interface, plugins, APIs, or related services.
“**Attestation**”
means a cryptographic statement generated through the NexaID system confirming that a specified condition or attribute has been verified through supported authentication methods.
“**Proof**”
means a cryptographic proof generated by the NexaID system (including zero-knowledge proofs where applicable) demonstrating that a user satisfies certain conditions without revealing the underlying data.
“**Third-Party Application**”
means any website, application, protocol, or platform operated by a third party that integrates NexaID through APIs, SDKs, plugins, or other technical interfaces.
“**User Data**”
means information provided by the user during authentication processes with third-party services; provided that NexaID does not collect, store, or control such information unless explicitly stated.
“**Authentication Source**”
means any external platform or service used to verify user attributes or account ownership, such as social media platforms, wallets, or other digital identity providers.
“**Plugin**”
means any browser extension, software component, or integration that allows a user to generate and submit proofs through the NexaID system.
#### Description of the Service
NexaID provides a technical infrastructure that enables users to generate and present cryptographic attestations regarding certain claims derived from third-party online services.
The Service may include tools that allow users to:
* connect to third-party websites or online services through a browser extension or other user-side interface;
* generate zero-knowledge or other cryptographic proofs based on user interactions with such third-party services;
* obtain attestations that can be verified by third parties through NexaID’s verification infrastructure.
The Service is designed to enable users to prove specific attributes or claims without directly disclosing underlying personal data.
#### User Responsibilities
When using the Service, you agree that:
* you will use the Service only for lawful purposes;
* you will not attempt to manipulate, falsify, or improperly generate attestations;
* you will not exploit vulnerabilities or security flaws in the Service;
* you will comply with all applicable laws and regulations when using the Service.
You remain solely responsible for the claims you generate or present through the Service.
#### Browser Extension and User-Side Software
Certain features of the Service may require the installation or use of browser extensions or other user-side software (“*Extension*”).
The Extension operates on the user’s own device and interacts directly with third-party services.
NexaID does not control the behavior of third-party websites or services accessed through the Extension.
You are responsible for maintaining the security of your devices and accounts when using the Extension.
#### Disclaimers
No Warranty
The Service is provided on an “as is” and “as available” basis.
To the fullest extent permitted by law, NexaID makes no representations or warranties regarding:
* the accuracy or validity of any attestation generated through the Service;
* the availability or uninterrupted operation of the Service;
* the security of third-party services;
* the suitability of the Service for any specific purpose.
**No Identity Verification or KYC**
NexaID provides cryptographic attestation infrastructure designed to enable users to generate proofs relating to certain attributes or account ownership. NexaID does not perform identity verification, know-your-customer (KYC), or background checks on users. Any attestations or proofs generated through the Service do not constitute confirmation of a user’s real-world identity, legal status, or compliance with regulatory requirements.
**No Guarantee of Accuracy**
NexaID does not guarantee the accuracy, completeness, reliability, or validity of any information, attestations, or proofs generated through the Service. Such attestations depend on authentication sources, user-provided inputs, and third-party systems which are outside NexaID’s control.
Users and third-party applications relying on NexaID attestations do so at their own risk.
**Third-Party Services**
The Service may interact with or rely upon third-party services, platforms, authentication providers, wallets, or blockchain networks. NexaID does not control and is not responsible for the availability, functionality, security, or policies of any such third-party services.
Any interaction between users and third-party applications is solely between those parties.
**No Responsibility for User Decisions**
NexaID does not endorse, verify, or assume responsibility for any decisions, transactions, or actions taken by users or third-party applications based on attestations or proofs generated through the Service.
Any reliance on the Service for eligibility, access control, governance participation, or financial activity is undertaken at the user’s own risk.
**Blockchain and Smart Contract Risks**
The Service may interact with blockchain networks, smart contracts, and cryptographic systems. These technologies are experimental and may contain vulnerabilities or errors.
NexaID does not guarantee that the Service will be secure, uninterrupted, or free from bugs, exploits, or technical failures.
**No Custody of Assets or Personal Data**
NexaID does not custody user digital assets, private keys, or authentication credentials. Except as explicitly stated, NexaID does not collect or store users’ personal information obtained through authentication sources.
NexaID is a non-custodial infrastructure provider and does not hold or control user funds, credentials, or authentication accounts.
Users are solely responsible for the security of their devices, wallets, and authentication accounts.
**Informational Nature of Attestations**
Attestations and proofs generated through NexaID are informational and technical in nature. They should not be interpreted as certifications, guarantees, legal assurances, or endorsements by NexaID.
Third-party applications integrating NexaID remain solely responsible for determining how such attestations are used.
No person should rely on any attestation generated through NexaID as a substitute for independent verification.
**Regulatory Compliance**
Users and third-party applications are solely responsible for determining whether their use of the Service complies with applicable laws and regulations in their respective jurisdictions.
NexaID does not represent or warrant that the Service is appropriate or lawful in all jurisdictions.
**Open Source and Third-Party Software**
The Service may incorporate open-source software or other third-party components.
Such components may be subject to separate license terms. NexaID does not warrant the performance or security of third-party software components.
#### Limitation of Liability
To the fullest extent permitted by applicable law, NexaID and its affiliates, directors, officers, employees, agents, and service providers shall not be liable for any indirect, incidental, consequential, special, punitive, or exemplary damages arising out of or related to the use of, or inability to use, the Service.
Without limiting the foregoing, NexaID shall not be liable for any loss of profits, loss of data, loss of digital assets, loss of reputation, business interruption, or other economic losses resulting from the use of the Service, even if NexaID has been advised of the possibility of such damages.
Users acknowledge that the Service interacts with blockchain networks, cryptographic systems, browser plugins, and third-party authentication sources, all of which may involve inherent technical risks. NexaID shall not be responsible for losses arising from network failures, smart contract vulnerabilities, software errors, malicious attacks, or unauthorized access to user accounts or devices.
To the maximum extent permitted by law, NexaID’s total aggregate liability arising out of or relating to the Service shall not exceed the greater of:
(i) the amount paid by the user (if any) for the use of the Service in the twelve (12) months preceding the event giving rise to the claim; or
(ii) one hundred U.S. dollars (USD 100).
Some jurisdictions do not allow the exclusion or limitation of certain damages. In such jurisdictions, NexaID’s liability shall be limited to the maximum extent permitted by applicable law.
#### Indemnification
Users agree to indemnify, defend, and hold harmless NexaID, its affiliates, directors, officers, employees, agents, and service providers from and against any and all claims, liabilities, damages, losses, costs, or expenses (including reasonable legal fees) arising out of or related to:
(a) the user’s access to or use of the Service;
(b) the user’s violation of these Terms;
(c) the user’s violation of any applicable laws or regulations;
(d) any misuse of attestations, proofs, or outputs generated through the Service; or
(e) any interaction between the user and third-party applications or services that integrate NexaID.
Users acknowledge that NexaID acts solely as a technical infrastructure provider for cryptographic attestations and does not control how third-party applications rely on or interpret such attestations. Users remain solely responsible for their use of the Service and any consequences arising from such use.
NexaID reserves the right, at its own expense, to assume the exclusive defense and control of any matter subject to indemnification by the user, in which case the user agrees to cooperate fully with NexaID in asserting any available defenses.
#### Intellectual Property
All rights, title, and interest in and to the Service, including but not limited to the NexaID platform, software, APIs, SDKs, documentation, interfaces, designs, trademarks, logos, and underlying technology, are owned by NexaID or its licensors and are protected by applicable intellectual property laws.
Subject to these Terms, NexaID grants users a limited, non-exclusive, non-transferable, revocable license to access and use the Service solely for its intended purposes.
Users shall not copy, modify, distribute, sell, sublicense, reverse engineer, decompile, or otherwise attempt to extract the source code or underlying technology of the Service, except to the extent permitted by applicable law.
Any feedback, suggestions, or ideas provided by users regarding the Service may be used by NexaID without restriction and without any obligation to compensate the user.
Nothing in these Terms grants users any ownership rights in the NexaID platform or related intellectual property.
#### Suspension or Termination
NexaID may suspend or terminate access to the Service if:
* a user violates these Terms;
* the Service is used in a manner that may harm the platform or other users;
* required by applicable law or regulatory requirements.
NexaID may also modify, suspend, or discontinue the Service at any time.
#### Changes to the Terms
NexaID may update these Terms from time to time.
If material changes are made, NexaID will provide notice through the website or other reasonable means.
Continued use of the Service after the updated Terms become effective constitutes acceptance of the updated Terms.
#### Governing Law
These Terms and any dispute arising out of or relating to the Service shall be governed by and construed in accordance with the laws of the Hong Kong Special Administrative Region, without regard to its conflict of laws principles.
Any dispute, controversy, or claim arising out of or relating to these Terms or the use of the Service shall be resolved through good faith negotiations between the parties. If such dispute cannot be resolved within thirty (30) days, it shall be submitted to the exclusive jurisdiction of the courts of Hong Kong.
Nothing in these Terms shall prevent NexaID from seeking injunctive or equitable relief in any court of competent jurisdiction where necessary to protect its intellectual property or confidential information.
#### Developer API Terms
**Scope of Services**
These Developer API Terms (“*Developer Terms*”) govern the access to and use of NexaID’s application programming interfaces, verification tools, and related services (collectively, the “*Developer API*”) by developers, platforms, or other service providers (“*Developer*”).
The Developer API enables Developers to verify cryptographic attestations generated through the NexaID infrastructure.
NexaID provides technical verification tools only and does not participate in the Developer’s business operations, customer onboarding processes, or regulatory compliance activities.
**Nature of the Service**
The Developer acknowledges and agrees that NexaID provides a technical attestation and verification infrastructure only.
The Service:
* does not perform identity verification;
* does not conduct KYC, AML, or regulatory due diligence;
* does not verify the real-world identity of any user.
Attestations verified through the Developer API merely confirm the validity of a cryptographic proof generated through the NexaID system.
The Developer is solely responsible for determining whether such attestations are sufficient for its own operational, business, or compliance purposes.
**Developer Responsibilities**
The Developer agrees that it is solely responsible for:
* complying with all applicable laws and regulations in connection with its use of the Developer API;
* implementing any required identity verification, KYC, AML, or customer due diligence procedures;
* determining how attestations generated through the NexaID infrastructure are used within its services.
The Developer shall not represent NexaID as performing identity verification, KYC, AML screening, or regulatory compliance functions.
**Prohibited Uses**
The Developer shall not use the Developer API:
* as a substitute for legally required identity verification or regulatory compliance procedures;
* in any manner that violates applicable laws or regulations;
* in connection with unlawful, fraudulent, or deceptive activities;
* in a way that attempts to manipulate or falsify attestations.
NexaID reserves the right to suspend or terminate API access if the Developer uses the Service in violation of these terms.
**Fees and Payment**
Fees for the Developer API (if any) shall be agreed separately between NexaID and the Developer.
Unless otherwise agreed in writing:
* all fees are non-refundable;
* NexaID may update pricing or billing structures with reasonable notice.
The Developer is responsible for all charges associated with its use of the Developer API.
**API Usage and Technical Limits**
The Developer must use the Developer API in accordance with NexaID’s technical documentation.
NexaID may implement reasonable limitations on API usage, including:
* rate limits;
* access restrictions;
* service quotas.
These limitations are intended to protect the integrity and stability of the Service.
NexaID may suspend or terminate Developer API access in accordance with the main Terms of Service. The disclaimers, limitations of liability, and indemnification provisions in the main Terms of Service apply equally to the Developer API.