Skip to content

Commit c385397

Browse files
MantisClonegitbook-bot
authored andcommitted
GITBOOK-128: chore: Clarify required Content Security Policy changes to use Hinkal Private Payments
1 parent e0c7070 commit c385397

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/advanced/request-network-sdk/sdk-guides/payment/hinkal-private-payments.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ const tx = await sendToHinkalShieldedAddressFromPublic({
9393
See [quickstart-browser.md](../../get-started/quickstart-browser.md "mention") for how to instantiate a `Signer`
9494
{% endhint %}
9595

96+
## **Content Security Policy**
97+
98+
The Hinkal SDK depends on [snarkjs](https://www.npmjs.com/package/snarkjs), a powerful library that enables local zero-knowledge proving in browser and Node.js environments. Snarkjs leverages [WebAssembly](https://webassembly.org/) to perform complex cryptographic computations efficiently.
99+
100+
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.
101+
102+
See [Hinkal SDK Integration](https://hinkal-team.gitbook.io/hinkal/developers/sdk-integration) for more details.
103+
96104
## Details
97105

98-
For more details, refer to the [Pull Request #1482](https://github.com/RequestNetwork/requestNetwork/pull/1482) on GitHub.
106+
For more details about Hinkal Private Payments, refer to [Pull Request #1482](https://github.com/RequestNetwork/requestNetwork/pull/1482) on GitHub.

0 commit comments

Comments
 (0)