{"_id":"@arc76/bitcoincash","_rev":"3-4f4900b73866cf909ec273cda6890d02","name":"@arc76/bitcoincash","dist-tags":{"latest":"1.6.2026080407"},"versions":{"1.0.32026080318":{"name":"@arc76/bitcoincash","version":"1.0.32026080318","keywords":["arc76","Bitcoin Cash","cryptography","account generation"],"author":{"name":"Ludovit Scholtz"},"license":"MIT","_id":"@arc76/bitcoincash@1.0.32026080318","maintainers":[{"name":"arc76account","email":"arc76@biatec.io"}],"homepage":"https://github.com/scholtz/ARC76Account#readme","bugs":{"url":"https://github.com/scholtz/ARC76Account/issues"},"dist":{"shasum":"0771572b9fc3a10438405ae0e765bede09318e6b","tarball":"https://registry.npmjs.org/@arc76/bitcoincash/-/bitcoincash-1.0.32026080318.tgz","fileCount":6,"integrity":"sha512-tdJ6OgUoYHeq8F1GmRLWk5JmKGxsKKWqOrHWkLwFi1sCZvNV6+ldPQtIwKCxcrGkUU/mFY/xCo0AnVK0UnV/vA==","signatures":[{"sig":"MEQCIDufcQHCkgD1HCtrAhhEI369k/djWuXTEzvAzRm0tC3YAiAE7cyTQ9fk9VxngXs0PXUDSQjaB07NZJZQ22WZ7tuIsg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6050},"main":"dist/index.js","type":"commonjs","_from":"file:/tmp/arc76-pack/arc76-bitcoincash-1.0.32026080318.tgz","types":"dist/index.d.ts","scripts":{"test":"jest","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"arc76account","email":"arc76@biatec.io"},"_resolved":"/tmp/arc76-pack/arc76-bitcoincash-1.0.32026080318.tgz","_integrity":"sha512-tdJ6OgUoYHeq8F1GmRLWk5JmKGxsKKWqOrHWkLwFi1sCZvNV6+ldPQtIwKCxcrGkUU/mFY/xCo0AnVK0UnV/vA==","repository":{"url":"git+https://github.com/scholtz/ARC76Account.git","type":"git","directory":"typescript/packages/bitcoincash"},"_npmVersion":"10.9.8","description":"Deterministic ARC76 account derivation for Bitcoin Cash (CashAddr addresses). https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0076.md","directories":{},"_nodeVersion":"22.23.1","dependencies":{"ecpair":"^3.0.1","cashaddrjs":"^0.4.4","@arc76/core":"^1.0.0","bitcoinjs-lib":"^7.0.1","tiny-secp256k1":"^2.2.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bitcoincash_1.0.32026080318_1785783600259_0.8200524055640326","host":"s3://npm-registry-packages-npm-production"}},"1.5.2026080320":{"name":"@arc76/bitcoincash","version":"1.5.2026080320","keywords":["arc76","Bitcoin Cash","cryptography","account generation"],"author":{"name":"Ludovit Scholtz"},"license":"MIT","_id":"@arc76/bitcoincash@1.5.2026080320","maintainers":[{"name":"arc76account","email":"arc76@biatec.io"}],"homepage":"https://github.com/scholtz/ARC76Account#readme","bugs":{"url":"https://github.com/scholtz/ARC76Account/issues"},"dist":{"shasum":"3a2ae4f99506b1918036a774be9053ddc7d502d8","tarball":"https://registry.npmjs.org/@arc76/bitcoincash/-/bitcoincash-1.5.2026080320.tgz","fileCount":6,"integrity":"sha512-ALQw/VvDpImsRa7M0XwOZEawup9UvGhIFyu3u8WGutGZ/wgszVKLtTuGPx9ToCRU8P797Wcgt7SlggEYcVRKZw==","signatures":[{"sig":"MEUCIAIU05pNNAkgsnMj+aVdQffCM+IuCkKHPwqdcWCOF8/IAiEA9euwxr5bEuwuvuSZUco0nR+aIn2SotvyH8JSR6nEQCE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6404},"main":"dist/index.js","type":"commonjs","_from":"file:/tmp/arc76-pack/arc76-bitcoincash-1.5.2026080320.tgz","types":"dist/index.d.ts","scripts":{"test":"jest","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"arc76account","email":"arc76@biatec.io"},"_resolved":"/tmp/arc76-pack/arc76-bitcoincash-1.5.2026080320.tgz","_integrity":"sha512-ALQw/VvDpImsRa7M0XwOZEawup9UvGhIFyu3u8WGutGZ/wgszVKLtTuGPx9ToCRU8P797Wcgt7SlggEYcVRKZw==","repository":{"url":"git+https://github.com/scholtz/ARC76Account.git","type":"git","directory":"typescript/packages/bitcoincash"},"_npmVersion":"10.9.8","description":"Deterministic ARC76 account derivation for Bitcoin Cash (CashAddr addresses). https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0076.md","directories":{},"_nodeVersion":"22.23.1","dependencies":{"ecpair":"^3.0.1","cashaddrjs":"^0.4.4","@arc76/core":"^1.0.0","bitcoinjs-lib":"^7.0.1","tiny-secp256k1":"^2.2.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bitcoincash_1.5.2026080320_1785788478553_0.1961312575728833","host":"s3://npm-registry-packages-npm-production"}},"1.6.2026080407":{"name":"@arc76/bitcoincash","version":"1.6.2026080407","main":"dist/index.js","types":"dist/index.d.ts","type":"commonjs","publishConfig":{"access":"public"},"license":"MIT","author":{"name":"Ludovit Scholtz"},"description":"Deterministic ARC76 account derivation for Bitcoin Cash (CashAddr addresses). https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0076.md","repository":{"type":"git","url":"git+https://github.com/scholtz/ARC76Account.git","directory":"typescript/packages/bitcoincash"},"keywords":["arc76","Bitcoin Cash","cryptography","account generation"],"dependencies":{"bitcoinjs-lib":"^7.0.1","cashaddrjs":"^0.4.4","ecpair":"^3.0.1","tiny-secp256k1":"^2.2.4","@arc76/core":"^1.0.0"},"scripts":{"build":"tsc -p tsconfig.json","test":"jest"},"_id":"@arc76/bitcoincash@1.6.2026080407","bugs":{"url":"https://github.com/scholtz/ARC76Account/issues"},"homepage":"https://github.com/scholtz/ARC76Account#readme","_integrity":"sha512-Oe8D1OND22Ot6lnPK+hhk1yCaQn71ZM9qub/RlMd26Nn2F4ws9sUOwqh3nY4fo2lC/DAlRHQsaikLnqf9JwtcA==","_resolved":"/tmp/arc76-pack/arc76-bitcoincash-1.6.2026080407.tgz","_from":"file:/tmp/arc76-pack/arc76-bitcoincash-1.6.2026080407.tgz","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-Oe8D1OND22Ot6lnPK+hhk1yCaQn71ZM9qub/RlMd26Nn2F4ws9sUOwqh3nY4fo2lC/DAlRHQsaikLnqf9JwtcA==","shasum":"f3825488937a792e961e8a75faa5498abe69e40f","tarball":"https://registry.npmjs.org/@arc76/bitcoincash/-/bitcoincash-1.6.2026080407.tgz","fileCount":6,"unpackedSize":6404,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEgL28A6+Fc7Ypj5lossMAJACAKcJs2EwXkO6+F+Bij6AiEAkbHMNYdZJ3Zg6YNf6xzZrMGMPDo1+9Rq/S4MCNwWBZo="}]},"_npmUser":{"name":"arc76account","email":"arc76@biatec.io"},"directories":{},"maintainers":[{"name":"arc76account","email":"arc76@biatec.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bitcoincash_1.6.2026080407_1785828266531_0.3973351692216782"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-03T19:00:00.165Z","modified":"2026-08-04T07:24:26.799Z","1.0.32026080318":"2026-08-03T19:00:00.386Z","1.5.2026080320":"2026-08-03T20:21:18.766Z","1.6.2026080407":"2026-08-04T07:24:26.655Z"},"bugs":{"url":"https://github.com/scholtz/ARC76Account/issues"},"author":{"name":"Ludovit Scholtz"},"license":"MIT","homepage":"https://github.com/scholtz/ARC76Account#readme","keywords":["arc76","Bitcoin Cash","cryptography","account generation"],"repository":{"type":"git","url":"git+https://github.com/scholtz/ARC76Account.git","directory":"typescript/packages/bitcoincash"},"description":"Deterministic ARC76 account derivation for Bitcoin Cash (CashAddr addresses). https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0076.md","maintainers":[{"name":"arc76account","email":"arc76@biatec.io"}],"readme":"# @arc76/bitcoincash\n\n<p align=\"center\"><img src=\"../../../assets/arc76-logo-512.png\" alt=\"ARC76 Account\" width=\"140\"></p>\n\nDeterministic [ARC76](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0076.md)\naccount derivation for **Bitcoin Cash**.\n\n## Usage\n\n```\nnpm i @arc76/bitcoincash --save\n```\n\n```ts\nimport * as bitcoin from \"bitcoinjs-lib\";\nimport { encode } from \"cashaddrjs\";\nimport { getAccount, getEmailAccount } from \"@arc76/bitcoincash\";\n\nconst account = await getAccount(password); // slot 0, an ECPair keypair\nconst hash160 = bitcoin.crypto.hash160(Buffer.from(account.publicKey));\nconst address = encode(\"bitcoincash\", \"P2PKH\", hash160); // \"bitcoincash:q...\"\nconst wif = account.toWIF();\n\nconst emailAccount = await getEmailAccount(email, password);\n```\n\n`getAccount`/`getEmailAccount` return an `ecpair` `ECPairInterface` (the same secp256k1 key\ntype as `@arc76/bitcoin` — only the address format differs). Use `cashaddrjs`'s `encode(...)`\nover the hash160 of the public key for the **CashAddr** address (`bitcoincash:q...`), the\nstandard Bitcoin Cash address format since the network-wide 2018 CashAddr migration — not\nBitcoin's Base58Check or bech32. `.toWIF()` gives the private key in the same WIF format\nBitcoin uses (WIF doesn't depend on the CashAddr/Base58Check distinction).\n\nPlease use a password of at least 50 characters for real accounts — the account's security is\nentirely the password's security.\n\n> ⚠️ **Same-curve chains share the literal same private key.** `@arc76/bitcoin`,\n> `@arc76/bitcoincash`, and `@arc76/ethereum` derive the **identical secp256k1 private key**\n> from the same password/email/slot — leaking the key on one of those chains leaks it on all of\n> them. Use a different password (or `slot`) per chain if you need isolation.\n","readmeFilename":"README.md"}