Overview
Overview
The Primus zkTLS SDK provides developers with the tools to easily integrate data verification solutions into dApps, without the need to develop backend cryptography.
With the zkTLS SDK, you can verify any data from the internet, generate proof, and enable on-chain verifications. To verify customized data from your users, follow these simple steps:
Create a template: The Primus Develop Hub offers an easy setup process to quickly create a data verification template that includes the target data items, allowing you to test the verification process.
Create a project: Obtained a paired appID and secret, then configure them into your dApp to utilize our zkTLS SDK and APIs.
Please refer the Developer Hub for more details.
How it Works
Here's a simplified flow of how Primus zkTLS SDK works in a typical web application:
1. Create/Search Template: Login to the Primus Developer Hub and create or search for a template containing the data you need to verify, a key step in integrating the SDK into your app.
2. Create Project: Create a project on the Primus Developer Hub to obtain an appID and secret. These are required to use the Primus zkTLS SDK.
3. Configure Verification Parameters: Ensure the SDK parameters are configured correctly. You can refer to test and production examples for guidance.
4. Execute zkTLS Protocol: Invoke the zkTLS protocol via your dApp to initiate the data verification process.
5. Verify Data Verification Result: Your dApp retrieves the verification result from the zkTLS SDK and checks Primus' signature to ensure trustworthiness.
6. Execute Business Logic: Based on the verification result, your dApp executes the relevant business logic, such as submitting the proof on-chain or triggering other operations.
Interact with Blockchains
The Primus zkTLS protocol is compatible with multiple blockchains. We provide smart contracts that can be deployed on various blockchains to verify data proofs generated by users through the zkTLS SDK. Currently, support is available for several testnets and mainnets. For more details, please refer to the on-chain interactions.
Quick Start for Beginners
New to Primus? Here's how to get started:
Installation Get the SDK set up in your project.
Test Example Understand how to use the JS SDK.
Stay Connected
Keep up with the latest Primus developments:
- Star our GitHub Repository
- Join our Discord Community