# SDK Integration

**Content Security Policy**

The Hinkal SDK depends on [snarkjs](https://www.npmjs.com/package/snarkjs), a powerful library that enables local zero-knowledge proving in both browser and Node.js environments. Snarkjs leverages [WebAssembly](https://webassembly.org/) to perform complex cryptographic computations efficiently.&#x20;

As a result, any client-side application integrating the Hinkal SDK must adjust its <mark style="color:purple;">**Content-Security-Policy**</mark> to allow the *‘<mark style="color:purple;">**wasm-unsafe-eval**</mark>’* directive under the script-src setting. This configuration ensures that the cryptographic processes can execute properly.

### Example Integrations

Explore examples of integrating the Hinkal SDK in various environments:

* **Node.js Integration**: Check out the [Node.js integration example](https://github.com/Hinkal-Protocol/Node-Demo-App) for setting up the SDK in a server-side environment.
* **React Integration**: See the [React integration example](https://github.com/Hinkal-Protocol/Hinkal-Demo-App) to learn how to use the SDK in a client-side React application.
* **Next.js Integration**: Refer to the [Next.js integration example](https://github.com/Hinkal-Protocol/hinkal-next-demo-app) for implementing the SDK in a server-rendered React application.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hinkal-team.gitbook.io/hinkal/for-integrators/sdk-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
