> For the complete documentation index, see [llms.txt](https://hinkal-team.gitbook.io/hinkal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hinkal-team.gitbook.io/hinkal/hinkal-sdk/sdk-integration.md).

# 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.

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.
