{"_id":"@aioha/tx-digest","_rev":"8-dc656b4f97f97b6c33f35c8e9315a0b5","name":"@aioha/tx-digest","dist-tags":{"latest":"2.1.1"},"versions":{"1.0.0":{"name":"@aioha/tx-digest","version":"1.0.0","keywords":[],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/tx-digest@1.0.0","maintainers":[{"name":"techcoderx","email":"engtianxi@outlook.com"}],"homepage":"https://github.com/aioha-hive/tx-digest#readme","bugs":{"url":"https://github.com/aioha-hive/tx-digest/issues"},"dist":{"shasum":"36124ffe8e39567f96847f6de39e46ddadff541b","tarball":"https://registry.npmjs.org/@aioha/tx-digest/-/tx-digest-1.0.0.tgz","fileCount":12,"integrity":"sha512-pPT4s9CjAakmZ/Pqk/tWce8PuLBwcBDIBV0jlosy1+lvyMMDljf0YkJMi/Lu8VaK1bALVo/uxQqUaRmqpkQEZA==","signatures":[{"sig":"MEQCIGWiEUChoQyNc7LXni8VCaNIpJ++iT8shubeonm0QLTpAiAPVrms0uvCgVKHkvWZvFZMiWOf5dqYdCc26QhGFKBBjA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104637},"main":"index.js","type":"module","types":"index.d.ts","gitHead":"2e91703401ac89e2848e8008fc5955461a1e5345","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"techcoderx","email":"engtianxi@outlook.com"},"repository":{"url":"git+https://github.com/aioha-hive/tx-digest.git"},"_npmVersion":"10.9.2","description":"Hive transaction serializer and digest","directories":{},"_nodeVersion":"22.13.1","dependencies":{"bs58":"^6.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/tx-digest_1.0.0_1741098807346_0.6965952913131841","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aioha/tx-digest","version":"1.0.1","keywords":[],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/tx-digest@1.0.1","maintainers":[{"name":"techcoderx","email":"engtianxi@outlook.com"}],"homepage":"https://github.com/aioha-hive/tx-digest#readme","bugs":{"url":"https://github.com/aioha-hive/tx-digest/issues"},"dist":{"shasum":"fe81df22eb681ffb7c47d53a1ba0e794e904948e","tarball":"https://registry.npmjs.org/@aioha/tx-digest/-/tx-digest-1.0.1.tgz","fileCount":12,"integrity":"sha512-tz+LVvXKzwcB5VyHV3a0vpaFuQDQc/eOKphunbts71MS5SxEQl+s+k6i9v+sX/GCfqXE/uISxprO6g3hDSQEIA==","signatures":[{"sig":"MEUCIHtxcTtBbvWMVc1aLwf0Vtf/Hi22WaJEfxRRPXEegVTkAiEA5aRo3SurL10do31HeTCsAKSBKH+HZhJZU1ao8sIV/BQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":68348},"main":"index.js","type":"module","_from":"file:aioha-tx-digest-1.0.1.tgz","types":"index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"techcoderx","email":"engtianxi@outlook.com"},"_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/60865297dee7943a2660abb15ba5aa7d/aioha-tx-digest-1.0.1.tgz","_integrity":"sha512-tz+LVvXKzwcB5VyHV3a0vpaFuQDQc/eOKphunbts71MS5SxEQl+s+k6i9v+sX/GCfqXE/uISxprO6g3hDSQEIA==","repository":{"url":"git+https://github.com/aioha-hive/tx-digest.git"},"_npmVersion":"10.9.2","description":"Hive transaction serializer and digest","directories":{},"_nodeVersion":"22.13.1","dependencies":{"bs58":"^6.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/tx-digest_1.0.1_1744946263356_0.045509956045323596","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@aioha/tx-digest","version":"1.0.2","keywords":[],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/tx-digest@1.0.2","maintainers":[{"name":"techcoderx","email":"engtianxi@outlook.com"}],"homepage":"https://github.com/aioha-hive/tx-digest#readme","bugs":{"url":"https://github.com/aioha-hive/tx-digest/issues"},"dist":{"shasum":"e1ba393eb21c1c9f17f04a62cedb778144619a52","tarball":"https://registry.npmjs.org/@aioha/tx-digest/-/tx-digest-1.0.2.tgz","fileCount":12,"integrity":"sha512-qgNv+/cbWHcKnXC8oXYQStnrpSEIuR1i6pPytjuYw7fpM9V77xRwPHObqRn93C4wqpF5cG6qRzM7SSAf1NNNEw==","signatures":[{"sig":"MEYCIQD2DMuBInvF36jBfoXpU8xxS5Lj5+qXd1LffLxMLXidpAIhANQkSsBnC7vIeyfw9Df9Fq2Sk4dBBM40jiSskaLzuAFf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61761},"main":"index.js","type":"module","_from":"file:aioha-tx-digest-1.0.2.tgz","types":"index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"techcoderx","email":"engtianxi@outlook.com"},"_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/3c4607b26e1cee5f412c84f0ad69607c/aioha-tx-digest-1.0.2.tgz","_integrity":"sha512-qgNv+/cbWHcKnXC8oXYQStnrpSEIuR1i6pPytjuYw7fpM9V77xRwPHObqRn93C4wqpF5cG6qRzM7SSAf1NNNEw==","repository":{"url":"git+https://github.com/aioha-hive/tx-digest.git"},"_npmVersion":"10.9.2","description":"Hive transaction serializer and digest","directories":{},"_nodeVersion":"22.13.1","dependencies":{"bs58":"^6.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/tx-digest_1.0.2_1744948327416_0.34004045106699166","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@aioha/tx-digest","version":"2.0.0","keywords":[],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/tx-digest@2.0.0","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"homepage":"https://github.com/aioha-hive/tx-digest#readme","bugs":{"url":"https://github.com/aioha-hive/tx-digest/issues"},"dist":{"shasum":"0e0f352c3a8731a983ef86649c11b0be8610543b","tarball":"https://registry.npmjs.org/@aioha/tx-digest/-/tx-digest-2.0.0.tgz","fileCount":11,"integrity":"sha512-ZLMpsNLv4HAvPdWQOPmUc5s/HsFPf1a4LvQRKQZoIOmq3bEtjKEjnTVTx13PvRSddjrVOWAwgam77oaj3/7a3g==","signatures":[{"sig":"MEUCIHloigdM/M/EB4RIm3dcmGcN7d2/6wjDsgoiJk8vALiKAiEA1PoJ76cp76Q3NRvwEya1IGg9bnUnXXTiKkQxZCON4sY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59415},"main":"index.js","type":"module","_from":"file:aioha-tx-digest-2.0.0.tgz","types":"index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/7e32c9073ca924d2b1fb3b0c8e3260f0/aioha-tx-digest-2.0.0.tgz","_integrity":"sha512-ZLMpsNLv4HAvPdWQOPmUc5s/HsFPf1a4LvQRKQZoIOmq3bEtjKEjnTVTx13PvRSddjrVOWAwgam77oaj3/7a3g==","repository":{"url":"git+https://github.com/aioha-hive/tx-digest.git"},"_npmVersion":"10.9.2","description":"Hive transaction serializer and digest","directories":{},"_nodeVersion":"22.15.0","dependencies":{"bs58":"^6.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/tx-digest_2.0.0_1759052824199_0.7498912974245922","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@aioha/tx-digest","version":"2.0.1","keywords":[],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/tx-digest@2.0.1","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"homepage":"https://github.com/aioha-hive/tx-digest#readme","bugs":{"url":"https://github.com/aioha-hive/tx-digest/issues"},"dist":{"shasum":"97ac4c357f77b53d0c1e373d60f89666f9af9012","tarball":"https://registry.npmjs.org/@aioha/tx-digest/-/tx-digest-2.0.1.tgz","fileCount":12,"integrity":"sha512-fl2xm58YB/ZvzN9Pb6hJfhXlknpoq3EYXHD8QJ5Xn6O6w8arkxOUWuYEGD82lZnFFsZsMfQvniExrrvnpvgI1A==","signatures":[{"sig":"MEUCIDxCi7S+1cEgf0G6yqXZxKtzALzbuCVvvx6QPHjJMeI4AiEAxO/gmsoW/Wo1AgO/Y7g7pZMEZFC4F12tCmZ5AbD3feI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60853},"main":"index.js","type":"module","_from":"file:aioha-tx-digest-2.0.1.tgz","types":"index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/2b25ce39e9ef8e08458bda7cf85160b8/aioha-tx-digest-2.0.1.tgz","_integrity":"sha512-fl2xm58YB/ZvzN9Pb6hJfhXlknpoq3EYXHD8QJ5Xn6O6w8arkxOUWuYEGD82lZnFFsZsMfQvniExrrvnpvgI1A==","repository":{"url":"git+https://github.com/aioha-hive/tx-digest.git"},"_npmVersion":"10.9.2","description":"Hive transaction serializer and digest","directories":{},"_nodeVersion":"22.15.0","dependencies":{"bs58":"^6.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/tx-digest_2.0.1_1763819601976_0.588863756735535","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@aioha/tx-digest","version":"2.0.2","keywords":[],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/tx-digest@2.0.2","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"homepage":"https://github.com/aioha-hive/tx-digest#readme","bugs":{"url":"https://github.com/aioha-hive/tx-digest/issues"},"dist":{"shasum":"42864070ef86da470b607281f937d53b5a7cefcb","tarball":"https://registry.npmjs.org/@aioha/tx-digest/-/tx-digest-2.0.2.tgz","fileCount":13,"integrity":"sha512-sY4fLevN7MjggVO4lG+H8iibw6k22ChXmE4mYVU5GitL3mLvoj+VU/zA3KQVxcsszziF1Y/5+TYnnd99vGtx5g==","signatures":[{"sig":"MEYCIQCoIBZseV7I80X1iBR61tmicl5uD2RwrHoYP4xq2XhlxQIhAO7gRPfmqZQrjyzbAhC9usg6ZBXkQvsTn8VAstI17nHX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":73158},"main":"index.js","type":"module","_from":"file:aioha-tx-digest-2.0.2.tgz","types":"index.d.ts","scripts":{"test":"vitest"},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/baefa4852b5386618ff8546ffec81cdd/aioha-tx-digest-2.0.2.tgz","_integrity":"sha512-sY4fLevN7MjggVO4lG+H8iibw6k22ChXmE4mYVU5GitL3mLvoj+VU/zA3KQVxcsszziF1Y/5+TYnnd99vGtx5g==","repository":{"url":"git+https://github.com/aioha-hive/tx-digest.git"},"_npmVersion":"10.9.2","description":"Hive transaction serializer and digest","directories":{},"_nodeVersion":"22.15.0","dependencies":{"bs58":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.17","@noble/hashes":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/tx-digest_2.0.2_1768805119142_0.608810109591128","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@aioha/tx-digest","version":"2.1.0","keywords":[],"author":{"name":"techcoderx"},"license":"MIT","_id":"@aioha/tx-digest@2.1.0","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"homepage":"https://github.com/aioha-hive/tx-digest#readme","bugs":{"url":"https://github.com/aioha-hive/tx-digest/issues"},"dist":{"shasum":"109dca7219077a8e2cbe4a0a2d0daa15a3fdce07","tarball":"https://registry.npmjs.org/@aioha/tx-digest/-/tx-digest-2.1.0.tgz","fileCount":27,"integrity":"sha512-TPbah6dG+DoixJ+gtEoh+KK31EV71yVlrg8VpgzBGlKf7lTkLD3z+VGUtNA77s75NFQny7+OxnTgv+DPjRvUOw==","signatures":[{"sig":"MEUCIB5hKDTZc7+gNJe+BOlwbKOt21U7jxKH/0E6S9eAvoFsAiEAkMmin+4m62d/zp5nSEbhHatISS7S4Rnplce0A/TO62U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":92384},"main":"build/index.js","type":"module","_from":"file:aioha-tx-digest-2.1.0.tgz","types":"build/index.d.ts","exports":{".":{"types":"./build/index.d.ts","default":"./build/index.js"}},"scripts":{"test":"vitest","build":"tsc"},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/b02366e43f15111f1dd3364eb8b601da/aioha-tx-digest-2.1.0.tgz","_integrity":"sha512-TPbah6dG+DoixJ+gtEoh+KK31EV71yVlrg8VpgzBGlKf7lTkLD3z+VGUtNA77s75NFQny7+OxnTgv+DPjRvUOw==","repository":{"url":"git+https://github.com/aioha-hive/tx-digest.git"},"_npmVersion":"10.9.2","description":"Hive transaction serializer and digest","directories":{},"sideEffects":false,"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.17","typescript":"^5.7.0","@noble/hashes":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/tx-digest_2.1.0_1785216843745_0.3176572373857529","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"@aioha/tx-digest","version":"2.1.1","description":"Hive transaction serializer and digest","main":"build/index.js","types":"build/index.d.ts","type":"module","sideEffects":false,"exports":{".":{"types":"./build/index.d.ts","default":"./build/index.js"}},"keywords":[],"author":{"name":"techcoderx"},"license":"MIT","repository":{"url":"git+https://github.com/aioha-hive/tx-digest.git"},"bugs":{"url":"https://github.com/aioha-hive/tx-digest/issues"},"devDependencies":{"@noble/hashes":"^2.0.1","typescript":"^5.7.0","vitest":"^4.0.17"},"scripts":{"build":"tsc","test":"vitest"},"_id":"@aioha/tx-digest@2.1.1","homepage":"https://github.com/aioha-hive/tx-digest#readme","_integrity":"sha512-MH2cg6tSjaxOBSCetNbeeGT3LN8YDei5tbG7KmaMLNfr+bSFLWVXz77+Nvwej3I3QjSuAaEHt8ZJxH7qEA7Cpg==","_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/745df50ccb542eabaa992fc71c49f0eb/aioha-tx-digest-2.1.1.tgz","_from":"file:aioha-tx-digest-2.1.1.tgz","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-MH2cg6tSjaxOBSCetNbeeGT3LN8YDei5tbG7KmaMLNfr+bSFLWVXz77+Nvwej3I3QjSuAaEHt8ZJxH7qEA7Cpg==","shasum":"58633072ed42ddbf7c851aaa8ba1b89793e23095","tarball":"https://registry.npmjs.org/@aioha/tx-digest/-/tx-digest-2.1.1.tgz","fileCount":27,"unpackedSize":92411,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDRc3S4eR6AX/RLMSdlDgsfFh1cvj/E9ACTxaZo6urgqAiBt8Ui6sSjtQsUz+o67sjZVN1Ww+8mxJzluuV5Ja8JftA=="}]},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"directories":{},"maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tx-digest_2.1.1_1785217207560_0.6369577190058093"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-04T14:33:27.188Z","modified":"2026-07-28T05:40:07.852Z","1.0.0":"2025-03-04T14:33:27.548Z","1.0.1":"2025-04-18T03:17:43.568Z","1.0.2":"2025-04-18T03:52:07.652Z","2.0.0":"2025-09-28T09:47:04.377Z","2.0.1":"2025-11-22T13:53:22.242Z","2.0.2":"2026-01-19T06:45:19.288Z","2.1.0":"2026-07-28T05:34:03.873Z","2.1.1":"2026-07-28T05:40:07.690Z"},"bugs":{"url":"https://github.com/aioha-hive/tx-digest/issues"},"author":{"name":"techcoderx"},"license":"MIT","homepage":"https://github.com/aioha-hive/tx-digest#readme","keywords":[],"repository":{"url":"git+https://github.com/aioha-hive/tx-digest.git"},"description":"Hive transaction serializer and digest","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"readme":"# @aioha/tx-digest\n\nHive transaction serializer and digest. Useful for generating ID for a transaction. Serializers extracted from hive-tx and adapted for HF26 serialization. Intended for browser use as it uses `window.crypto` for sha256.\n\n## Usage\n\n```js\nimport { transactionDigest } from '@aioha/tx-digest'\n\n// https://hafscan.techcoderx.com/tx/543058b4465cd93132b2843b751d5dcdd8efd341\nconst recurrent_transfer = {\n  ref_block_num: 23679,\n  ref_block_prefix: 291568045,\n  expiration: '2025-11-20T07:59:08',\n  operations: [\n    {\n      type: 'recurrent_transfer_operation',\n      value: {\n        to: 'techcoderx.vsc',\n        from: 'techcoderx',\n        memo: '',\n        amount: {\n          nai: '@@000000021',\n          amount: '2',\n          precision: 3\n        },\n        executions: 5,\n        extensions: [\n          {\n            type: 'recurrent_transfer_pair_id',\n            value: {\n              pair_id: 1\n            }\n          }\n        ],\n        recurrence: 48\n      }\n    }\n  ],\n  signatures: [\n    '1f3f2ddfc755936e0b998c78a1aec35a9663d1d9011cd4a83be84c6340f1b8689826fbd0e32c918afca38ab1e6ec44eac85a0e281c39bf1400f5e53c8b810a3bf5'\n  ],\n  extensions: []\n}\n\nconst serialized = await transactionDigest(recurrent_transfer)\nconsole.log(serialized.txId) // 85db372428a47aba8aeb154df8650a900c612fa5\n```\n","readmeFilename":"README.md"}