Skip to main content

Sample Project

https://github.com/Privacy-Cash/privacy-cash-sdk/blob/main/example/

Installation

Requires Node.js 24+. The SDK is written in TypeScript and includes type definitions.

Initialization

Supported Private Key Formats

Interacting with Privacy Cash

Once above steps are done, client can query balance, make deposits and withdrawals.

Warnings

Privacy Cash SDK requires consistent signature generation, otherwise the deposited tokens might be lost forever since the encrypted UTXO can’t be decrypted. For frontend, please make sure deriveEncryptionKeyFromSignature() generates the same result for the same params passed in, and for backend, please make sure deriveEncryptionKeyFromWallet() generates the same result. Most wallets returns the same result, but some non major wallets might generate different result.