{"_id":"@aioha/ledger-app-hive","_rev":"3-e3778b24f61aaf1ededf92a547f85581","name":"@aioha/ledger-app-hive","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@aioha/ledger-app-hive","version":"0.0.1","author":{"name":"engrave"},"license":"MIT","_id":"@aioha/ledger-app-hive@0.0.1","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"dist":{"shasum":"13b2dab7cd2ef323a98dc889816780d3318d56d3","tarball":"https://registry.npmjs.org/@aioha/ledger-app-hive/-/ledger-app-hive-0.0.1.tgz","fileCount":88,"integrity":"sha512-PuE8ocfUiqhjHlYpeA+hem4btvIyT2B+Git5EdKWbrPUVlENs/wNr+4fJOVW/USinLHGHsP+gr6Nj0zXjOPH0A==","signatures":[{"sig":"MEUCIEQjYme0GC3sK/RKpXxUCUX+XcQEoibgTQEYknb4qcGuAiEAix/8f6viSUCsJ+nXSW09MRLHx48xu1g7nhW0i4PbA7Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84039},"main":"lib/Hive.js","types":"./lib/Hive.d.ts","engines":{"node":">=18.0.0"},"gitHead":"ae03ed68b07c4311227ef776c0037dc9fad15a24","release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/gitlab","@semantic-release/npm"]},"scripts":{"test":"mocha --require ts-node/register --recursive './test/**/*.test.ts'","build":"tsc -p tsconfig.build.json","prepare":"rm -Rf lib && npm run build","semantic-release":"semantic-release"},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"repository":{"url":"https://gitlab.com/techcoderx/ledger-app-hive/-/tree/aioha","type":"git"},"_npmVersion":"10.9.2","description":"Ledger Hardware Wallet HIVE JavaScript/TypeScript bindings","directories":{},"_nodeVersion":"22.15.0","dependencies":{"bs58":"5.0.0","varint":"6.0.0","asn1.js":"5.4.1","bip32-path":"0.4.2","@noble/hashes":"1.8.0","@ledgerhq/errors":"6.22.0","@ledgerhq/hw-transport":"6.31.7"},"_hasShrinkwrap":false,"devDependencies":{"chai":"4.3.8","mocha":"10.2.0","sinon":"15.2.0","ts-node":"10.9.1","sinon-chai":"3.7.0","typescript":"5.2.2","@types/chai":"4.3.5","@types/mocha":"10.0.1","@types/sinon":"10.0.16","@hiveio/dhive":"1.2.7","@types/varint":"6.0.1","semantic-release":"21.1.1","ts-node-register":"1.0.0","@types/bytebuffer":"5.0.44","@types/sinon-chai":"3.2.9","@semantic-release/gitlab":"12.0.5","@ledgerhq/hw-transport-mocker":"6.27.19","@types/ledgerhq__hw-transport":"4.21.4","@ledgerhq/hw-transport-node-hid":"6.27.21","@ledgerhq/hw-transport-node-speculos":"6.27.19","@types/ledgerhq__hw-transport-node-hid":"4.22.2"},"_npmOperationalInternal":{"tmp":"tmp/ledger-app-hive_0.0.1_1752414078867_0.9296219106295192","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@aioha/ledger-app-hive","version":"0.0.2","author":{"name":"engrave"},"license":"MIT","_id":"@aioha/ledger-app-hive@0.0.2","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"dist":{"shasum":"11408bcec96f2684b3d7ff6edc6d25420d2cc401","tarball":"https://registry.npmjs.org/@aioha/ledger-app-hive/-/ledger-app-hive-0.0.2.tgz","fileCount":98,"integrity":"sha512-+ZUe9Iyv00WA5TDfi7TsCHKl5b22prR06JAG9u/9m9jePbGB83dtUMS65e/q3oXiMX78M4/YaDI8DYdIJmnk1A==","signatures":[{"sig":"MEYCIQDL/ye6WCAT2A3DrLHEmqV2J7vriMoSuU0nSSVJy2RTEgIhAMFZnrA3xvd08jYvv/mMr1OP3EfWmq4M6AbSe0UPL264","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":111182},"main":"lib/Hive.js","types":"./lib/Hive.d.ts","engines":{"node":">=18.0.0"},"gitHead":"eace88f16599acfb425bf18686aac9719dd18f94","release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/gitlab","@semantic-release/npm"]},"scripts":{"test":"mocha --require ts-node/register --recursive './test/**/*.test.ts'","build":"tsc -p tsconfig.build.json; cp -r src/asn1 lib","prepare":"rm -Rf lib && npm run build","semantic-release":"semantic-release"},"_npmUser":{"name":"techcoderx","email":"npmpkgs@techcoderx.com"},"repository":{"url":"https://gitlab.com/techcoderx/ledger-app-hive/-/tree/aioha","type":"git"},"_npmVersion":"10.9.2","description":"Ledger Hardware Wallet HIVE JavaScript/TypeScript bindings","directories":{},"_nodeVersion":"22.15.0","dependencies":{"bs58":"5.0.0","varint":"6.0.0","inherits":"^2.0.4","bip32-path":"0.4.2","@noble/hashes":"1.8.0","@ledgerhq/errors":"6.22.0","@ledgerhq/hw-transport":"6.31.7"},"_hasShrinkwrap":false,"devDependencies":{"chai":"4.3.8","mocha":"10.2.0","sinon":"15.2.0","ts-node":"10.9.1","sinon-chai":"3.7.0","typescript":"5.2.2","@types/chai":"4.3.5","@types/mocha":"10.0.1","@types/sinon":"10.0.16","@hiveio/dhive":"1.2.7","@types/varint":"6.0.1","semantic-release":"21.1.1","ts-node-register":"1.0.0","@types/bytebuffer":"5.0.44","@types/sinon-chai":"3.2.9","@semantic-release/gitlab":"12.0.5","@ledgerhq/hw-transport-mocker":"6.27.19","@types/ledgerhq__hw-transport":"4.21.4","@ledgerhq/hw-transport-node-hid":"6.27.21","@ledgerhq/hw-transport-node-speculos":"6.27.19","@types/ledgerhq__hw-transport-node-hid":"4.22.2"},"_npmOperationalInternal":{"tmp":"tmp/ledger-app-hive_0.0.2_1752478430997_0.6324369371037013","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@aioha/ledger-app-hive","version":"0.0.3","description":"Ledger Hardware Wallet HIVE JavaScript/TypeScript bindings","main":"lib/Hive.js","repository":{"type":"git","url":"https://gitlab.com/techcoderx/ledger-app-hive/-/tree/aioha"},"engines":{"node":">=18.0.0"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/gitlab","@semantic-release/npm"]},"author":{"name":"engrave"},"license":"MIT","sideEffects":false,"dependencies":{"bip32-path":"0.4.2","bs58":"5.0.0","varint":"6.0.0"},"devDependencies":{"@hiveio/dhive":"1.2.7","@noble/hashes":"1.8.0","@semantic-release/gitlab":"12.0.5","@types/bytebuffer":"5.0.44","@types/chai":"4.3.5","@types/mocha":"10.0.1","@types/sinon":"10.0.16","@types/sinon-chai":"3.2.9","@types/varint":"6.0.1","asn1.js":"5.4.1","chai":"4.3.8","mocha":"10.2.0","semantic-release":"21.1.1","sinon":"15.2.0","sinon-chai":"3.7.0","ts-node":"10.9.1","typescript":"5.2.2"},"scripts":{"test":"mocha --require ts-node/register --recursive './test/**/*.test.ts'","build":"tsc -p tsconfig.build.json","semantic-release":"semantic-release"},"_id":"@aioha/ledger-app-hive@0.0.3","types":"./lib/Hive.d.ts","_integrity":"sha512-4OohtL0SCM8gDdYBOyEYEBSz1v0Ke3EKTBOKRDLmdJFN9X3bKohSlFIwGWjie7wIa4DVrmMaL5lIV1AvMQVYSA==","_resolved":"/private/var/folders/4k/c2bh71lj5yl46624214xzpv40000gn/T/ba2e4c48a0f3f641885742f295d6d9e1/aioha-ledger-app-hive-0.0.3.tgz","_from":"file:aioha-ledger-app-hive-0.0.3.tgz","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-4OohtL0SCM8gDdYBOyEYEBSz1v0Ke3EKTBOKRDLmdJFN9X3bKohSlFIwGWjie7wIa4DVrmMaL5lIV1AvMQVYSA==","shasum":"d1d69f31c10fe239c92d5e4d980461c68a7e75dd","tarball":"https://registry.npmjs.org/@aioha/ledger-app-hive/-/ledger-app-hive-0.0.3.tgz","fileCount":102,"unpackedSize":113928,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDV9SE5s3StK4Op/Dc7SoDDdfbwRqixOVASDOO97iSpXAiEA+6cbsL/UHGEXDYWt6OzmAQabGgjEx0+SApTZ3Dq1nJ0="}]},"_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/ledger-app-hive_0.0.3_1776946452854_0.8451753697044613"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-13T13:41:18.717Z","modified":"2026-04-23T12:14:13.198Z","0.0.1":"2025-07-13T13:41:19.068Z","0.0.2":"2025-07-14T07:33:51.182Z","0.0.3":"2026-04-23T12:14:13.050Z"},"author":{"name":"engrave"},"license":"MIT","repository":{"type":"git","url":"https://gitlab.com/techcoderx/ledger-app-hive/-/tree/aioha"},"description":"Ledger Hardware Wallet HIVE JavaScript/TypeScript bindings","maintainers":[{"name":"techcoderx","email":"npmpkgs@techcoderx.com"}],"readme":"This is a fork of [@engrave/ledger-app-hive](https://www.npmjs.com/package/@engrave/ledger-app-hive) for Aioha.\n\n# @engrave/ledger-app-hive\n\nLedger Hardware Wallet HIVE JavaScript/TypeScript bindings.\n\n# Example usage\n\n```typescript\nimport Hive from '@engrave/ledger-app-hive';\nimport TransportNodeHid from '@ledgerhq/hw-transport-node-hid';\n\nconst transport = await TransportNodeHid.create();\nconst hive = new Hive(transport);\n\nconst version = await hive.getAppVersion();\nconsole.log(\"Current version:\", version);\n\nconst name = await hive.getAppName();\nconsole.log(\"App name:\", name);\n\nconst publicKey = await hive.getPublicKey(`48'/13'/0'/0'/0'`);\nconsole.log(\"Public key:\", publicKey);\n\nconst signature = await hive.signMessage('This is a message to sign', `48'/13'/0'/0'/0'`);\nconsole.log(\"Signature:\", signature);\n```\n\nFor more examples, visit `examples` directory.\n\n## API\n\n * [getAppVersion](#getappversion)\n * [getAppName](#getappname)\n * [getPublicKey](#getpublickey)\n * [getSettings](#getsettings)\n * [signTransaction](#signtransaction) \n * [signHash](#signhash) \n * [signMessage](#signmessage) \n\n## getAppVersion\n\nGet current version for HIVE App installed on a Ledger.\n\n```typescript\nasync getAppVersion(): Promise<string>\n```\n\n## getAppName\n\nGet name for HIVE App installed on a Ledger.\n\n```typescript\nasync getAppName(): Promise<string>\n```\n\n## getPublicKey\n\nRetrieve public key from specified BIP32 path. You can set additional parameter `confirm: boolean` which will ask the user to confirm the Public Key on his Ledger before returning it. \n\n```typescript\nasync getPublicKey(path: string, confirm?: boolean): Promise<string>\n```\n\n## getSettings\n\nRead settings from Ledger. This can be used to determine if the user has enabled the \"blind signing\" option in the HIVE App.\n\n```typescript\nasync getSettings(): Promise<Settings>\n```\n\n## signTransaction\n\nSign basic transaction with specified key path. This method will return signed transaction (transaction with additional `signatures` property). Please note that extensions are not yet supported for most transactions and operations (except `beneficiaries` for `comment_options` and `end_date` for `update_proposal`). Transaction cannot contain more than one operation, otherwise ledger will refuse the transaction. \n\n```typescript\nasync signTransaction(tx: Transaction, path: string, chainId?: string): Promise<SignedTransaction>\n```\n\nYou can also provide optional `chainId` which may be useful for tests on Hive testnet. If not provided, Ledger will use production chainId.\n\n## signHash\n\nSign transaction digest with specified key path. This method will return a single signature. Please note that this method requires `blind signing` mode enabled in settings, otherwise ledger will refuse it. \n\n```typescript\nasync signHash(digest: string, path: string): Promise<string>\n```\n\nTransaction need to he serialized with proper `chainId` up front. This can be done with static method called `getTransactionDigest` \n\n## signMessage\n\nSign message with specified key path. This method will return a single signature. May be used to prove ownership of a private key. \n\n```typescript\nasync signMessage(message: string, path: string): Promise<string>\n```\n\nPlease note there is a limit of 512 characters for the message.\n","readmeFilename":"README.md"}