{"_id":"@akhil-is-watching/privacycash","_rev":"3-4da579f7ad47ec269b9a32ef429acdf4","name":"@akhil-is-watching/privacycash","dist-tags":{"latest":"1.4.0"},"versions":{"1.2.0":{"name":"@akhil-is-watching/privacycash","version":"1.2.0","keywords":[],"author":"","license":"ISC","_id":"@akhil-is-watching/privacycash@1.2.0","maintainers":[{"name":"akhil-is-watching","email":"praj2k2@protonmail.com"}],"homepage":"https://github.com/Privacy-Cash/privacy-cash-sdk#readme","bugs":{"url":"https://github.com/Privacy-Cash/privacy-cash-sdk/issues"},"dist":{"shasum":"62e8d0e5e1a2c133f5d3431d7edc62c48b35b663","tarball":"https://registry.npmjs.org/@akhil-is-watching/privacycash/-/privacycash-1.2.0.tgz","fileCount":67,"integrity":"sha512-DngwVQemLmU+mAzy7YwzwzcpVgpg+CZawXRYMe3wrYrxb8yv8PJTJv5WbkujzgcKQ8xZFOChfkGwfbc+QfweUA==","signatures":[{"sig":"MEYCIQDFB04eBpQePSIhCI4zQCR+zwFD7xk2z/yvKUrBQkykZQIhAN5qwM6nWQ2HKlRjdXnu61JZpjuI3yUoCqB9tb59JbEA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20137820},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js","./utils":"./dist/exportUtils.js"},"gitHead":"51cde1e1cec054b8387fb6f768cb3e7a86a8c5ae","scripts":{"test":"vitest run --exclude \"**/__tests__/e2e.test.ts,**/__tests__/e2espl.test.ts,**/__tests__/e2e-wallet-provider.test.ts\"","build":"tsc","teste2e":"vitest run e2e.test.ts","teste2espl":"vitest run e2espl.test.ts","teste2e:wallet":"vitest run e2e-wallet-provider.test.ts"},"_npmUser":{"name":"akhil-is-watching","email":"praj2k2@protonmail.com"},"repository":{"url":"git+https://github.com/Privacy-Cash/privacy-cash-sdk.git","type":"git"},"_npmVersion":"11.6.0","description":"This is the SDK for Privacy Cash. It has been audited by Zigtur (https://x.com/zigtur).","directories":{},"_nodeVersion":"24.9.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","borsh":"^2.0.0","dotenv":"^17.2.2","ethers":"^6.15.0","snarkjs":"^0.7.5","tweetnacl":"^1.0.3","tmp-promise":"^3.0.3","@types/bn.js":"^5.2.0","ffjavascript":"^0.3.1","@types/snarkjs":"^0.7.9","@solana/web3.js":"^1.98.4","@coral-xyz/anchor":"^0.31.1","@solana/spl-token":"^0.4.14","node-localstorage":"^3.0.5","@ethersproject/sha2":"^5.8.0","@ethersproject/keccak256":"^5.8.0","@lightprotocol/hasher.rs":"^0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","@types/tmp":"^0.2.6","typescript":"^5.9.2","@types/node":"^24.3.0","@types/bn.js":"^5.1.5","@types/snarkjs":"^0.7.9","@types/node-localstorage":"^1.3.3"},"_npmOperationalInternal":{"tmp":"tmp/privacycash_1.2.0_1769009398822_0.3963306625750662","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@akhil-is-watching/privacycash","version":"1.3.0","keywords":["solana","privacy","zk","zero-knowledge","cryptocurrency","web3","blockchain","browser"],"author":"","license":"ISC","_id":"@akhil-is-watching/privacycash@1.3.0","maintainers":[{"name":"akhil-is-watching","email":"praj2k2@protonmail.com"}],"homepage":"https://github.com/Privacy-Cash/privacy-cash-sdk#readme","bugs":{"url":"https://github.com/Privacy-Cash/privacy-cash-sdk/issues"},"dist":{"shasum":"283f8c37c366f152e56be6d5ec65f550f1a383d5","tarball":"https://registry.npmjs.org/@akhil-is-watching/privacycash/-/privacycash-1.3.0.tgz","fileCount":73,"integrity":"sha512-+4N0/Pr+eZABzexe8KKx3kMj29r6qxLMeEy+RYqlpyGsGTmvb+1DwmkpssW+vxyFbqK+38+XffX6Ukf947+W7A==","signatures":[{"sig":"MEYCIQDsIpdOOAR3FtMs+tFejSxnmlQ860j0GdfR79XBn56KkwIhANXfVnmIaSGfg+Fh5v9DpMMz1b5SN0swe1nWa/ct4Ki6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20163592},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","browser":{"fs":false,"url":false,"path":false,"crypto":false,"node-localstorage":false},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./utils":{"types":"./dist/exportUtils.d.ts","import":"./dist/exportUtils.js","default":"./dist/exportUtils.js"}},"gitHead":"fa1a80caadf352ab77a8f436d7fa435accb4d303","scripts":{"test":"vitest run --exclude \"**/__tests__/e2e.test.ts,**/__tests__/e2espl.test.ts,**/__tests__/e2e-wallet-provider.test.ts\"","build":"tsc","teste2e":"vitest run e2e.test.ts","teste2espl":"vitest run e2espl.test.ts","teste2e:wallet":"vitest run e2e-wallet-provider.test.ts"},"_npmUser":{"name":"akhil-is-watching","email":"praj2k2@protonmail.com"},"repository":{"url":"git+https://github.com/Privacy-Cash/privacy-cash-sdk.git","type":"git"},"_npmVersion":"11.6.0","description":"Privacy-preserving transactions on Solana - browser and Node.js compatible","directories":{},"sideEffects":false,"_nodeVersion":"24.9.0","dependencies":{"bs58":"^6.0.0","bn.js":"^5.2.2","borsh":"^2.0.0","dotenv":"^17.2.2","ethers":"^6.15.0","snarkjs":"^0.7.5","tweetnacl":"^1.0.3","tmp-promise":"^3.0.3","@types/bn.js":"^5.2.0","ffjavascript":"^0.3.1","@types/snarkjs":"^0.7.9","@solana/web3.js":"^1.98.4","@coral-xyz/anchor":"^0.31.1","@solana/spl-token":"^0.4.14","node-localstorage":"^3.0.5","@ethersproject/sha2":"^5.8.0","@ethersproject/keccak256":"^5.8.0","@lightprotocol/hasher.rs":"^0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","@types/tmp":"^0.2.6","typescript":"^5.9.2","@types/node":"^24.3.0","@types/bn.js":"^5.1.5","@types/snarkjs":"^0.7.9","@types/node-localstorage":"^1.3.3"},"_npmOperationalInternal":{"tmp":"tmp/privacycash_1.3.0_1769013321420_0.23261460978687643","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@akhil-is-watching/privacycash","version":"1.4.0","description":"Privacy-preserving transactions on Solana - browser and Node.js compatible","main":"dist/index.js","module":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/Privacy-Cash/privacy-cash-sdk.git"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./utils":{"types":"./dist/exportUtils.d.ts","import":"./dist/exportUtils.js","default":"./dist/exportUtils.js"}},"types":"dist/index.d.ts","type":"module","sideEffects":false,"browser":{"node-localstorage":false,"crypto":false,"path":false,"url":false,"fs":false},"scripts":{"build":"tsc","test":"vitest run --exclude \"**/__tests__/e2e.test.ts,**/__tests__/e2espl.test.ts,**/__tests__/e2e-wallet-provider.test.ts\"","teste2e":"vitest run e2e.test.ts","teste2espl":"vitest run e2espl.test.ts","teste2e:wallet":"vitest run e2e-wallet-provider.test.ts"},"keywords":["solana","privacy","zk","zero-knowledge","cryptocurrency","web3","blockchain","browser"],"author":"","license":"ISC","dependencies":{"@coral-xyz/anchor":"^0.31.1","@ethersproject/keccak256":"^5.8.0","@ethersproject/sha2":"^5.8.0","@lightprotocol/hasher.rs":"^0.2.1","@solana/spl-token":"^0.4.14","@solana/web3.js":"^1.98.4","@types/bn.js":"^5.2.0","@types/snarkjs":"^0.7.9","bn.js":"^5.2.2","borsh":"^2.0.0","bs58":"^6.0.0","dotenv":"^17.2.2","ethers":"^6.15.0","ffjavascript":"^0.3.1","node-localstorage":"^3.0.5","snarkjs":"^0.7.5","tmp-promise":"^3.0.3","tweetnacl":"^1.0.3"},"devDependencies":{"@types/bn.js":"^5.1.5","@types/node":"^24.3.0","@types/node-localstorage":"^1.3.3","@types/snarkjs":"^0.7.9","@types/tmp":"^0.2.6","typescript":"^5.9.2","vitest":"^3.2.4"},"_id":"@akhil-is-watching/privacycash@1.4.0","gitHead":"fa1a80caadf352ab77a8f436d7fa435accb4d303","bugs":{"url":"https://github.com/Privacy-Cash/privacy-cash-sdk/issues"},"homepage":"https://github.com/Privacy-Cash/privacy-cash-sdk#readme","_nodeVersion":"24.9.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-F8tMrAnv/uPRHE8m5BspgdlY2iIwP2WTJMe/mafaOD8qrA07rJD+OMf55nULOQk+GEB7BAuhccqcwSYXjdUY6A==","shasum":"e266137165ecec52513f56a957fd43a22ddac514","tarball":"https://registry.npmjs.org/@akhil-is-watching/privacycash/-/privacycash-1.4.0.tgz","fileCount":73,"unpackedSize":20166279,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGPFDXKC6kAze02Cx+mMXA0LVz6O7zP4DxkkDUfzDZ9SAiBhM94VJsXWG9pnrnmHeSCx3FUm4PW2lO98JyCJYDv0XA=="}]},"_npmUser":{"name":"akhil-is-watching","email":"praj2k2@protonmail.com"},"directories":{},"maintainers":[{"name":"akhil-is-watching","email":"praj2k2@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/privacycash_1.4.0_1769015812892_0.18246893544409604"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-21T15:29:58.715Z","modified":"2026-01-21T17:16:53.500Z","1.2.0":"2026-01-21T15:29:59.316Z","1.3.0":"2026-01-21T16:35:21.937Z","1.4.0":"2026-01-21T17:16:53.392Z"},"bugs":{"url":"https://github.com/Privacy-Cash/privacy-cash-sdk/issues"},"license":"ISC","homepage":"https://github.com/Privacy-Cash/privacy-cash-sdk#readme","keywords":["solana","privacy","zk","zero-knowledge","cryptocurrency","web3","blockchain","browser"],"repository":{"type":"git","url":"git+https://github.com/Privacy-Cash/privacy-cash-sdk.git"},"description":"Privacy-preserving transactions on Solana - browser and Node.js compatible","maintainers":[{"name":"akhil-is-watching","email":"praj2k2@protonmail.com"}],"readme":"## Privacy Cash SDK\nThis is the SDK for Privacy Cash. It has been audited by Zigtur (https://x.com/zigtur).\n\n### Disclaimer\nThis SDK powers Privacy Cash's frontend, assuming the single wallet use case. If you use it or published npm library from this repo, please fully test and beware of the inherent software risks or potential bugs.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n### Usage\nThis SDK provides APIs for developers to interact with Privacy Cash relayers easily. Developers can easily deposit/withdraw/query balances in Privacy Cash solana program.\n\nMain APIs for this SDK are: \na. for SOL: \ndeposit(), withdraw(), getPrivateBalance() \nb. for SPL (currently supporting USDC and USDT): \ndepositSPL(), withdrawSPL(), getPrivateBalanceSpl()\n\nFor backend integration:  \nCheck the example project under /example folder. The code should be fairly self-explanatory.  \n\nFor frontend integration:  \nCheck the example project above, but also refer to: https://gist.github.com/SocialfiPanda/c63786b5dd156e59847e9a4afca31a77\n\nCommon Issues:  \nNext.js project needs to update the postinstall build scripts:  \n```\n\"scripts\": {\n    \"postinstall\": \"cp node_modules/@lightprotocol/hasher.rs/dist/hasher_wasm_simd_bg.wasm node_modules/@lightprotocol/hasher.rs/dist/browser-fat/es/ && cp node_modules/@lightprotocol/hasher.rs/dist/light_wasm_hasher_bg.wasm node_modules/@lightprotocol/hasher.rs/dist/browser-fat/es/\",\n},..}\n```\n\nUse node version 24 or above.\n\n### Tests\n1. To run unit tests:\n```\n    npm test\n```\n2. To run e2e test (on Mainnet), you need to put your private key (PRIVATE_KEY) inside .env file under the project root directory, and then run:\n```\n    npm run teste2e\n```\nRunning e2e tests will cost some transaction fees on your wallet, so don't put too much SOL into your wallet. Maybe put 0.1 SOL, and the tests might cost 0.02 SOL.\n","readmeFilename":"README.md"}