SDK Integration
Content Security Policy
The Hinkal SDK depends on snarkjs, a powerful library that enables local zero-knowledge proving in both browser and Node.js environments. Snarkjs leverages WebAssembly to perform complex cryptographic computations efficiently.
As a result, any client-side application integrating the Hinkal SDK must adjust its Content-Security-Policy to allow the ‘wasm-unsafe-eval’ 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 for setting up the SDK in a server-side environment.
React Integration: See the React integration example to learn how to use the SDK in a client-side React application.
Next.js Integration: Refer to the Next.js integration example for implementing the SDK in a server-rendered React application.
Last updated

