{"_id":"@axia-systems/hd-wallet","_rev":"1-d71ec1fad87b6bfa51195fc01cdbda7f","name":"@axia-systems/hd-wallet","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@axia-systems/hd-wallet","version":"1.0.0","description":"Ledger Hardware Wallet Axia API","license":"MIT","keywords":["Ledger","LedgerWallet","axia","NanoS","Blue","Hardware Wallet"],"repository":{"type":"git","url":"git+https://github.com/AxiaCoin/axia-network-v2-hd-wallet.git"},"bugs":{"url":"https://github.com/AxiaCoin/axia-network-v2-hd-wallet/issues"},"homepage":"https://github.com/AxiaCoin/axia-network-v2-hd-wallet#readme","publishConfig":{"access":"public"},"main":"lib/Axia.js","module":"lib-es/Axia.js","types":"lib/Axia.d.ts","dependencies":{"@ledgerhq/hw-transport":"^6.3.0","bip32-path":"0.4.2","create-hash":"1.2.0","jest":"^26.4.1"},"scripts":{"build":"tsc && tsc -m ES6 --outDir lib-es","prepare":"tsc && tsc -m ES6 --outDir lib-es"},"devDependencies":{"@types/node":"^16.10.3","@types/jest":"^26.0.24","@ledgerhq/hw-transport-mocker":"^6.3.0","typescript":"^4.4.3"},"gitHead":"c2374c710355663be838172ac8e014f57c09d9f4","_id":"@axia-systems/hd-wallet@1.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-GuOCzEPgG9ykzlbyt5jqK0kWFvI5RJ0q4A5pA43wgl1/if1PdUUqMpMgxjKfxBvWftWmw0vcWt3BqA+sZLlWdQ==","shasum":"91694905d04e5be344ece32ec313165373461908","tarball":"https://registry.npmjs.org/@axia-systems/hd-wallet/-/hd-wallet-1.0.0.tgz","fileCount":13,"unpackedSize":53287,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDORVbHv0QM9+Cp7mK2CjS8qGZatLzf6UqRn4ZzUfHmuAiEA+mHD5Uv9TWg3TDOTIxAIeGkdvTWk1LBmHHeSiZv5LMs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJis/23ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoh4g//c7J06Ar40/oc/858p4WNLr/qbGieEtyNYRBpfEzbz71epl3O\r\nvNH8Eu43iLx36aD8MKx2M95oNOm1WpvM/4yK56AYGMEzhboKkb3vOnPEde5S\r\nonkvRWD7TxJlrOkXDKDi8b5cWxw+ukmPkrzJOW3XQdpCE/YbiV4GNxg5jZyJ\r\nCLY97TylppSrtRW6f8AUiR1XFSGwVRb9o8DozK03knTC1kuFJfKrgq00CqCx\r\n84sMtWui3FwEmvFqdkK4ASOz3KMuHFCkF4VXCVZlBIE5Nk2vQOmg/dY6mATD\r\n+hN7vaFyzI2ad3Jaretfx29O74xKqomb3r40lS6VD7V/PUWl0Jx0kovJ8n4y\r\nJGDRFlUGuP9sA+8aqOnRU1iX9C8t1ozHundGqMG2C2Xq5V6LOX4LggUnM8wW\r\n/Kgruo6MaU1usYFFKjnEAc+4cHblDAp00817o3rIWT+YDo8sP2aCcXwNOmLU\r\npI7w/x/LDgViBqXArE4WIDo9rqOywVOjCbA5gu+hnPg4jTnWiNxiNBXi2I7K\r\nDz6hpFc2aTpNQo2Vf6jtBmpdgHysJQT5o4z7UCMc91eCNHNH4h0q0mWa8bXn\r\naOktFj1YAX6NTlooKusnLXSdL3kQdyWOj8UHg1FF+tOUMO+Y4hkhm2+8w7eB\r\nTfaEev1rdMC1stJk3aG8AsxvyE8ZqMGinbk=\r\n=Du1N\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jeet-zeeve","email":"jeet.bhosle@zeeve.io"},"directories":{},"maintainers":[{"name":"jeet-zeeve","email":"jeet.bhosle@zeeve.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hd-wallet_1.0.0_1655963063351_0.10902449962578098"},"_hasShrinkwrap":false},"2.0.0":{"name":"@axia-systems/hd-wallet","version":"2.0.0","description":"Ledger Hardware Wallet Axia API","license":"MIT","keywords":["Ledger","LedgerWallet","axia","NanoS","Blue","Hardware Wallet"],"repository":{"type":"git","url":"git+https://github.com/AxiaCoin/axia-network-v2-hd-wallet.git"},"bugs":{"url":"https://github.com/AxiaCoin/axia-network-v2-hd-wallet/issues"},"homepage":"https://github.com/AxiaCoin/axia-network-v2-hd-wallet#readme","publishConfig":{"access":"public"},"main":"lib/Axia.js","module":"lib-es/Axia.js","types":"lib/Axia.d.ts","dependencies":{"@ledgerhq/hw-transport":"^6.3.0","bip32-path":"0.4.2","create-hash":"1.2.0","jest":"^26.4.1"},"scripts":{"build":"tsc && tsc -m ES6 --outDir lib-es","prepare":"tsc && tsc -m ES6 --outDir lib-es"},"devDependencies":{"@types/node":"^16.10.3","@types/jest":"^26.0.24","@ledgerhq/hw-transport-mocker":"^6.3.0","typescript":"^4.4.3"},"gitHead":"9784f5b19f238d56913249e38a5d0d9b4ea8aa71","_id":"@axia-systems/hd-wallet@2.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-xODBpFcv7YJMQbfSwgGNJMc4N93/hoD2xu4qDzhtFHPBP2DDt+QRkj9mJC2opfbbNBuV+pq8v5U5BsevNkinog==","shasum":"4f25b5231ac1b3e9c0ac561b2b5470f96530c0bb","tarball":"https://registry.npmjs.org/@axia-systems/hd-wallet/-/hd-wallet-2.0.0.tgz","fileCount":13,"unpackedSize":53272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGDD8rXIFC4eq4oC96t7GxnTsUiIOozdlTjPybP/AmyeAiBwO7yLr8BI2u3sUnO+L0B4FnhCkBODio9BR5RrAoM0jg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0AusACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr57RAAghty3pagUoGYZEJaIXzQXUfELUEFcsAO/x+KAc3BjxpZPXMD\r\n4Hp5udOwcFVzt2uI7+bEzcmkbIJxCBtByeT95SZex86qErvEZlNlzh0vaFyV\r\nk7zA92ETHPEVWsU+GNm8vGqBtT92S4c7W2kpiMPSDES+3pfG+DHw3jrM1PBq\r\naqByXlsT4DoE569CR6r1ELph4uX1gdrArQhGUEQyvGnW6fuUiJEkAf4pvDVF\r\nApe2jtY5d/VEqgQIWoFX/uuKD+nn9/GXVkyacida0K39IwheEdUNdRF2t3Su\r\nHuyy2v52qXPdv4i6wpuyptzHI/b96GSdaprZZOvEIF+BLv07YUzTfhlgyDzQ\r\nJlLdo5vNGCz81zCgkHO92DII3GPyrq5FXybxs/P17vR5O1hj0dglsnnefZIm\r\nEZ5yB2+IhdptbIeaIO3WC0hhyy1N2CJo2vDWA+asLlzA9Ux9PvSre6km2qQs\r\nBl/KLMwJe7JdEmXPsu29Tfm7itGKeFXi5fyBfu4mUizaG3be5GnPXNMN4cnk\r\nZkaie5fONL3RzPclBY57J8aEs9RS7CclpmItOReGgWM6VFJhrP27YSixaAPs\r\nHBSS/rxNSrNFJ6FRTg+7p8KACtfFszWY/duvR9fmkQwgtNcacD1WjxpkZNbL\r\nasvIcS/Oaku9XX6gnOx0ixgWYhIBW3eSxg0=\r\n=mgnF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jeet-zeeve","email":"jeet.bhosle@zeeve.io"},"directories":{},"maintainers":[{"name":"jeet-zeeve","email":"jeet.bhosle@zeeve.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hd-wallet_2.0.0_1657801644517_0.9913846573630176"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-23T05:44:23.308Z","1.0.0":"2022-06-23T05:44:23.552Z","modified":"2022-07-14T12:27:24.780Z","2.0.0":"2022-07-14T12:27:24.683Z"},"maintainers":[{"name":"jeet-zeeve","email":"jeet.bhosle@zeeve.io"}],"description":"Ledger Hardware Wallet Axia API","homepage":"https://github.com/AxiaCoin/axia-network-v2-hd-wallet#readme","keywords":["Ledger","LedgerWallet","axia","NanoS","Blue","Hardware Wallet"],"repository":{"type":"git","url":"git+https://github.com/AxiaCoin/axia-network-v2-hd-wallet.git"},"bugs":{"url":"https://github.com/AxiaCoin/axia-network-v2-hd-wallet/issues"},"license":"MIT","readme":"[Github](https://github.com/LedgerHQ/ledgerjs/),\n[Ledger Devs Slack](https://ledger-dev.slack.com/)\n\n## @axia-systems/hd-wallet\n\n[Ledger Hardware Wallet](https://www.ledger.com/) JavaScript bindings for [Axia](https://axia.global/), based on [LedgerJS](https://github.com/LedgerHQ/ledgerjs).\n\n## Using LedgerJS for Axia\n\nHere is a sample app for Node:\n\n```javascript\nconst Transport = require(\"@ledgerhq/hw-transport-node-hid\").default;\nconst Axia = require(\"@axia-systems/hd-wallet\").default;\n\nconst getWalletId = async () => {\n  const axia = new Axia(await Transport.create());\n  return await axia.getWalletId();\n};\n\nconst signHash = async () => {\n  const transport = await Transport.create();\n  const axia = new Axia(await Transport.create());\n  return await axia.signHash(\n    \"44'/9000'/0'/0/0\",\n    \"0000000000000000000000000000000000000000000000000000000000000000\"\n  );\n};\n\nconst getVersion = async () => {\n  const axia = new Axia(await Transport.create());\n  return await axia.getAppConfiguration();\n};\n\nconst getAddress = async () => {\n  const axia = new Axia(await Transport.create());\n  return await axia.getWalletPublicKey(\"44'/9000'/0'/1/0\");\n};\n\nconst doAll = async () => {\n  console.log(await getWalletId());\n  console.log(await getVersion());\n  console.log(await getAddress());\n  console.log(await signHash());\n};\n\ndoAll().catch(err => console.log(err));\n```\n\n## API\n\n#### Table of Contents\n\n-   [Axia](#axia)\n    -   [Parameters](#parameters)\n    -   [Examples](#examples)\n    -   [getWalletPublicKey](#getwalletpublickey)\n        -   [Parameters](#parameters-1)\n        -   [Examples](#examples-1)\n    -   [signTransaction](#signtransaction)\n        -   [Parameters](#parameters-2)\n        -   [Examples](#examples-2)\n    -   [getAppConfiguration](#getappconfiguration)\n        -   [Examples](#examples-3)\n    -   [getWalletId](#getwalletid)\n        -   [Examples](#examples-4)\n\n### Axia\n\nAxia API for Ledger\n\n#### Parameters\n\n-   `transport` **`Transport<any>`**\n-   `scrambleKey` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**  (optional, default `\"Axia\"`)\n\n#### Examples\n\n```javascript\nimport Axia from \"@zee-ava/hd-wallet-axia\";\nconst axia = new Axia(transport);\n```\n\n#### getWalletPublicKey\n\nGet Axia address for a given BIP-32 path.\n\n##### Parameters\n\n-   `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a path in BIP-32 format\n\n##### Examples\n\n```javascript\nconst publicKey = await axia.getWalletPublicKey(\"44'/9000'/0'/0/0\");\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** an object with a public key.\n\n#### signHash\n\nSign a 32-byte hash of transaction with a given BIP-32 path\n\n##### Parameters\n\n-   `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a path in BIP-32 format\n-   `hash` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** hash of a to sign\n\n##### Examples\n\n```javascript\nconst signature = await axia.signHash(\"44'/9000'/0'/0/0\", \"0000000000000000000000000000000000000000000000000000000000000000\");\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** a signature as hex string.\n\n#### getAppConfiguration\n\nGet the version of the application installed on the hardware device.\n\n##### Examples\n\n```javascript\nconsole.log(await axia.getAppConfiguration());\n```\n\nproduces something like\n\n```\n{\n  \"version\": \"1.0.3\",\n  \"commit\": \"1234567\",\n  \"name\": \"Axc\"\n}\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;{version: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), commit: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), name: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>** an object with a version.\n\n#### getWalletId\n\nGet the wallet identifier for the Ledger wallet. This value distinguishes different Ledger hardware devices which have different seeds.\n\n##### Examples\n\n```javascript\nconsole.log(await axia.getWalletId());\n```\nproduces something like\n\n```\nabcdefgh\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** a byte string.\n","readmeFilename":"README.md"}