{"_id":"ledger-bitcoin","_rev":"7-3175e72ce89e79afcfd88c0b57f298e9","name":"ledger-bitcoin","dist-tags":{"latest":"0.3.0"},"versions":{"0.2.0":{"name":"ledger-bitcoin","version":"0.2.0","keywords":["Ledger","LedgerWallet","btc","Bitcoin","NanoS","NanoX","Hardware Wallet"],"license":"Apache-2.0","_id":"ledger-bitcoin@0.2.0","maintainers":[{"name":"bigspider","email":"salvatore.ingala@gmail.com"}],"homepage":"https://github.com/LedgerHW/app-bitcoin-new#readme","bugs":{"url":"https://github.com/LedgerHW/app-bitcoin-new/issues"},"dist":{"shasum":"541e4b8d3a5a1cf7e4fe14600a9c4b9c079c6015","tarball":"https://registry.npmjs.org/ledger-bitcoin/-/ledger-bitcoin-0.2.0.tgz","fileCount":26,"integrity":"sha512-EElKHrGMD8wcSLabULytrE5P+f+OKHVqEzmdfvtiRNH0j+3PYQqG7uPZnnSKzNt2egZwvMRzafRNLrl6MTlQcA==","signatures":[{"sig":"MEUCIQC1kzWU2T8RJ0Msf3if1elN+oYFDoMaIbwavBfavOqDTwIgZ9iGb8GVtSx5x9gh3CJyi82wzJFt+DYbC8GuM0KSFBk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":176687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGXBRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfNQ/+PY1o+Zpuei8Czu9bRK+Bk9TXsUidmeIxjixmOxkVL8M+IvVI\r\n3wJllY1QZEK1GKS+CN2A4/fFKkFk1ZWEUUzyAVCOklcdfoXsHWp+QaIvCcYk\r\nve5Y9UuG+9LK0cEdZRJL8zq5YCrbErh7w3uR5KAxMvrEnqmHLlQQ4Kv2+I1I\r\ne5+VimNE2H3R3fY5g6XFkFes9mEMNLAH8x4cFRQTuaz6+3T5JEyrA9dRAIzk\r\navWAVC3OlsS1UkyvwhrwGv1cX8zmWRLmOHCi2zSCVjDMZQ3CyLL4KDyGHZr/\r\notMpovoPnpytAyPt2bTvqrq/uXkk3t51jmpcLi48Vg7d8CWJw2yk7Ar5EulP\r\ngRmpfiU4AhzldMa/fg7TN94JHg2fwU6foPor3EhKcGpszkppkZsVXUwY3jve\r\nhdds/aIN5D6dqHWdwnl7OM1nMF0VeL73t1pSR8YT8bh2v6ix/lNGtCr/yJTl\r\nLTpewFWkfqvzrvv+L01QakR+I+7dk8PjdCOf7iuo3Gzqqp8eipvYATTJVzfA\r\nBkqQi3gtOEC7pPzLsELbJb5O4jfxmqCjyr7IGmtd0yGNUVFRQY++eNnvrKYY\r\nsxCIJCGqot6S+9lFWBf1V7jrleD/7TIXnY1qVyWl5adyDG98QIpWFj9/YOZ2\r\nX7ZIsJ9GeP3I6Q95vPgma7hT7EVaaICxoRQ=\r\n=xAlO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/main/index.js","engines":{"node":">=14"},"gitHead":"02af4fc5c6c36eb7213d5458551d74f44e4a5f8e","scripts":{"doc":"run-s doc:html && open-cli build/docs/index.html","fix":"run-s fix:*","test":"jest --detectOpenHandles --verbose","build":"tsc -p tsconfig.json","doc:html":"typedoc src/ --exclude **/*.test.ts --target ES6 --mode file --out build/docs","doc:json":"typedoc src/ --exclude **/*.test.ts --target ES6 --mode file --json build/docs/typedoc.json","fix:lint":"eslint src --ext .ts --fix","fix:prettier":"prettier \"src/**/*.ts\" --write"},"typings":"build/main/index.d.ts","_npmUser":{"name":"bigspider","email":"salvatore.ingala@gmail.com"},"prettier":{"singleQuote":true},"deprecated":"Please use @ledgerhq/ledger-bitcoin","repository":{"url":"git+https://github.com/LedgerHW/app-bitcoin-new.git","type":"git"},"_npmVersion":"8.5.1","description":"Ledger Hardware Wallet Bitcoin Application Client","directories":{},"_nodeVersion":"14.19.0","dependencies":{"bip32-path":"^0.4.2","bitcoinjs-lib":"^6.0.1","tiny-secp256k1":"^2.1.2","@ledgerhq/hw-transport":"^6.20.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.5.1","cspell":"^4.1.0","eslint":"^7.8.0","codecov":"^3.5.0","ts-jest":"^27.1.3","ts-node":"^9.0.0","typedoc":"^0.19.0","open-cli":"^6.0.1","prettier":"^2.1.1","typescript":"^4.5.5","@types/jest":"^27.4.0","@types/node":"^17.0.10","npm-run-all":"^4.1.5","@ledgerhq/logs":"^6.10.0","standard-version":"^9.0.0","eslint-plugin-jest":"^26.1.1","eslint-plugin-import":"^2.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-functional":"^3.0.2","@typescript-eslint/parser":"^4.0.1","eslint-plugin-eslint-comments":"^3.2.0","@typescript-eslint/eslint-plugin":"^4.0.1","@ledgerhq/hw-transport-node-speculos-http":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/ledger-bitcoin_0.2.0_1679388753754_0.1319777344332893","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"ledger-bitcoin","version":"0.2.1","keywords":["Ledger","LedgerWallet","btc","Bitcoin","NanoS","NanoX","Hardware Wallet"],"license":"Apache-2.0","_id":"ledger-bitcoin@0.2.1","maintainers":[{"name":"bigspider","email":"salvatore.ingala@gmail.com"}],"homepage":"https://github.com/LedgerHW/app-bitcoin-new#readme","bugs":{"url":"https://github.com/LedgerHW/app-bitcoin-new/issues"},"dist":{"shasum":"cc40c926d0e5f377ec144a485e6bab1b6f86b900","tarball":"https://registry.npmjs.org/ledger-bitcoin/-/ledger-bitcoin-0.2.1.tgz","fileCount":26,"integrity":"sha512-OrtXewOhAc4Q8HNtZ0q7o+0sH1oTOqEy5oCCODoxHUHZaQj9NE94Tr2eKtyq5R5B5sl9LgkLHrkZwOj1LxJM7w==","signatures":[{"sig":"MEYCIQCmMpEtmQwBXnQXtNy1Iz3zIpEEAHAQdoyl/PMmd77JowIhANrCBywA0TIkMHfnegScYFaVCnSqICZ/oE7ujikmguke","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":180765,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPqknACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwfA//VOudZf7MFYUpMCdl712lHte22BNtPvfRlJnEerZ0jhMYK37o\r\nZ/Ha+B+MjScF7dYbZPo9Hd5MbYDaMv+vDqWZi+Fiok4wXamecVOpid7Hq59G\r\nNCBvfdYqEJn37Zsuvt3nvNDGCvkJLJZ5Vx1uLIumFgysxdxXpBQeH8hhq5ap\r\nMbV97BmUXqyNv6J3Pde95J5kAad5WTTRIjAY4i0GjgYB09B1sxmli4BG4jne\r\nTRHwBeOc2yXBO6KR4Wz/Te2B0EQekrvjpwW3IclPRFePPUDiCkqV+rwS2n+5\r\nkh2UCmYIJZjTmw5jS4gz0JxdbjLtseOSRnKzOWbKm81vBOW0bzkC7EVwJzRq\r\nB6yJiVB4q1yVzjBiNj5SvNMjbEJ8uQmyQ2Q9wtBdttXa9ajUkpTrLuwsBO16\r\nJ4+/RLMlOuDeBBBosyA6ZvYosrAzJXCdd0OkXBcyx0wADj0/Rzc6VAnaH+9O\r\n1VVbymSv8DDh5SYqQm4l+s3l4bKwW+LbZO1ZQf6UroLdJohtFILTRzKHNvFa\r\n61Vor5lshcpIOzH2R/ft8bTYGLAsQbmZyRsPK2gB77h5vjR4iLtqp1SOzc0t\r\nwCuXkPWMcCLdeaKJLpqAWzPFwaUeAdoKhjcrQQhvfuUXp4sWLTLuBhO3h+FV\r\npr/W6nvjt8lfQlTLD0n9HPFwNrVyoPlLMZ4=\r\n=IyPc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/main/index.js","engines":{"node":">=14"},"gitHead":"4e0ffda9f99896fbad1c065c937336eecc59f1b9","scripts":{"doc":"run-s doc:html && open-cli build/docs/index.html","fix":"run-s fix:*","test":"jest --detectOpenHandles --verbose","build":"tsc -p tsconfig.json","doc:html":"typedoc src/ --exclude **/*.test.ts --target ES6 --mode file --out build/docs","doc:json":"typedoc src/ --exclude **/*.test.ts --target ES6 --mode file --json build/docs/typedoc.json","fix:lint":"eslint src --ext .ts --fix","fix:prettier":"prettier \"src/**/*.ts\" --write"},"typings":"build/main/index.d.ts","_npmUser":{"name":"bigspider","email":"salvatore.ingala@gmail.com"},"prettier":{"singleQuote":true},"deprecated":"Please use @ledgerhq/ledger-bitcoin","repository":{"url":"git+https://github.com/LedgerHW/app-bitcoin-new.git","type":"git"},"_npmVersion":"8.5.1","description":"Ledger Hardware Wallet Bitcoin Application Client","directories":{},"_nodeVersion":"14.19.0","dependencies":{"bip32-path":"^0.4.2","bitcoinjs-lib":"^6.0.1","tiny-secp256k1":"^2.1.2","@ledgerhq/hw-transport":"^6.20.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.5.1","cspell":"^4.1.0","eslint":"^7.8.0","codecov":"^3.5.0","ts-jest":"^27.1.3","ts-node":"^9.0.0","typedoc":"^0.19.0","open-cli":"^6.0.1","prettier":"^2.1.1","typescript":"^4.5.5","@types/jest":"^27.4.0","@types/node":"^17.0.10","npm-run-all":"^4.1.5","@ledgerhq/logs":"^6.10.0","standard-version":"^9.0.0","eslint-plugin-jest":"^26.1.1","eslint-plugin-import":"^2.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-functional":"^3.0.2","@typescript-eslint/parser":"^4.0.1","eslint-plugin-eslint-comments":"^3.2.0","@typescript-eslint/eslint-plugin":"^4.0.1","@ledgerhq/hw-transport-node-speculos-http":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/ledger-bitcoin_0.2.1_1681828135093_0.2512998850813857","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"ledger-bitcoin","version":"0.2.2","keywords":["Ledger","LedgerWallet","btc","Bitcoin","NanoS","NanoX","Hardware Wallet"],"license":"Apache-2.0","_id":"ledger-bitcoin@0.2.2","maintainers":[{"name":"bigspider","email":"salvatore.ingala@gmail.com"}],"homepage":"https://github.com/LedgerHW/app-bitcoin-new#readme","bugs":{"url":"https://github.com/LedgerHW/app-bitcoin-new/issues"},"dist":{"shasum":"7fb0d0dd11fbe2b61e2fb7d89dcd66f3e0efc7e1","tarball":"https://registry.npmjs.org/ledger-bitcoin/-/ledger-bitcoin-0.2.2.tgz","fileCount":26,"integrity":"sha512-iZDuY+3tVmtEkJH6NbxCf8RElixKSEA8wt09c7IRvQj3SdJGc9g9oFUe/3bJotog0Ntzq69gDAKYJ4+srLpgHQ==","signatures":[{"sig":"MEUCIQC6wWP+x0EEndTD4gokIZioAdAKTZGStc9WLvGRwe19jQIgTnFEQwmLSx5hTDhJ7zApSNDJwn0Gzt9z6nDKfdsknJw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":180789},"main":"build/main/index.js","engines":{"node":">=14"},"gitHead":"e70166b5493d5e907e2a8b12523c1b4022afdc0a","scripts":{"doc":"run-s doc:html && open-cli build/docs/index.html","fix":"run-s fix:*","test":"jest --detectOpenHandles --verbose","build":"tsc -p tsconfig.json","doc:html":"typedoc src/ --exclude **/*.test.ts --target ES6 --mode file --out build/docs","doc:json":"typedoc src/ --exclude **/*.test.ts --target ES6 --mode file --json build/docs/typedoc.json","fix:lint":"eslint src --ext .ts --fix","fix:prettier":"prettier \"src/**/*.ts\" --write"},"typings":"build/main/index.d.ts","_npmUser":{"name":"bigspider","email":"salvatore.ingala@gmail.com"},"prettier":{"singleQuote":true},"deprecated":"Please use @ledgerhq/ledger-bitcoin","repository":{"url":"git+https://github.com/LedgerHW/app-bitcoin-new.git","type":"git"},"_npmVersion":"9.7.2","description":"Ledger Hardware Wallet Bitcoin Application Client","directories":{},"_nodeVersion":"14.19.0","dependencies":{"bip32-path":"^0.4.2","bitcoinjs-lib":"^6.0.1","@ledgerhq/hw-transport":"^6.20.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.5.1","cspell":"^4.1.0","eslint":"^7.8.0","codecov":"^3.5.0","ts-jest":"^27.1.3","ts-node":"^9.0.0","typedoc":"^0.19.0","open-cli":"^6.0.1","prettier":"^2.1.1","typescript":"^4.5.5","@types/jest":"^27.4.0","@types/node":"^17.0.10","npm-run-all":"^4.1.5","@ledgerhq/logs":"^6.10.0","standard-version":"^9.0.0","eslint-plugin-jest":"^26.1.1","eslint-plugin-import":"^2.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-functional":"^3.0.2","@typescript-eslint/parser":"^4.0.1","eslint-plugin-eslint-comments":"^3.2.0","@typescript-eslint/eslint-plugin":"^4.0.1","@ledgerhq/hw-transport-node-speculos-http":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/ledger-bitcoin_0.2.2_1687785398753_0.3582360479642024","host":"s3://npm-registry-packages"}},"0.2.3":{"name":"ledger-bitcoin","version":"0.2.3","keywords":["Ledger","LedgerWallet","btc","Bitcoin","NanoS","NanoX","Hardware Wallet"],"license":"Apache-2.0","_id":"ledger-bitcoin@0.2.3","maintainers":[{"name":"bigspider","email":"salvatore.ingala@gmail.com"}],"homepage":"https://github.com/LedgerHQ/app-bitcoin-new#readme","bugs":{"url":"https://github.com/LedgerHQ/app-bitcoin-new/issues"},"dist":{"shasum":"9954f4464f1f439e393d228ae477ad86573d023b","tarball":"https://registry.npmjs.org/ledger-bitcoin/-/ledger-bitcoin-0.2.3.tgz","fileCount":26,"integrity":"sha512-sWdvMTR5CkebNlM0Mam9ROdpsD7Y4087kj4cbIaCCq8IXShCQ44vE3j0wTmt+sHp13eETgY63OWN1rkuIfMfuQ==","signatures":[{"sig":"MEYCIQCjXH0tPrqPGgp8b4m+CpqVSK7m1oycPNHE1ckWda3/lAIhAM6X0uVTeVbK22PHp9IhJS2OoGBu3XE5fGuUUEFWG8Om","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":180873},"main":"build/main/index.js","engines":{"node":">=14"},"gitHead":"0fd12aff1cf4f624a7ba2d9c0723b2dc3e0d5d0a","scripts":{"doc":"run-s doc:html && open-cli build/docs/index.html","fix":"run-s fix:*","test":"jest --detectOpenHandles --verbose","build":"tsc -p tsconfig.json","doc:html":"typedoc src/ --exclude **/*.test.ts --target ES6 --mode file --out build/docs","doc:json":"typedoc src/ --exclude **/*.test.ts --target ES6 --mode file --json build/docs/typedoc.json","fix:lint":"eslint src --ext .ts --fix","fix:prettier":"prettier \"src/**/*.ts\" --write"},"typings":"build/main/index.d.ts","_npmUser":{"name":"bigspider","email":"salvatore.ingala@gmail.com"},"prettier":{"singleQuote":true},"deprecated":"Please use @ledgerhq/ledger-bitcoin","repository":{"url":"git+https://github.com/LedgerHQ/app-bitcoin-new.git","type":"git"},"_npmVersion":"8.3.1","description":"Ledger Hardware Wallet Bitcoin Application Client","directories":{},"_nodeVersion":"12.20.1","dependencies":{"bip32-path":"^0.4.2","bitcoinjs-lib":"^6.1.3","@ledgerhq/hw-transport":"^6.20.0","@bitcoinerlab/secp256k1":"^1.0.5","@bitcoinerlab/descriptors":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.5.1","cspell":"^4.1.0","eslint":"^7.8.0","codecov":"^3.5.0","ts-jest":"^27.1.3","ts-node":"^9.0.0","typedoc":"^0.19.0","open-cli":"^6.0.1","prettier":"^2.1.1","typescript":"^4.5.5","@types/jest":"^27.4.0","@types/node":"^17.0.10","npm-run-all":"^4.1.5","@ledgerhq/logs":"^6.10.0","standard-version":"^9.0.0","eslint-plugin-jest":"^26.1.1","eslint-plugin-import":"^2.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-functional":"^3.0.2","@typescript-eslint/parser":"^4.0.1","eslint-plugin-eslint-comments":"^3.2.0","@typescript-eslint/eslint-plugin":"^4.0.1","@ledgerhq/hw-transport-node-speculos-http":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/ledger-bitcoin_0.2.3_1690793833441_0.016027049996659493","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"ledger-bitcoin","version":"0.3.0","keywords":["Ledger","LedgerWallet","btc","Bitcoin","NanoS","NanoX","Hardware Wallet"],"license":"Apache-2.0","_id":"ledger-bitcoin@0.3.0","maintainers":[{"name":"bigspider","email":"salvatore.ingala@gmail.com"}],"homepage":"https://github.com/LedgerHQ/app-bitcoin-new#readme","bugs":{"url":"https://github.com/LedgerHQ/app-bitcoin-new/issues"},"dist":{"shasum":"256bd3d9e7e0b6f9efb682b3eeb93e26d045133b","tarball":"https://registry.npmjs.org/ledger-bitcoin/-/ledger-bitcoin-0.3.0.tgz","fileCount":26,"integrity":"sha512-gaTCdvnqFMvK6i6112MCcsNC+DDhUx1EKPDgqYoLswgwWLyb+EoZjXI0VxxkW9m7VszQdpOv210xNdohmQ6knw==","signatures":[{"sig":"MEYCIQCSDxg7k2W04vyOYvOBUXyvMJD6xH3VfvP3MovyX87GyAIhAPoOe9tifeYEQje/Vzpr2mh5Hg6YY5nhnHIhiWGG8zby","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":188540},"main":"build/main/index.js","engines":{"node":">=14"},"gitHead":"0a9e9e141f3340d29e7c6181177d4e5e9483a9f7","scripts":{"doc":"run-s doc:html && open-cli build/docs/index.html","fix":"run-s fix:*","test":"jest --detectOpenHandles --verbose","build":"tsc -p tsconfig.json","doc:html":"typedoc src/ --exclude **/*.test.ts --out build/docs","doc:json":"typedoc src/ --exclude **/*.test.ts --json build/docs/typedoc.json","fix:lint":"eslint src --ext .ts --fix","fix:prettier":"prettier \"src/**/*.ts\" --write"},"typings":"build/main/index.d.ts","_npmUser":{"name":"bigspider","email":"salvatore.ingala@gmail.com"},"prettier":{"singleQuote":true},"deprecated":"Please use @ledgerhq/ledger-bitcoin","repository":{"url":"git+https://github.com/LedgerHQ/app-bitcoin-new.git","type":"git"},"_npmVersion":"9.2.0","description":"Ledger Hardware Wallet Bitcoin Application Client","directories":{},"_nodeVersion":"18.19.1","dependencies":{"bip32-path":"^0.4.2","bitcoinjs-lib":"^6.1.7","@ledgerhq/hw-transport":"^6.31.13","@bitcoinerlab/secp256k1":"^1.2.0","@bitcoinerlab/descriptors":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.5.1","cspell":"^4.2.8","eslint":"^7.32.0","ts-jest":"^27.1.5","ts-node":"^10.9.2","typedoc":"^0.24.8","open-cli":"^7.2.0","prettier":"^2.8.8","babel-jest":"^27.5.1","typescript":"^4.9.5","@types/jest":"^27.5.2","@types/node":"^20.17.10","npm-run-all":"^4.1.5","@ledgerhq/logs":"^6.13.0","standard-version":"^9.5.0","@babel/preset-env":"^7.26.0","eslint-plugin-jest":"^26.9.0","eslint-plugin-import":"^2.31.0","eslint-config-prettier":"^8.10.0","eslint-plugin-functional":"^3.7.2","@typescript-eslint/parser":"^5.62.0","eslint-plugin-eslint-comments":"^3.2.0","@typescript-eslint/eslint-plugin":"^5.62.0","@ledgerhq/hw-transport-node-speculos-http":"^6.31.0"},"_npmOperationalInternal":{"tmp":"tmp/ledger-bitcoin_0.3.0_1765554094165_0.49368241839993265","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2023-03-21T08:52:33.753Z","modified":"2026-01-13T12:50:16.998Z","0.2.0":"2023-03-21T08:52:33.922Z","0.2.1":"2023-04-18T14:28:55.273Z","0.2.2":"2023-06-26T13:16:38.914Z","0.2.3":"2023-07-31T08:57:13.577Z","0.3.0":"2025-12-12T15:41:34.324Z"},"bugs":{"url":"https://github.com/LedgerHQ/app-bitcoin-new/issues"},"license":"Apache-2.0","homepage":"https://github.com/LedgerHQ/app-bitcoin-new#readme","keywords":["Ledger","LedgerWallet","btc","Bitcoin","NanoS","NanoX","Hardware Wallet"],"repository":{"url":"git+https://github.com/LedgerHQ/app-bitcoin-new.git","type":"git"},"description":"Ledger Hardware Wallet Bitcoin Application Client","maintainers":[{"name":"bigspider","email":"salvatore.ingala@gmail.com"}],"readme":"# Ledger Bitcoin application client\n\n## Overview\n\nTypeScript client for Ledger Bitcoin application. Supports versions 2.1.0 and above of the app.\n\nMain repository and documentation: https://github.com/LedgerHQ/app-bitcoin-new\n\n## Install\n\n```bash\n$ yarn add ledger-bitcoin\n```\n\nOr if you prefer using npm:\n\n```bash\n$ npm install ledger-bitcoin\n```\n\n## Building\n\n```bash\n$ yarn\n\n$ yarn build\n```\n\n## Getting started\n\nThe following example showcases all the main methods of the `Client`'s interface.\n\nMore examples can be found in the [test suite](src/__tests__/appClient.test.ts).\n\nTesting the `signPsbt` method requires a valid PSBT, and provide the corresponding wallet policy; it is skipped by default in the following example.\n\n```javascript\nimport { AppClient, DefaultWalletPolicy, WalletPolicy } from 'ledger-bitcoin';\nimport Transport from '@ledgerhq/hw-transport-node-hid';\n\n// This examples assumes the Bitcoin Testnet app is running.\n// Make sure to use addresses compatible with mainnet otherwise, by using paths where the BIP-44 coin_type\n// is \"0'\" and not \"1'\".\n\nasync function main(transport) {\n    const app = new AppClient(transport);\n\n    // ==> Get the master key fingerprint\n    const fpr = await app.getMasterFingerprint();\n    console.log(\"Master key fingerprint:\", fpr.toString(\"hex\"));\n\n    // ==> Get and display on screen the first taproot address\n    const firstTaprootAccountPubkey = await app.getExtendedPubkey(\"m/86'/1'/0'\");\n    const firstTaprootAccountPolicy = new DefaultWalletPolicy(\n        \"tr(@0/**)\",\n        `[${fpr}/86'/1'/0']${firstTaprootAccountPubkey}`\n    );\n\n    const firstTaprootAccountAddress = await app.getWalletAddress(\n        firstTaprootAccountPolicy,\n        null,\n        0,\n        0,\n        true // show address on the wallet's screen\n    );\n\n    console.log(\"First taproot account receive address:\", firstTaprootAccountAddress);\n\n    // ==> Register a multisig wallet named \"Cold storage\"\n\n    const ourPubkey = await app.getExtendedPubkey(\"m/48'/1'/0'/2'\");\n    const ourKeyInfo = `[${fpr}/48'/1'/0'/2']${ourPubkey}`;\n    const otherKeyInfo = \"[76223a6e/48'/1'/0'/2']tpubDE7NQymr4AFtewpAsWtnreyq9ghkzQBXpCZjWLFVRAvnbf7vya2eMTvT2fPapNqL8SuVvLQdbUbMfWLVDCZKnsEBqp6UK93QEzL8Ck23AwF\";\n\n    const multisigPolicy = new WalletPolicy(\n        \"Cold storage\",\n        \"wsh(sortedmulti(2,@0/**,@1/**))\", // a 2-of-2 multisig policy template\n        [\n            otherKeyInfo, // some other bitcoiner\n            ourKeyInfo,   // that's us\n        ]\n    )\n\n    const [policyId, policyHmac] = await app.registerWallet(multisigPolicy);\n\n    console.log(`Policy hmac: ${policyHmac.toString(\"hex\")}. Store it safely (together with the policy).`);\n\n    console.assert(policyId.compare(multisigPolicy.getId()) == 0)  //  should never fail\n\n    // ==> Derive and show an address for \"Cold storage\" that was just registered\n\n    const multisigAddress = await app.getWalletAddress(multisigPolicy, policyHmac, 0, 0, true);\n    console.log(`Multisig wallet address: ${multisigAddress}`);\n\n    // ==> Sign a psbt\n\n    // TODO: set a wallet policy and a valid psbt file in order to test psbt signing\n    const psbt = null; // a base64-encoded psbt, or a binary psbt in a Buffer\n    const signingPolicy = null; // an instance of WalletPolicy\n    const signingPolicyHmac = null; // if not a default wallet policy, this must also be set\n    if (!psbt || !signingPolicy) {\n        console.log(\"Nothing to sign :(\");\n        await transport.close();\n        return;\n    }\n\n    // result will be a list of triples [i, partialSig], where:\n    // - i is the input index\n    // - partialSig is an instance of PartialSignature; it contains a pubkey and a signature,\n    //   and it might contain a tapleaf_hash.\n    const result = await app.signPsbt(psbt, signingPolicy, signingPolicyHmac);\n\n    console.log(\"Returned signatures:\");\n    console.log(result);\n\n    await transport.close();\n}\n\nTransport.default.create()\n    .then(main)\n    .catch(console.log);\n```\n","readmeFilename":"README.md"}