{"_id":"@deltalabs/eosjs-ledger-signature-provider","_rev":"1-db51deddffd8326cf346ebf17b814f38","name":"@deltalabs/eosjs-ledger-signature-provider","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@deltalabs/eosjs-ledger-signature-provider","version":"0.2.0","description":"A Signature provider for communicating with eosjs from a Ledger device.","author":{"name":"block.one","url":"https://www.block.one"},"contributors":[{"name":"Randy Torres"},{"name":"Brandon Fancher"}],"license":"MIT","main":"dist/index.js","scripts":{"lint":"tslint -c tslint.json src/*.ts","build":"yarn clean & tsc -p ./tsconfig.json","clean":"rm -rf dist","coverage":"jest --coverage","test":"jest","prepublish":"yarn build","docs":"typedoc --excludePrivate --excludeProtected --out ./docs --theme markdown"},"dependencies":{"@babel/core":"7.6.0","@babel/preset-env":"7.2.3","@babel/preset-react":"7.0.0","@ledgerhq/hw-transport":"4.48.0","@ledgerhq/hw-transport-u2f":"4.48.0","asn1-ber":"1.0.9","bip32-path":"0.4.2","buffer":"5.2.1","eosjs":"20.0.0","eosjs-ecc":"4.0.4"},"devDependencies":{"@babel/cli":"^7.6.0","@babel/plugin-proposal-class-properties":"^7.3.0","@blockone/tslint-config-blockone":"^4.0.0","@types/node":"^11.9.4","babel-polyfill":"^6.26.0","jest":"^24.1.0","ts-jest":"^23.10.4","tslib":"^1.9.3","tslint":"^5.11.0","tslint-eslint-rules":"^5.4.0","typedoc":"^0.13.0","typedoc-plugin-markdown":"^1.1.19","typescript":"^3.2.2"},"jest":{"moduleFileExtensions":["ts","tsx","js"],"transform":{"^.+\\.(tsx?)$":"ts-jest"},"globals":{"ts-jest":{"tsConfigFile":"tsconfig.json"}},"testRegex":"(/src/.*(\\.|/)(test|spec))\\.(ts?|tsx?)$"},"gitHead":"5db204cfdfea637145c090f91728fb0aad1322ad","_id":"@deltalabs/eosjs-ledger-signature-provider@0.2.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-4XE6NWe5hBZyKY04bhUHYycWzEkZ6oGKgUhrUnLSxGSYRS+YFBevs9ErPSUsP5O5DIEI6Of4UhJPoJ7VcHGaPw==","shasum":"5afc36dd2aa6ecbb2c39552fd9aadc7cdba752e8","tarball":"https://registry.npmjs.org/@deltalabs/eosjs-ledger-signature-provider/-/eosjs-ledger-signature-provider-0.2.0.tgz","fileCount":16,"unpackedSize":57230,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBffmCRA9TVsSAnZWagAAlioP/RXQ9sPAoiCCnJwERa3v\ndFKvGhxJ3cfBtOjqwkqicaGT8pxQBrXJoCLlsBqq35rVGaYjvFqlkwFSqt4K\nQd29kcHieVrEOmP6lsRVFGKwa76gDy0PTV1I/zKobz2WfHrNdJAy+9b7W5RT\n/StkkW+0m/6bdFH4OLvfRF+3wdfwd+nlFTMQZFjS+xYoFKY67GysOROYnU6q\nodYSYyNcNaa3p7vBhb01KuT352w0w3JQy6DAKU/zG1ay/8qRHkFvjET7syi2\nVrNdL/i+RNavLMOlP9rejxYetFPQ39aX/SSOSNj7nINsX/z8xU9hXavQ45EU\npQzSF9qvj8YczkjhfhoI0SKgfbVuPv/H2C2UD/RvwwcGwIZgR6U3E6Z/+40w\nNM3Hxo+UKI+AJebVgdRxNAeLgkuqRKGbu6Kp+wMNK/yrxtiD96RNG0uQY8Rl\nweFURaCbrUM2F6kLv52c7e4fS1ZZ1VaQyEHYWcbfq1JCaSst2TiZv1ScVPf+\nUOkrtNzawKM0QiIrPVnoiEgalUkN1dxsML8RbLORe1vFSdtBD6ziWb+VXfgf\nxq9eFeF7E/3PNNVPWGTqzw6f6Tq5QW38XaKj3Laea01TkgGXbZ45AMAnW8zi\n3GIq6T6piEpsN1KgNfjHrPduYpGcYWgrpjWSpv5nBmgVsI5qOG5YaBCgrrUZ\nq5uC\r\n=2ZZf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHD9EswZMOW5L5jKj3RqUH4nGq63maltkIq29ZU56pGBAiEA50PcUQg7xg2j/CjTbJBF0jJOZccox14w+av+JinvdrI="}]},"maintainers":[{"name":"cmichel","email":"mail@cmichel.io"}],"_npmUser":{"name":"cmichel","email":"mail@cmichel.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ledger-signature-provider_0.2.0_1594226661514_0.9561345774089625"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-08T16:44:21.261Z","0.2.0":"2020-07-08T16:44:21.669Z","modified":"2022-04-05T03:42:50.399Z"},"maintainers":[{"name":"cmichel","email":"mail@cmichel.io"}],"description":"A Signature provider for communicating with eosjs from a Ledger device.","contributors":[{"name":"Randy Torres"},{"name":"Brandon Fancher"}],"author":{"name":"block.one","url":"https://www.block.one"},"license":"MIT","readme":"# EOSJS Signature Provider for Ledger\n\n## Overview\nA SignatureProvider for communicating with [eosjs](https://github.com/EOSIO/eosjs) from a Ledger device.\n\nWhen plugged into `eosjs`, this signature provider enables applications to route signing requests to a Ledger device. Full instructions for `eosjs` can be found [here](https://github.com/EOSIO/eosjs).\n\n![EOSIO Labs](https://img.shields.io/badge/EOSIO-Labs-5cb3ff.svg)\n\n# About EOSIO Labs\n\nEOSIO Labs repositories are experimental.  Developers in the community are encouraged to use EOSIO Labs repositories as the basis for code and concepts to incorporate into their applications. Community members are also welcome to contribute and further develop these repositories. Since these repositories are not supported by Block.one, we may not provide responses to issue reports, pull requests, updates to functionality, or other requests from the community, and we encourage the community to take responsibility for these.\n\n## Installation\n\n```bash\n# Using yarn\nyarn add eosjs-ledger-signature-provider\n```\n\n## Usage\n\n#### Example\n```javascript\nconst { SignatureProvider } from 'eosjs-ledger-signature-provider'\n\nconst signatureProvider = new SignatureProvider()\n\nsignatureProvider.getAvailableKeys()\n  .then((result) => console.info('Keys: ', result))\n  .catch((error) => console.info('Error: ', error))\n\nconst chainId = '000000000'\nconst serializedTransaction = {} // A transaction as a Uint8Array. View `serializeTransaction` in https://github.com/EOSIO/eosjs/blob/develop/src/eosjs-api.ts\n\nsignatureProvider.sign({ chainId, serializedTransaction })\n  .then((result) => console.info('TransactionId: ', result))\n  .catch((error) => console.info('Error: ', error))\n```\n\n#### Example with eosjs\n```javascript\nconst { Api, JsonRpc } from 'eosjs'\nconst { SignatureProvider } from 'eosjs-ledger-signature-provider'\n\nconst rpcEndpoint = 'https://localhost:3000'\nconst signatureProvider = new SignatureProvider()\nconst rpc = new JsonRpc(rpcEndpoint)\nconst api = new Api({ signatureProvider, rpc })\n\n// eosjs will call both `getAvailableKeys` and `sign` from the SignatureProvider\napi.transact(...)\n.then((result) => console.info('TransactionId: ', result))\n.catch((error) => console.info('Error: ', error))\n```\n\n## Contribution\nCheck out the [Contributing](./CONTRIBUTING.md) guide\n\n## License\n[MIT licensed](./LICENSE)\n\n## Important\n\nSee LICENSE for copyright and license terms.  Block.one makes its contribution on a voluntary basis as a member of the EOSIO community and is not responsible for ensuring the overall performance of the software or any related applications.  We make no representation, warranty, guarantee or undertaking in respect of the software or any related documentation, whether expressed or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall we be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or documentation or the use or other dealings in the software or documentation. Any test results or performance figures are indicative and will not reflect performance under all conditions.  Any reference to any third party or third-party product, service or other resource is not an endorsement or recommendation by Block.one.  We are not responsible, and disclaim any and all responsibility and liability, for your use of or reliance on any of these resources. Third-party resources may be updated, changed or terminated at any time, so the information here may be out of date or inaccurate.  Any person using or offering this software in connection with providing software, goods or services to third parties shall advise such third parties of these license terms, disclaimers and exclusions of liability.  Block.one, EOSIO, EOSIO Labs, EOS, the heptahedron and associated logos are trademarks of Block.one.\n\nWallets and related components are complex software that require the highest levels of security.  If incorrectly built or used, they may compromise users’ private keys and digital assets. Wallet applications and related components should undergo thorough security evaluations before being used.  Only experienced developers should work with this software.\n","readmeFilename":"README.md"}