DApp Integration Without Primus Extension

Overview
The Primus page core SDK is a wrapped zkTLS algorithm, designed for developers who want to build applications without relying on the Primus Extension. This SDK allows web pages to directly invoke the Primus zkTLS algorithm interface and generate zkTLS attestations (proofs) by interacting with a Primus Attestor.
The differences of page core SDK with other SDKs are demonstrated in this figure.
While the Primus Page Core SDK streamlines the user experience by eliminating the dependency on the Primus Extension, the resulting web application still needs user credentials to access the underlying data source, as the zkTLS protocol is initiated from the client side.
How it Works
Here's a simplified flow of how the Primus Page Core SDK works on your project:
1. Create Project: Create a project on the Primus Developer Hub to obtain a paired appID and appSecret, then configure them in your project.
2. Configure Verification Parameters: Ensure that two key parameters, including the request parameters and response data paths, are configured correctly. Refer to the Test Example for guidance.
3. Execute zkTLS Protocol: Invoke the zkTLS protocol to initiate the data verification process.
4. Verify Data Verification Result: Your Page retrieves the verification result from the Page Core SDK and validates Primus' signature to ensure trustworthiness.
5. Execute Business Logic: Based on the verification result, your page executes the relevant business logic, such as submitting the proof on-chain or triggering other operations.