{"_id":"ilp-plugin-lightning","_rev":"26-94ee94676361080af51539e86c64f256","name":"ilp-plugin-lightning","description":"Settle interledger payments using the Lightning Network","dist-tags":{"latest":"1.0.0-beta.25"},"versions":{"0.2.0":{"name":"ilp-plugin-lightning","version":"0.2.0","description":"Interledger.js Ledger Plugin for the Lightning Network","main":"src/plugin.js","scripts":{"test":"mocha test/*","lint":"standard src/*.js"},"keywords":["interledger","ilp","lightning","lnd","bitcoin"],"author":{"name":"Evan Schwartz","email":"evan@ripple.com"},"license":"Apache-2.0","dependencies":{"bignumber.js":"^4.0.2","debug":"^2.6.8","fast-crc32c":"^1.0.4","grpc":"^1.3.7","ilp-plugin-payment-channel-framework":"^1.0.1","ilp-plugin-shared":"git+https://github.com/interledgerjs/ilp-plugin-shared.git","int64-buffer":"^0.1.9","text-encoding":"^0.6.4"},"devDependencies":{"koa":"^2.2.0","koa-bodyparser":"^4.2.0","koa-router":"^7.2.0","moment":"^2.18.1","standard":"^10.0.2","uuid":"^3.0.1"},"gitHead":"6ba5ef201fddb852640c8242f1913c6eb654f301","_id":"ilp-plugin-lightning@0.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.1.4","_npmUser":{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"},"dist":{"integrity":"sha512-KIahuhQPYvPYC1oXK75Rx1xZHSX0vm6O+6QQv320qlwj+L+zhRiZdQYPDht8HBcowxwjunjjljgyZsOqsrRxQg==","shasum":"e9b72c5dde94d04154cc9e36785da3c2db0466f0","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDl6fSZgQ2plZuJxrI8WFagd7Lp6FlQh4H1TKf2WhFWsAiAn4GP3U2cFuJHZ9RbO7Z6Ho3hAGxhIEjY+6Tykos9Xfg=="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning-0.2.0.tgz_1501499115561_0.16303229262121022"},"directories":{}},"0.3.0":{"name":"ilp-plugin-lightning","version":"0.3.0","description":"Interledger.js Ledger Plugin for the Lightning Network","main":"src/plugin.js","scripts":{"test":"mocha test/*","lint":"standard src/*.js"},"keywords":["interledger","ilp","lightning","lnd","bitcoin"],"author":{"name":"Evan Schwartz","email":"evan@ripple.com"},"license":"Apache-2.0","dependencies":{"bignumber.js":"^4.0.2","debug":"^2.6.8","fast-crc32c":"^1.0.4","grpc":"^1.3.7","ilp-plugin-payment-channel-framework":"^1.0.1","ilp-plugin-shared":"git+https://github.com/interledgerjs/ilp-plugin-shared.git","int64-buffer":"^0.1.9","text-encoding":"^0.6.4"},"devDependencies":{"koa":"^2.2.0","koa-bodyparser":"^4.2.0","koa-router":"^7.2.0","moment":"^2.18.1","standard":"^10.0.2","uuid":"^3.0.1"},"gitHead":"7df3bfd02726f1b145a6cff180dde9111e65e675","_id":"ilp-plugin-lightning@0.3.0","_npmVersion":"5.3.0","_nodeVersion":"8.1.4","_npmUser":{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"},"dist":{"integrity":"sha512-ptdJkg2kmOAshi2WADbbovYJHN+5lILZJgb6eLya1parqXIU1B77pORGop3AJKNHjnU6PNYOioBTed3ratSH8w==","shasum":"e68f0aa9ec30afd8f5697349856c07324072241a","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-0.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhvSXrFBJWKmc8xwTJvR/V2x8jMPpzkB4ta2QsttG1nQIga0y+Go9Zt4hchKAC1E8Ip7YR+yOa6NyMGWnf7hUPYus="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning-0.3.0.tgz_1501665171257_0.8486488664057106"},"directories":{}},"1.0.0-beta.2":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.2","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"next"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^1.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-plugin-btp":"^1.3.2","ilp-plugin-mini-accounts":"github:interledgerjs/ilp-plugin-mini-accounts#ko-ts-fixes"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","cp":"^0.2.0","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#75305c6a957184d4c3c532eeed05671a55305464","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"7fbca185f96f1c10706dfd472408e615d3b69852","readme":"# ilp-plugin-lightning\n\n- [Description](#description)\n- [Demo](#demo)\n- [Lightning Specific Protocols](#lightning-specific-protocols)\n- [API](#api)\n\n## Description\n\n** Still under development, use small amounts of money **\n\nThis is a plugin that integrates [Lightning](https://lightning.network/)\nto the Interledger network.  Using this plugin, one will be able to\ncommunicate value from the Bitcoin or Litecoin blockchain to any other\ncurrency on the Interledger network.\n \nThis plugin assumes that a client already has some payment channel \nopen, connected to the greater lightning network.  The following versions\nwill implement the opening and closing of payment channels so that \nusers will not need a pre-existing connection to the lightning network.\n\nIf you're unfamiliar with lightning, you can learn more about\nhow it works [here](https://dev.lightning.community/).\n\n## Demo\n\nIf you want to run this plugin, you'll need both a lightning and bitcoin node\nrunning.  The easiest way to do this is likely through setting up a local\nsimnet.  Once you have two entities configured, you can enter their credentials\nin `test/test.ts` and run `node ./build/test/test.js` to see a client request an\ninvoice from a server.\n\n## Lightning Specific Protocols\n\nThe main difference between lightning and the previously integrated currencies\n(XRP, ETH) are that lightning uses identity public keys (different from public\nkeys used for the blockchain) and all payments must be sent in response to\ninvoices.\n\n### Peering Protocol\nOnce a client establishes a websocket connection to a server, they automatically\nattempt to peer over lightning.\n\n#### peeringRequest\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentitypubkey: lightning identity pubkey\n  - lndPeeringHost: lightning peering `host:port`\n\nOnce the server receives the `BTP.MESSAGE` with sub-protocol `peeringRequest`,\nthey call `connectPeer` on their lightning daemon using the data in the packet\nto identify the client on the lightning network.  The server sends a lightning\npeering request that is automatically accepted, and sends back a `BTP.MESSAGE`\npacket with sub-protocol peeringResponse.\n\n#### peeringResponse\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentityPubkey: lightning identity pubkey\n\nThe client then parses the data from this packet and store the server's\nidentity public key for reference in the future. Peering requests are \nautomatically accepted over lightning. The client does NOT need to perform any\nlightning level functionality upon receipt of this packet. \n\n### Invoice Protocol\nWhen a plugin instance wishes to settle with a counterparty, they must request\nan invoice before they can make a payment.\n\n#### invoiceRequest\n- Type: `BTP.MESSAGE`\n- Data: \n  - amount: amount plugin wishes to pay counterparty\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol `invoiceRequest` \na plugin will create an invoice for the requested amount, and send back a\n`BTP.MESSAGE` containing the sub-protocol `invoiceResponse`.\n\n#### invoiceResponse\n- Type: `BTP.MESSAGE`\n- Data: \n  - paymentRequest: a payment request which can be decoded into an invoice\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol\n`invoiceResponse` the plugin will perform the following steps:\n\n1. Decode the payment request to an invoice\n2. Validate the invoice amount and destination are as expected\n3. Fulfill the invoice\n4. Update their balance\n5. Respond with `BTP.MESSAGE` containing the sub-protocol `invoiceFulfill` \n\n#### invoiceFulfill\n- Type: `BTP.TRANSFER`\n- Data:\n  - paymentRequest: a payment request to identify the sent invoice\n\nUpon receipt of a `BTP.TRANSFER` packet containing the sub-protocol\n`invoiceFulfill` the plugin will:\n\n1. Check their lightning daemon to ensure the specified invoice was actually\n   fulfilled\n2. Update their balance with the counterparty\n\n## API\n\n### `lndIdentityPubkey`\n- **Required**\n- Type: `string`\n- Identity public key used to identify a user on the lightning network.\n\n### `lndHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Communication host used to communicate with local lightning daemon\n\n### `lndPeeringHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Peering host used to listen for p2p communication\n\n### `macaroonPath`\n- Type: `string`\n- Path to the `admin.macaroon` used to authenticate lightning daemon requests\n\n### `tlsCertPath`\n- Type: `string`\n- Path to`tls.cert` \n\n### `role`\n- Type:\n  - `\"client\"` to connect to a single counterparty\n  - `\"server\"` enables multiple counterparties to connect\n- Default: `\"client\"`\n\n### `port`\n- Type: `number`\n- Only used for server, so that client can connect to through this port\n\n### `server`\n- Type: `string`\n- Format: `btp+wss://:secret@host:port`\n- Only used for client, URI to connect to server\n\n### `maxPacketAmount`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or\n  `string`\n- Default: `Infinity`\n- Maximum number of satoshis in single packet that will be accepted\n\n### `balance`\n- Positive balance: counterparty owes plugin money\n- Negative balance: plugin owes counterparty money\n\n#### `maximum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `Infinity`\n- Maximum balance the counterparty can owe this instance before further packets\n  are rejected\n\n#### `settleTo`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `0`\n- Plugin will attempt to settle to this amount after the balance falls below the settleThreshold\n\n#### `settleThreshold`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-10000`\n- Automatically attempts to settle when the balance drops below this number\n\n#### `minimum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-Infinity`\n- Maximum this instance owes the counterparty before further packets are\n  rejected\n","readmeFilename":"README.md","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.2","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-eNBrat8FA5jok/icj+OrCB8iOP/OC2Ka8/z9/w42zvalAAgXfH8HuQiSPJUq82ln2QY1qhs0fQJcdPQXbFE0CA==","shasum":"a019d1c6449dbda5312d7337baa05b290b11ead7","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.2.tgz","fileCount":2,"unpackedSize":8020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbt3+FCRA9TVsSAnZWagAAtDsP+gJ1HL8ZNrOQltWzClzr\ndPYsEZ4/U/SyGkWkpLUcdazMFKMjxJo66nlhpTWNcFFww3D06rNgvQUPvQ5X\nB6449ve5zZOaU2mgHwxg5YEjZgMK5Rxvq7xsNSQrj1krk4fjjFzRlbqxMq6g\n5vVXwN03oVgastpC6UQUjmzZq+Aavk/tJooR4qYI/jr6qp5s4jAAxrJvh0ZH\n6YMYSRBrefJ9TCeV1Zrugcexn7CW+tvqLY8CkcpbdAvxX/M+t6OVX1F19yJQ\nQBJQC6TwCQUM4cfBTGJ21Pfdo8zW+6rGe8ZOjcs3/ylBZnAxQU+aOG24BLtr\nULlhFOCS+DbLTrV5dOKK9sXYIzlMM/meS8HRae14T8VgD1m6MNVkryNRxC2u\nj1eBRl5j5QbmwBxFxi+pKgup9R+8f8E3b/lJUxh7pl2hhhhy08B0ORvvUcV+\nWbipgJJTIUKRJ41x8Vx6dBLGTWa3VuJhYhIKEMiynGdLS4nHK48bK3USIBzq\nMmqD3ea4xUMuOC46+hHm80zLza+TjPiPgDTcrmq+mjBrfMAHgAdwkp8t1vha\nyumf8hQlsfqOxG3pq/1IHzFomGyHJVPYZQYO24nziXrRvHvDxg3EJkiU8d1N\n4OF0SPqrUqgdmEBkJIkFwAV2XpaQztdcjEZlk43U2QSJf8Q3KdGLfgToQ974\nO7rb\r\n=Gf84\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnV6FEOv3ykyCF/eEbvMHlXlMv5c1i4p9MhNaI7qAn7gIhANNnWbJBhUqpb+L0pdYNRdbtwW+Xf1r9uMsWQCpOBBBp"}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.2_1538752388626_0.6380239223821886"},"_hasShrinkwrap":false},"1.0.0-beta.3":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.3","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"next"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^1.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-plugin-btp":"^1.3.2","ilp-plugin-mini-accounts":"github:interledgerjs/ilp-plugin-mini-accounts#ko-ts-fixes"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","cp":"^0.2.0","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#75305c6a957184d4c3c532eeed05671a55305464","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"368023f3b8c5a895c909223f43d33ef36edc3d99","readme":"# ilp-plugin-lightning\n\n- [Description](#description)\n- [Demo](#demo)\n- [Lightning Specific Protocols](#lightning-specific-protocols)\n- [API](#api)\n\n## Description\n\n** Still under development, use small amounts of money **\n\nThis is a plugin that integrates [Lightning](https://lightning.network/)\nto the Interledger network.  Using this plugin, one will be able to\ncommunicate value from the Bitcoin or Litecoin blockchain to any other\ncurrency on the Interledger network.\n \nThis plugin assumes that a client already has some payment channel \nopen, connected to the greater lightning network.  The following versions\nwill implement the opening and closing of payment channels so that \nusers will not need a pre-existing connection to the lightning network.\n\nIf you're unfamiliar with lightning, you can learn more about\nhow it works [here](https://dev.lightning.community/).\n\n## Demo\n\nIf you want to run this plugin, you'll need both a lightning and bitcoin node\nrunning.  The easiest way to do this is likely through setting up a local\nsimnet.  Once you have two entities configured, you can enter their credentials\nin `test/test.ts` and run `node ./build/test/test.js` to see a client request an\ninvoice from a server.\n\n## Lightning Specific Protocols\n\nThe main difference between lightning and the previously integrated currencies\n(XRP, ETH) are that lightning uses identity public keys (different from public\nkeys used for the blockchain) and all payments must be sent in response to\ninvoices.\n\n### Peering Protocol\nOnce a client establishes a websocket connection to a server, they automatically\nattempt to peer over lightning.\n\n#### peeringRequest\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentitypubkey: lightning identity pubkey\n  - lndPeeringHost: lightning peering `host:port`\n\nOnce the server receives the `BTP.MESSAGE` with sub-protocol `peeringRequest`,\nthey call `connectPeer` on their lightning daemon using the data in the packet\nto identify the client on the lightning network.  The server sends a lightning\npeering request that is automatically accepted, and sends back a `BTP.MESSAGE`\npacket with sub-protocol peeringResponse.\n\n#### peeringResponse\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentityPubkey: lightning identity pubkey\n\nThe client then parses the data from this packet and store the server's\nidentity public key for reference in the future. Peering requests are \nautomatically accepted over lightning. The client does NOT need to perform any\nlightning level functionality upon receipt of this packet. \n\n### Invoice Protocol\nWhen a plugin instance wishes to settle with a counterparty, they must request\nan invoice before they can make a payment.\n\n#### invoiceRequest\n- Type: `BTP.MESSAGE`\n- Data: \n  - amount: amount plugin wishes to pay counterparty\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol `invoiceRequest` \na plugin will create an invoice for the requested amount, and send back a\n`BTP.MESSAGE` containing the sub-protocol `invoiceResponse`.\n\n#### invoiceResponse\n- Type: `BTP.MESSAGE`\n- Data: \n  - paymentRequest: a payment request which can be decoded into an invoice\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol\n`invoiceResponse` the plugin will perform the following steps:\n\n1. Decode the payment request to an invoice\n2. Validate the invoice amount and destination are as expected\n3. Fulfill the invoice\n4. Update their balance\n5. Respond with `BTP.MESSAGE` containing the sub-protocol `invoiceFulfill` \n\n#### invoiceFulfill\n- Type: `BTP.TRANSFER`\n- Data:\n  - paymentRequest: a payment request to identify the sent invoice\n\nUpon receipt of a `BTP.TRANSFER` packet containing the sub-protocol\n`invoiceFulfill` the plugin will:\n\n1. Check their lightning daemon to ensure the specified invoice was actually\n   fulfilled\n2. Update their balance with the counterparty\n\n## API\n\n### `lndIdentityPubkey`\n- **Required**\n- Type: `string`\n- Identity public key used to identify a user on the lightning network.\n\n### `lndHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Communication host used to communicate with local lightning daemon\n\n### `lndPeeringHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Peering host used to listen for p2p communication\n\n### `macaroonPath`\n- Type: `string`\n- Path to the `admin.macaroon` used to authenticate lightning daemon requests\n\n### `tlsCertPath`\n- Type: `string`\n- Path to`tls.cert` \n\n### `role`\n- Type:\n  - `\"client\"` to connect to a single counterparty\n  - `\"server\"` enables multiple counterparties to connect\n- Default: `\"client\"`\n\n### `port`\n- Type: `number`\n- Only used for server, so that client can connect to through this port\n\n### `server`\n- Type: `string`\n- Format: `btp+wss://:secret@host:port`\n- Only used for client, URI to connect to server\n\n### `maxPacketAmount`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or\n  `string`\n- Default: `Infinity`\n- Maximum number of satoshis in single packet that will be accepted\n\n### `balance`\n- Positive balance: counterparty owes plugin money\n- Negative balance: plugin owes counterparty money\n\n#### `maximum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `Infinity`\n- Maximum balance the counterparty can owe this instance before further packets\n  are rejected\n\n#### `settleTo`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `0`\n- Plugin will attempt to settle to this amount after the balance falls below the settleThreshold\n\n#### `settleThreshold`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-10000`\n- Automatically attempts to settle when the balance drops below this number\n\n#### `minimum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-Infinity`\n- Maximum this instance owes the counterparty before further packets are\n  rejected\n","readmeFilename":"README.md","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.3","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-iE8nZK2YqvJKnjmuyM/IjCo8npysMnfOGQF8qqvm8Zg9EFHDKRnJ/xFAItoSnma51pVpsr2AEYF8oxY1nh+DhQ==","shasum":"f107f1218f9e1796c37ad65e2ef813bb86257288","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.3.tgz","fileCount":2,"unpackedSize":8020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbu7PnCRA9TVsSAnZWagAAQpsP/353K8Vpo5ZlwFb5rUMR\n0Uu3JL/+2cvmcw7tr426o2+DZBn1bIyLoSJPEVgmsnMlglRJmm1iOJL6Fkun\n/t6pNppRsCh8Ejoha4LJr2wXT+SCbhaQrxrKa60QaeyI4zJ2m3SoQio7proB\nEUOj4fFL69LG22ykZgXTVcY9EcRqkAHveneG2SO3bT9xeKKmnHPkgfD/CD5h\n4Sz7eFYhuHNPR6jt47niNI8ZRWUyjN/521OczMxlJ25p4ni3YjrIfebh70f7\nTysd1fscpGNxaLuMVyZ056SxBbn9/4bMAo7qSa48bCLQN5chQPNTzUJyvpew\ni67quVJ0d0l6y2G1DcDseppguJ4YvRjzwC9xi4a0W+yPNfd9HYqUo1UK6KkL\nipEfLcdwRR3pdr7cbn2+h/ZmCmDy5G4eDZqg4EtoI3ii+BugrZB+jdxCYhX3\nUmAOno3dXoA/kq2Fp7ZGYEGDzP2lUl0gKZjxEh+0vGuCLnF/fitFFUUuUtUb\nqab5q6Xmj31Ni5BCHIbnjLFlRpFKAKPOQ8wrXfOsWqNSOSA6ByaDBJmiVj7/\niMixpzfsC0jXxgjh/TiWVjwC5H5lMjFpnlSRDsoq/iCtpqVAMgTuHLsLQ49/\nHcKqMy9Ue0AWATHDxdhvpYQF+isedpoR4LgTfIEXGLYORxVBEuEZdqaqCMeh\nI35q\r\n=vYMv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHoytHfxZ3vfK1gtOmo+ydBGrsYctLjNZHUoyaoq77ptAiEA4vpzHeJu5zur4mVtNzMdFD3lBmTsGCLuO0ckndMp9+4="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.3_1539027941933_0.5874054325033149"},"_hasShrinkwrap":false},"1.0.0-beta.4":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.4","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"next"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^1.2.0","cp":"^0.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-plugin-btp":"^1.3.2","ilp-plugin-mini-accounts":"github:interledgerjs/ilp-plugin-mini-accounts#ko-ts-fixes","is-base64":"0.0.6"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#75305c6a957184d4c3c532eeed05671a55305464","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"a66420e94520157606fa8dd9984054452eb65c98","readme":"# ilp-plugin-lightning\n\n- [Description](#description)\n- [Demo](#demo)\n- [Lightning Specific Protocols](#lightning-specific-protocols)\n- [API](#api)\n\n## Description\n\n** Still under development, use small amounts of money **\n\nThis is a plugin that integrates [Lightning](https://lightning.network/)\nto the Interledger network.  Using this plugin, one will be able to\ncommunicate value from the Bitcoin or Litecoin blockchain to any other\ncurrency on the Interledger network.\n \nThis plugin assumes that a client already has some payment channel \nopen, connected to the greater lightning network.  The following versions\nwill implement the opening and closing of payment channels so that \nusers will not need a pre-existing connection to the lightning network.\n\nIf you're unfamiliar with lightning, you can learn more about\nhow it works [here](https://dev.lightning.community/).\n\n## Demo\n\nIf you want to run this plugin, you'll need both a lightning and bitcoin node\nrunning.  The easiest way to do this is likely through setting up a local\nsimnet.  Once you have two entities configured, you can enter their credentials\nin `test/test.ts` and run `node ./build/test/test.js` to see a client request an\ninvoice from a server.\n\n## Lightning Specific Protocols\n\nThe main difference between lightning and the previously integrated currencies\n(XRP, ETH) are that lightning uses identity public keys (different from public\nkeys used for the blockchain) and all payments must be sent in response to\ninvoices.\n\n### Peering Protocol\nOnce a client establishes a websocket connection to a server, they automatically\nattempt to peer over lightning.\n\n#### peeringRequest\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentitypubkey: lightning identity pubkey\n  - lndPeeringHost: lightning peering `host:port`\n\nOnce the server receives the `BTP.MESSAGE` with sub-protocol `peeringRequest`,\nthey call `connectPeer` on their lightning daemon using the data in the packet\nto identify the client on the lightning network.  The server sends a lightning\npeering request that is automatically accepted, and sends back a `BTP.MESSAGE`\npacket with sub-protocol peeringResponse.\n\n#### peeringResponse\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentityPubkey: lightning identity pubkey\n\nThe client then parses the data from this packet and store the server's\nidentity public key for reference in the future. Peering requests are \nautomatically accepted over lightning. The client does NOT need to perform any\nlightning level functionality upon receipt of this packet. \n\n### Invoice Protocol\nWhen a plugin instance wishes to settle with a counterparty, they must request\nan invoice before they can make a payment.\n\n#### invoiceRequest\n- Type: `BTP.MESSAGE`\n- Data: \n  - amount: amount plugin wishes to pay counterparty\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol `invoiceRequest` \na plugin will create an invoice for the requested amount, and send back a\n`BTP.MESSAGE` containing the sub-protocol `invoiceResponse`.\n\n#### invoiceResponse\n- Type: `BTP.MESSAGE`\n- Data: \n  - paymentRequest: a payment request which can be decoded into an invoice\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol\n`invoiceResponse` the plugin will perform the following steps:\n\n1. Decode the payment request to an invoice\n2. Validate the invoice amount and destination are as expected\n3. Fulfill the invoice\n4. Update their balance\n5. Respond with `BTP.MESSAGE` containing the sub-protocol `invoiceFulfill` \n\n#### invoiceFulfill\n- Type: `BTP.TRANSFER`\n- Data:\n  - paymentRequest: a payment request to identify the sent invoice\n\nUpon receipt of a `BTP.TRANSFER` packet containing the sub-protocol\n`invoiceFulfill` the plugin will:\n\n1. Check their lightning daemon to ensure the specified invoice was actually\n   fulfilled\n2. Update their balance with the counterparty\n\n## API\n\n### `lndIdentityPubkey`\n- **Required**\n- Type: `string`\n- Identity public key used to identify a user on the lightning network.\n\n### `lndHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Communication host used to communicate with local lightning daemon\n\n### `lndPeeringHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Peering host used to listen for p2p communication\n\n### `macaroonPath`\n- Type: `string`\n- Path to the `admin.macaroon` used to authenticate lightning daemon requests\n\n### `tlsCertPath`\n- Type: `string`\n- Path to`tls.cert` \n\n### `role`\n- Type:\n  - `\"client\"` to connect to a single counterparty\n  - `\"server\"` enables multiple counterparties to connect\n- Default: `\"client\"`\n\n### `port`\n- Type: `number`\n- Only used for server, so that client can connect to through this port\n\n### `server`\n- Type: `string`\n- Format: `btp+wss://:secret@host:port`\n- Only used for client, URI to connect to server\n\n### `maxPacketAmount`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or\n  `string`\n- Default: `Infinity`\n- Maximum number of satoshis in single packet that will be accepted\n\n### `balance`\n- Positive balance: counterparty owes plugin money\n- Negative balance: plugin owes counterparty money\n\n#### `maximum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `Infinity`\n- Maximum balance the counterparty can owe this instance before further packets\n  are rejected\n\n#### `settleTo`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `0`\n- Plugin will attempt to settle to this amount after the balance falls below the settleThreshold\n\n#### `settleThreshold`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-10000`\n- Automatically attempts to settle when the balance drops below this number\n\n#### `minimum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-Infinity`\n- Maximum this instance owes the counterparty before further packets are\n  rejected\n","readmeFilename":"README.md","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.4","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-ky8JjBx9T8ysQmkIzaHNdlvp9yM7kmHESqWDo8bAVjQ/zScL+eUYy85kiMlb0jPaN+1rXz3/yz20SoaOQIXCvA==","shasum":"3dc9d247bb5b5b49ff7b3383675d393fbd3564fd","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.4.tgz","fileCount":31,"unpackedSize":211844,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbvAfoCRA9TVsSAnZWagAAeckP/3bFVaDGSy9TU/7azHGr\nMXRXq/l5v4z84eAlES2jO2WhPevHyFk/002Vb4MkY7O2Tg3jExWcUFI+G5J/\nulSeDrkH/kc5C7OcN/tw/u4azqBpyutwVjRUqk7G/opvlr/z0dATzLhYRfwz\nGtZX7wDK/JCYcCn7eAvgRcea6pKpOrXPUiLSTCDSiRw7BC+kQmEpbzzj0AzO\nC/RmhQr7b7Ts8izXX8NkepihLsKntZALHqK8oWObtSSlPAT+Fi1+gauWhG4m\nR5cbvkRHu+coRy/a7MjjZhbOnwqkGVd7g+RihvCMqci+aT7d0xIvy/KCqyGC\nXtAN75u4vCp5rdjVGRSe9VsZ0EJ8b31XpaT3+9iEAslFto0f3f8pA4la1VYs\nvhp81Kgrjuu+AN8R79BduYuOMY7w86YbqrWlvhkSlhZA0yIlT6Kh7SQfqdxJ\nduKaMoZl2oxMXg7a6tlih42PmHkFVOdFjb8jXNCV6IY776pVbmuniDa4LK3c\nGuqm0A+oy1BsxViYjBo9S6o9+Dh59lunvEnEjc1PR9N0+EBdeHWl/amQw3VN\n3+njd1K3pNP8dEhDsI3ALM5oCdJ4LqzJLUDG+jnay8VwClle3O37BnIWb5rN\n/q8QEAOQ94LY88U1zoVahyVR3o+RBMcWcYeGqX1DReh9MtSoxiIkst1M51sv\ngDf0\r\n=ERYX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIELLDGuVIQYwuBfMtdBImBYhU74OMuV1xbjN7qUZQoHuAiAtE101MzSatqpBfQ1vhI75I3SateGGZrTFC8BvZe/DKA=="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.4_1539049447479_0.9767808271797576"},"_hasShrinkwrap":false},"1.0.0-beta.5":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.5","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"next"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^1.2.0","cp":"^0.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-plugin-btp":"^1.3.2","ilp-plugin-mini-accounts":"github:interledgerjs/ilp-plugin-mini-accounts#ko-ts-fixes","is-base64":"0.0.6"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#75305c6a957184d4c3c532eeed05671a55305464","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"8af205f41ccf1d0ec7626c0b222b8b90ce82561e","readme":"# ilp-plugin-lightning\n\n- [Description](#description)\n- [Demo](#demo)\n- [Lightning Specific Protocols](#lightning-specific-protocols)\n- [API](#api)\n\n## Description\n\n** Still under development, use small amounts of money **\n\nThis is a plugin that integrates [Lightning](https://lightning.network/)\nto the Interledger network.  Using this plugin, one will be able to\ncommunicate value from the Bitcoin or Litecoin blockchain to any other\ncurrency on the Interledger network.\n \nThis plugin assumes that a client already has some payment channel \nopen, connected to the greater lightning network.  The following versions\nwill implement the opening and closing of payment channels so that \nusers will not need a pre-existing connection to the lightning network.\n\nIf you're unfamiliar with lightning, you can learn more about\nhow it works [here](https://dev.lightning.community/).\n\n## Demo\n\nIf you want to run this plugin, you'll need both a lightning and bitcoin node\nrunning.  The easiest way to do this is likely through setting up a local\nsimnet.  Once you have two entities configured, you can enter their credentials\nin `test/test.ts` and run `node ./build/test/test.js` to see a client request an\ninvoice from a server.\n\n## Lightning Specific Protocols\n\nThe main difference between lightning and the previously integrated currencies\n(XRP, ETH) are that lightning uses identity public keys (different from public\nkeys used for the blockchain) and all payments must be sent in response to\ninvoices.\n\n### Peering Protocol\nOnce a client establishes a websocket connection to a server, they automatically\nattempt to peer over lightning.\n\n#### peeringRequest\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentitypubkey: lightning identity pubkey\n  - lndPeeringHost: lightning peering `host:port`\n\nOnce the server receives the `BTP.MESSAGE` with sub-protocol `peeringRequest`,\nthey call `connectPeer` on their lightning daemon using the data in the packet\nto identify the client on the lightning network.  The server sends a lightning\npeering request that is automatically accepted, and sends back a `BTP.MESSAGE`\npacket with sub-protocol peeringResponse.\n\n#### peeringResponse\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentityPubkey: lightning identity pubkey\n\nThe client then parses the data from this packet and store the server's\nidentity public key for reference in the future. Peering requests are \nautomatically accepted over lightning. The client does NOT need to perform any\nlightning level functionality upon receipt of this packet. \n\n### Invoice Protocol\nWhen a plugin instance wishes to settle with a counterparty, they must request\nan invoice before they can make a payment.\n\n#### invoiceRequest\n- Type: `BTP.MESSAGE`\n- Data: \n  - amount: amount plugin wishes to pay counterparty\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol `invoiceRequest` \na plugin will create an invoice for the requested amount, and send back a\n`BTP.MESSAGE` containing the sub-protocol `invoiceResponse`.\n\n#### invoiceResponse\n- Type: `BTP.MESSAGE`\n- Data: \n  - paymentRequest: a payment request which can be decoded into an invoice\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol\n`invoiceResponse` the plugin will perform the following steps:\n\n1. Decode the payment request to an invoice\n2. Validate the invoice amount and destination are as expected\n3. Fulfill the invoice\n4. Update their balance\n5. Respond with `BTP.MESSAGE` containing the sub-protocol `invoiceFulfill` \n\n#### invoiceFulfill\n- Type: `BTP.TRANSFER`\n- Data:\n  - paymentRequest: a payment request to identify the sent invoice\n\nUpon receipt of a `BTP.TRANSFER` packet containing the sub-protocol\n`invoiceFulfill` the plugin will:\n\n1. Check their lightning daemon to ensure the specified invoice was actually\n   fulfilled\n2. Update their balance with the counterparty\n\n## API\n\n### `lndIdentityPubkey`\n- **Required**\n- Type: `string`\n- Identity public key used to identify a user on the lightning network.\n\n### `lndHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Communication host used to communicate with local lightning daemon\n\n### `lndPeeringHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Peering host used to listen for p2p communication\n\n### `macaroonPath`\n- Type: `string`\n- Path to the `admin.macaroon` used to authenticate lightning daemon requests\n\n### `tlsCertPath`\n- Type: `string`\n- Path to`tls.cert` \n\n### `role`\n- Type:\n  - `\"client\"` to connect to a single counterparty\n  - `\"server\"` enables multiple counterparties to connect\n- Default: `\"client\"`\n\n### `port`\n- Type: `number`\n- Only used for server, so that client can connect to through this port\n\n### `server`\n- Type: `string`\n- Format: `btp+wss://:secret@host:port`\n- Only used for client, URI to connect to server\n\n### `maxPacketAmount`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or\n  `string`\n- Default: `Infinity`\n- Maximum number of satoshis in single packet that will be accepted\n\n### `balance`\n- Positive balance: counterparty owes plugin money\n- Negative balance: plugin owes counterparty money\n\n#### `maximum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `Infinity`\n- Maximum balance the counterparty can owe this instance before further packets\n  are rejected\n\n#### `settleTo`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `0`\n- Plugin will attempt to settle to this amount after the balance falls below the settleThreshold\n\n#### `settleThreshold`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-10000`\n- Automatically attempts to settle when the balance drops below this number\n\n#### `minimum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-Infinity`\n- Maximum this instance owes the counterparty before further packets are\n  rejected\n","readmeFilename":"README.md","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.5","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-kSUfO6keQedYRC10BBg73LDvO+zHW32VIm0SwQhcLXCwTi4ukfP4DVk0WuEYh3CJDHtdj8vZeIvDsj0rUbQTgg==","shasum":"62b26fe2cce366aedf1b7195541173c7bcccc030","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.5.tgz","fileCount":31,"unpackedSize":212569,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbvSNFCRA9TVsSAnZWagAATWgQAI32ZXG5sixN8He/64os\nOLSaTRCqRF+P2RC9Tp/Gw8BzgAJFEMIGploQs3Xrq+9Up1Au8kuutDnys0yz\nIJjq2eImyCjuJ7S3umOAR7hS0/93UlbWJ7uCbbO+jW1zQcOdr9uYKq7Pbh3R\nQAHkMtau6BjRXrDJ9PcJKZPMMngYqc1u8l3jEFPiPHuVQZuAU2C56CVeBL1c\nLnFInp/lT9pC7QmihaBs6ez7UILS+w28jJHbB+lonaPn9AQfsMQRwLB3SxkS\nw62uyaLQE7EkJRSmkHD5kdOR5djYarxQ8QByvmXLx1Bl2hgMQitZs7nTLDPZ\nwemq+9iSDDDvEt2JiNMy8IFJ8uKdDkbx0LoVY+WbeXrikfa/Jrv7+53TvfLg\nIsDYz7q4SiKwiENynNW4S2Dq5b0ggAp37JA5TEsRX5tnp30/aRT2MeVakK3t\ny1evacjInqs5BNldPvtSGS1cZUog1ksNiS7IJtXAzqPOeA1B6Mihr+GRlurh\nxmCj9aPuLF9Qrm1QZvL88x/XjRu+e4+J5k+buP8yZYFJKO/6f0dhEiZS1Ha+\nifWdsmH91HxCoD5/976I2NRR5VA/BTnQowCL4A0FuvB/w12nEd8Blt57oiAC\neEV0EdrcJn//5cYqzXEDamvhK9Iki0QG26OgBYJNhh0FnB9u1vfZzBNvivK3\njnw+\r\n=Fmjk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuyc3a+bwH7IzQFrErMD7//kxs87fpw72l9Wdf8F62mQIgY954jGlr6Ajql/b60ecT0ZY9xagj7QxPEXcjw8ibbUw="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.5_1539121988321_0.22238419453402702"},"_hasShrinkwrap":false},"1.0.0-beta.6":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.6","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"next"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^1.2.0","cp":"^0.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-plugin-btp":"^1.3.2","ilp-plugin-mini-accounts":"github:interledgerjs/ilp-plugin-mini-accounts#ko-ts-fixes","is-base64":"0.0.6"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#75305c6a957184d4c3c532eeed05671a55305464","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"1dbe6b5efdefc9c375d51998c1850365f2c045f2","readme":"# ilp-plugin-lightning\n\n- [Description](#description)\n- [Demo](#demo)\n- [Lightning Specific Protocols](#lightning-specific-protocols)\n- [API](#api)\n\n## Description\n\n** Still under development, use small amounts of money **\n\nThis is a plugin that integrates [Lightning](https://lightning.network/)\nto the Interledger network.  Using this plugin, one will be able to\ncommunicate value from the Bitcoin or Litecoin blockchain to any other\ncurrency on the Interledger network.\n \nThis plugin assumes that a client already has some payment channel \nopen, connected to the greater lightning network.  The following versions\nwill implement the opening and closing of payment channels so that \nusers will not need a pre-existing connection to the lightning network.\n\nIf you're unfamiliar with lightning, you can learn more about\nhow it works [here](https://dev.lightning.community/).\n\n## Demo\n\nIf you want to run this plugin, you'll need both a lightning and bitcoin node\nrunning.  The easiest way to do this is likely through setting up a local\nsimnet.  Once you have two entities configured, you can enter their credentials\nin `test/test.ts` and run `node ./build/test/test.js` to see a client request an\ninvoice from a server.\n\n## Lightning Specific Protocols\n\nThe main difference between lightning and the previously integrated currencies\n(XRP, ETH) are that lightning uses identity public keys (different from public\nkeys used for the blockchain) and all payments must be sent in response to\ninvoices.\n\n### Peering Protocol\nOnce a client establishes a websocket connection to a server, they automatically\nattempt to peer over lightning.\n\n#### peeringRequest\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentitypubkey: lightning identity pubkey\n  - lndPeeringHost: lightning peering `host:port`\n\nOnce the server receives the `BTP.MESSAGE` with sub-protocol `peeringRequest`,\nthey call `connectPeer` on their lightning daemon using the data in the packet\nto identify the client on the lightning network.  The server sends a lightning\npeering request that is automatically accepted, and sends back a `BTP.MESSAGE`\npacket with sub-protocol peeringResponse.\n\n#### peeringResponse\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentityPubkey: lightning identity pubkey\n\nThe client then parses the data from this packet and store the server's\nidentity public key for reference in the future. Peering requests are \nautomatically accepted over lightning. The client does NOT need to perform any\nlightning level functionality upon receipt of this packet. \n\n### Invoice Protocol\nWhen a plugin instance wishes to settle with a counterparty, they must request\nan invoice before they can make a payment.\n\n#### invoiceRequest\n- Type: `BTP.MESSAGE`\n- Data: \n  - amount: amount plugin wishes to pay counterparty\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol `invoiceRequest` \na plugin will create an invoice for the requested amount, and send back a\n`BTP.MESSAGE` containing the sub-protocol `invoiceResponse`.\n\n#### invoiceResponse\n- Type: `BTP.MESSAGE`\n- Data: \n  - paymentRequest: a payment request which can be decoded into an invoice\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol\n`invoiceResponse` the plugin will perform the following steps:\n\n1. Decode the payment request to an invoice\n2. Validate the invoice amount and destination are as expected\n3. Fulfill the invoice\n4. Update their balance\n5. Respond with `BTP.MESSAGE` containing the sub-protocol `invoiceFulfill` \n\n#### invoiceFulfill\n- Type: `BTP.TRANSFER`\n- Data:\n  - paymentRequest: a payment request to identify the sent invoice\n\nUpon receipt of a `BTP.TRANSFER` packet containing the sub-protocol\n`invoiceFulfill` the plugin will:\n\n1. Check their lightning daemon to ensure the specified invoice was actually\n   fulfilled\n2. Update their balance with the counterparty\n\n## API\n\n### `lndIdentityPubkey`\n- **Required**\n- Type: `string`\n- Identity public key used to identify a user on the lightning network.\n\n### `lndHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Communication host used to communicate with local lightning daemon\n\n### `lndPeeringHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Peering host used to listen for p2p communication\n\n### `macaroonPath`\n- Type: `string`\n- Path to the `admin.macaroon` used to authenticate lightning daemon requests\n\n### `tlsCertPath`\n- Type: `string`\n- Path to`tls.cert` \n\n### `role`\n- Type:\n  - `\"client\"` to connect to a single counterparty\n  - `\"server\"` enables multiple counterparties to connect\n- Default: `\"client\"`\n\n### `port`\n- Type: `number`\n- Only used for server, so that client can connect to through this port\n\n### `server`\n- Type: `string`\n- Format: `btp+wss://:secret@host:port`\n- Only used for client, URI to connect to server\n\n### `maxPacketAmount`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or\n  `string`\n- Default: `Infinity`\n- Maximum number of satoshis in single packet that will be accepted\n\n### `balance`\n- Positive balance: counterparty owes plugin money\n- Negative balance: plugin owes counterparty money\n\n#### `maximum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `Infinity`\n- Maximum balance the counterparty can owe this instance before further packets\n  are rejected\n\n#### `settleTo`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `0`\n- Plugin will attempt to settle to this amount after the balance falls below the settleThreshold\n\n#### `settleThreshold`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-10000`\n- Automatically attempts to settle when the balance drops below this number\n\n#### `minimum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-Infinity`\n- Maximum this instance owes the counterparty before further packets are\n  rejected\n","readmeFilename":"README.md","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.6","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-lcoyGElBEzPA5v5Kv1VvLmfnRFWG0XLH6tlXfpWuNIhY6IOPfGqtQgabVxZ+0maA1ZZRkr5LgFWf8hfFIxACGw==","shasum":"14bef9d58e8a583c416387d070b5d76079f81c56","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.6.tgz","fileCount":31,"unpackedSize":212619,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbx6IPCRA9TVsSAnZWagAAf9sP/j7gaHviPFKrDIcMcE0X\nN0RN20OqBtR7VtT9LMmB4WWX8b9ewcql+R8eozZzo3/wNcx/G804V8LgQJ64\nmL5TiuoQv+hXekHRG/iLw5JArgNYy2C9duyKm4FxR3+ePf+YOQUsGG5ZyyPf\nMacawSTZ6Fo+HAsmozGpNab8TzM7ATVK24am8+VLLVdzOdrIOZtkLtnMdtl5\nollo5VE6HcnBG7XFVBM5KrGN/4OFkAAt+BByJPRaE2eJSbGge1snfo5l+9+l\nCI+C906XketvEngarFdF9I0c+noe4bD/F11G0KljgTSXY8YuOotx80Cgddd+\nivbN9sTqgAbUJPIHlXas+Eid5/zobvkNRF6jnj4AaHci66VafN5CDCGFQgVP\nuUkhlX0jXe6qzHv97GxZJWZvccjbkCS+BDB3JKWZVrnY4/R7+VBi9ehEKMyb\n3gu6L2jajH8LLCWLf/SbD5NPemeyCcONq38diQNV5JyqdgiCOCEsPABqzC+l\nflGqV3pnt6P4HC94XuxmBsro48AiPGKmtSDDav/1mcCDV8Va/NWWSu9hBKCh\nIL87nDnFomflRPd/wVAMUoI2qrZiiP1B+lrH8jQLbPGS+32xJ0UmDpvwOiJM\nr9WfX0QKsFRyRJHkmomj0xj6iHvYXNYIyMupwDCXSgD+WXbdnV+Im6Rt0idc\ncu8O\r\n=mc0G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFpD3tiC02ODcPgxWT2Lodag0obRuN3P8R+d+z2QP7czAiEArEnqKxbwTPQxeZf51HW0lK6H7YbsbkfudvpoLX0nxHc="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.6_1539809807053_0.29809900847570137"},"_hasShrinkwrap":false},"1.0.0-beta.8":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.8","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"next"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^1.2.0","cp":"^0.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-plugin-btp":"^1.3.3","ilp-plugin-mini-accounts":"github:interledgerjs/ilp-plugin-mini-accounts#ko-ts-fixes","is-base64":"0.0.6"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"f87bfd0a830036dc9982a3a006b35d3fcff2a2d9","readme":"# ilp-plugin-lightning\n\n- [Description](#description)\n- [Demo](#demo)\n- [Lightning Specific Protocols](#lightning-specific-protocols)\n- [API](#api)\n\n## Description\n\n** Still under development, use small amounts of money **\n\nThis is a plugin that integrates [Lightning](https://lightning.network/)\nto the Interledger network.  Using this plugin, one will be able to\ncommunicate value from the Bitcoin or Litecoin blockchain to any other\ncurrency on the Interledger network.\n \nThis plugin assumes that a client already has some payment channel \nopen, connected to the greater lightning network.  The following versions\nwill implement the opening and closing of payment channels so that \nusers will not need a pre-existing connection to the lightning network.\n\nIf you're unfamiliar with lightning, you can learn more about\nhow it works [here](https://dev.lightning.community/).\n\n## Demo\n\nIf you want to run this plugin, you'll need both a lightning and bitcoin node\nrunning.  The easiest way to do this is likely through setting up a local\nsimnet.  Once you have two entities configured, you can enter their credentials\nin `test/test.ts` and run `node ./build/test/test.js` to see a client request an\ninvoice from a server.\n\n## Lightning Specific Protocols\n\nThe main difference between lightning and the previously integrated currencies\n(XRP, ETH) are that lightning uses identity public keys (different from public\nkeys used for the blockchain) and all payments must be sent in response to\ninvoices.\n\n### Peering Protocol\nOnce a client establishes a websocket connection to a server, they automatically\nattempt to peer over lightning.\n\n#### peeringRequest\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentitypubkey: lightning identity pubkey\n  - lndPeeringHost: lightning peering `host:port`\n\nOnce the server receives the `BTP.MESSAGE` with sub-protocol `peeringRequest`,\nthey call `connectPeer` on their lightning daemon using the data in the packet\nto identify the client on the lightning network.  The server sends a lightning\npeering request that is automatically accepted, and sends back a `BTP.MESSAGE`\npacket with sub-protocol peeringResponse.\n\n#### peeringResponse\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentityPubkey: lightning identity pubkey\n\nThe client then parses the data from this packet and store the server's\nidentity public key for reference in the future. Peering requests are \nautomatically accepted over lightning. The client does NOT need to perform any\nlightning level functionality upon receipt of this packet. \n\n### Invoice Protocol\nWhen a plugin instance wishes to settle with a counterparty, they must request\nan invoice before they can make a payment.\n\n#### invoiceRequest\n- Type: `BTP.MESSAGE`\n- Data: \n  - amount: amount plugin wishes to pay counterparty\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol `invoiceRequest` \na plugin will create an invoice for the requested amount, and send back a\n`BTP.MESSAGE` containing the sub-protocol `invoiceResponse`.\n\n#### invoiceResponse\n- Type: `BTP.MESSAGE`\n- Data: \n  - paymentRequest: a payment request which can be decoded into an invoice\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol\n`invoiceResponse` the plugin will perform the following steps:\n\n1. Decode the payment request to an invoice\n2. Validate the invoice amount and destination are as expected\n3. Fulfill the invoice\n4. Update their balance\n5. Respond with `BTP.MESSAGE` containing the sub-protocol `invoiceFulfill` \n\n#### invoiceFulfill\n- Type: `BTP.TRANSFER`\n- Data:\n  - paymentRequest: a payment request to identify the sent invoice\n\nUpon receipt of a `BTP.TRANSFER` packet containing the sub-protocol\n`invoiceFulfill` the plugin will:\n\n1. Check their lightning daemon to ensure the specified invoice was actually\n   fulfilled\n2. Update their balance with the counterparty\n\n## API\n\n### `lndIdentityPubkey`\n- **Required**\n- Type: `string`\n- Identity public key used to identify a user on the lightning network.\n\n### `lndHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Communication host used to communicate with local lightning daemon\n\n### `lndPeeringHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Peering host used to listen for p2p communication\n\n### `macaroonPath`\n- Type: `string`\n- Path to the `admin.macaroon` used to authenticate lightning daemon requests\n\n### `tlsCertPath`\n- Type: `string`\n- Path to`tls.cert` \n\n### `role`\n- Type:\n  - `\"client\"` to connect to a single counterparty\n  - `\"server\"` enables multiple counterparties to connect\n- Default: `\"client\"`\n\n### `port`\n- Type: `number`\n- Only used for server, so that client can connect to through this port\n\n### `server`\n- Type: `string`\n- Format: `btp+wss://:secret@host:port`\n- Only used for client, URI to connect to server\n\n### `maxPacketAmount`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or\n  `string`\n- Default: `Infinity`\n- Maximum number of satoshis in single packet that will be accepted\n\n### `balance`\n- Positive balance: counterparty owes plugin money\n- Negative balance: plugin owes counterparty money\n\n#### `maximum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `Infinity`\n- Maximum balance the counterparty can owe this instance before further packets\n  are rejected\n\n#### `settleTo`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `0`\n- Plugin will attempt to settle to this amount after the balance falls below the settleThreshold\n\n#### `settleThreshold`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-10000`\n- Automatically attempts to settle when the balance drops below this number\n\n#### `minimum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-Infinity`\n- Maximum this instance owes the counterparty before further packets are\n  rejected\n","readmeFilename":"README.md","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.8","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-AOx9/zCQXtw0Rgex2UYAvsZjnPs8BWHbptgzUSMdw0On3YRRPopGaj/LGlzJuJhnZE9814THOx6l9f5VJy/FOQ==","shasum":"1aadd03b3a13f73bd0a0a3025ffe37977015e57c","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.8.tgz","fileCount":24,"unpackedSize":196180,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbzy2KCRA9TVsSAnZWagAAg7IP/idZniASYE7xr9DaXeAI\nB3g++QWQdJU0odMrgU81ci61+3+HIUwk6Yc5Gd/nXaDD4fgVJNyy1SGRe3TP\n6slqw/YdA2AOCJgbtvSMzTPri0CGNhJZASHF85sGE5E0k4W4GrNQKLHg8c6+\n7CSZBPJBfMQ5+6wQsmO/3JxilwuemDmupI3wui5Rf8O8fphd6crgLaQ+k/8u\n6MK57pNr9UVBM+Q9t78b2Y10hqHYFqgx/yiVtQzfu/5lMMK6egE44qCetqJF\n1eGOhwiMJRfSMt5hmjipIIfqy9mO4pu/CDGMmtByDFGPYw1lJIK3cXZLJseH\nV2ylwj8U+41rOIBp29d5XECp5n9L370jBq7x07Cf4KHb5/2kJppFanUykq/0\ng3Nke0ZniCtk5jZaO1N6XliypBQ7F6+C56rFnCO7VJ/PFnr0ZXkE9ENAQNzQ\n54iVLz4DBkezxcRHiuFi//XGWwT0DaawnlqBkfL+rLPW29xBmVeaEH+nmvy4\ndlsxqcLjEbyZu+ltTPx8kPiBB/1Tg2o73h7k6luT83b/qwUNwYIDeq3sPiHw\nlpWkTWAk00KxgvcXYEdXQxxwOj6F0LJvG5ct7WxOYIQgqyVzKdwWh+7iFrbA\nyHXcaCOBLuYXUu3KUDBTI56hZpgBHPn7vJi8L3GFvWzhduGw8uCUeIJlPrr4\n6Nre\r\n=oENs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBf4IqcGWDHP2W9kzvQh5/SOsPa5V8rY0lkWQsdEl4J2AiEAsuJZPoty8z+WgCr6Jhy6qsrPZRKm0MS0Pq9JUJi5vQU="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.8_1540304265626_0.06945446829427304"},"_hasShrinkwrap":false},"1.0.0-beta.9":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.9","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"next"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^1.2.0","cp":"^0.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-plugin-btp":"^1.3.3","ilp-plugin-mini-accounts":"github:interledgerjs/ilp-plugin-mini-accounts#ko-ts-fixes","is-base64":"0.0.6"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"be273b6a0e114c9cb8f07b9050ebf192fbab77c5","readme":"# ilp-plugin-lightning\n\n- [Description](#description)\n- [Demo](#demo)\n- [Lightning Specific Protocols](#lightning-specific-protocols)\n- [API](#api)\n\n## Description\n\n** Still under development, use small amounts of money **\n\nThis is a plugin that integrates [Lightning](https://lightning.network/)\nto the Interledger network.  Using this plugin, one will be able to\ncommunicate value from the Bitcoin or Litecoin blockchain to any other\ncurrency on the Interledger network.\n \nThis plugin assumes that a client already has some payment channel \nopen, connected to the greater lightning network.  The following versions\nwill implement the opening and closing of payment channels so that \nusers will not need a pre-existing connection to the lightning network.\n\nIf you're unfamiliar with lightning, you can learn more about\nhow it works [here](https://dev.lightning.community/).\n\n## Demo\n\nIf you want to run this plugin, you'll need both a lightning and bitcoin node\nrunning.  The easiest way to do this is likely through setting up a local\nsimnet.  Once you have two entities configured, you can enter their credentials\nin `test/test.ts` and run `node ./build/test/test.js` to see a client request an\ninvoice from a server.\n\n## Lightning Specific Protocols\n\nThe main difference between lightning and the previously integrated currencies\n(XRP, ETH) are that lightning uses identity public keys (different from public\nkeys used for the blockchain) and all payments must be sent in response to\ninvoices.\n\n### Peering Protocol\nOnce a client establishes a websocket connection to a server, they automatically\nattempt to peer over lightning.\n\n#### peeringRequest\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentitypubkey: lightning identity pubkey\n  - lndPeeringHost: lightning peering `host:port`\n\nOnce the server receives the `BTP.MESSAGE` with sub-protocol `peeringRequest`,\nthey call `connectPeer` on their lightning daemon using the data in the packet\nto identify the client on the lightning network.  The server sends a lightning\npeering request that is automatically accepted, and sends back a `BTP.MESSAGE`\npacket with sub-protocol peeringResponse.\n\n#### peeringResponse\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentityPubkey: lightning identity pubkey\n\nThe client then parses the data from this packet and store the server's\nidentity public key for reference in the future. Peering requests are \nautomatically accepted over lightning. The client does NOT need to perform any\nlightning level functionality upon receipt of this packet. \n\n### Invoice Protocol\nWhen a plugin instance wishes to settle with a counterparty, they must request\nan invoice before they can make a payment.\n\n#### invoiceRequest\n- Type: `BTP.MESSAGE`\n- Data: \n  - amount: amount plugin wishes to pay counterparty\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol `invoiceRequest` \na plugin will create an invoice for the requested amount, and send back a\n`BTP.MESSAGE` containing the sub-protocol `invoiceResponse`.\n\n#### invoiceResponse\n- Type: `BTP.MESSAGE`\n- Data: \n  - paymentRequest: a payment request which can be decoded into an invoice\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol\n`invoiceResponse` the plugin will perform the following steps:\n\n1. Decode the payment request to an invoice\n2. Validate the invoice amount and destination are as expected\n3. Fulfill the invoice\n4. Update their balance\n5. Respond with `BTP.MESSAGE` containing the sub-protocol `invoiceFulfill` \n\n#### invoiceFulfill\n- Type: `BTP.TRANSFER`\n- Data:\n  - paymentRequest: a payment request to identify the sent invoice\n\nUpon receipt of a `BTP.TRANSFER` packet containing the sub-protocol\n`invoiceFulfill` the plugin will:\n\n1. Check their lightning daemon to ensure the specified invoice was actually\n   fulfilled\n2. Update their balance with the counterparty\n\n## API\n\n### `lndIdentityPubkey`\n- **Required**\n- Type: `string`\n- Identity public key used to identify a user on the lightning network.\n\n### `lndHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Communication host used to communicate with local lightning daemon\n\n### `lndPeeringHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Peering host used to listen for p2p communication\n\n### `macaroonPath`\n- Type: `string`\n- Path to the `admin.macaroon` used to authenticate lightning daemon requests\n\n### `tlsCertPath`\n- Type: `string`\n- Path to`tls.cert` \n\n### `role`\n- Type:\n  - `\"client\"` to connect to a single counterparty\n  - `\"server\"` enables multiple counterparties to connect\n- Default: `\"client\"`\n\n### `port`\n- Type: `number`\n- Only used for server, so that client can connect to through this port\n\n### `server`\n- Type: `string`\n- Format: `btp+wss://:secret@host:port`\n- Only used for client, URI to connect to server\n\n### `maxPacketAmount`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or\n  `string`\n- Default: `Infinity`\n- Maximum number of satoshis in single packet that will be accepted\n\n### `balance`\n- Positive balance: counterparty owes plugin money\n- Negative balance: plugin owes counterparty money\n\n#### `maximum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `Infinity`\n- Maximum balance the counterparty can owe this instance before further packets\n  are rejected\n\n#### `settleTo`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `0`\n- Plugin will attempt to settle to this amount after the balance falls below the settleThreshold\n\n#### `settleThreshold`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-10000`\n- Automatically attempts to settle when the balance drops below this number\n\n#### `minimum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-Infinity`\n- Maximum this instance owes the counterparty before further packets are\n  rejected\n","readmeFilename":"README.md","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.9","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-FOLxxHqdwam9JH6EQnLj8ikTFFjPEWd4bTkiTgPlve/f4Pz3TtzljP4WfTBH8it8DQ4HoCz/fSQz1V0he0TJqQ==","shasum":"5eb31e5dd2ee8448afe58f2803d5c12b6f2b5ac8","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.9.tgz","fileCount":24,"unpackedSize":197628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0JiwCRA9TVsSAnZWagAAR4sP/3qyH+klNq3jiQx8Y1KS\n5F7AX0Qd2JqepYF8A6+n2nbqifOc8I1lIk+2r1ks2ij2+/gFyOvhnRW1qTp/\nSo1t3blnAxmHUi6xweIcdjOT+tzBc1OV95/H/RKNL5L5tJJwr2YWMXArzr98\nYdg0X0HVnImTbEx/m3J5+ILw42SsbLCAMmKyjF3It0ZWXuib90C4qb9VQjS9\nqsRUaTVyDQSBPK441kBZYPGihef1GYKmyiqAYGpel6vOUvHJ/sxdR/6JRhnj\n3JCFcmd1C2fixcjAdlP3TogTecpXsyu/UK/skGR+l815nZ7MBSFNwSi9ia4m\nI3ddSgdxs7mpEgWyKfwzJDUmhJEWyO40qa6vf7UHfOLDVdLiDhwRMCI08Jym\nCLP+54GEKMv7+coT7PSfwjkThpOFCrUy5PvYzIB+mOf5ojNXq9NS8hXvSBtU\n0TPooQ7jxhR7Irrb6gdZBwK4N1kdlDi9KMlwXE1fzp7I79R5amOSXUzLg+Lw\n12Rp0F5kZRUEgLwj51zvjRWI9lurxDalU5WwyfKy7lXEJva20WfNuDrRRRja\nOyulp+XpYgh/UMnlVzEImzxe1ULrWGaXFwp2iop+18l4Yx2NfDlijB5S809K\nPstSbkozpmSbHw1f4Kc263DEtylcOsffk9ES2YOU45JrGya8b5EFxBRSxoUH\naUbp\r\n=kDbL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGwPzU7xwAyhfWGbfUZqMXRr5mAORysPjuC1nQStFMv/AiEAiJg0FeQ5cnN7m765qpEU4LCiH7L3opeQzEnb9xaQAjk="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.9_1540397231250_0.8355464757034488"},"_hasShrinkwrap":false},"1.0.0-beta.10":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.10","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"next"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^1.2.0","cp":"^0.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-plugin-btp":"^1.3.3","ilp-plugin-mini-accounts":"github:interledgerjs/ilp-plugin-mini-accounts#ko-ts-fixes","ilp-store-memory":"^1.0.0","is-base64":"0.0.6"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"ce3f671f6949bed11eecc6ba8ddc6442b182147f","readme":"# ilp-plugin-lightning\n\n- [Description](#description)\n- [Demo](#demo)\n- [Lightning Specific Protocols](#lightning-specific-protocols)\n- [API](#api)\n\n## Description\n\n** Still under development, use small amounts of money **\n\nThis is a plugin that integrates [Lightning](https://lightning.network/)\nto the Interledger network.  Using this plugin, one will be able to\ncommunicate value from the Bitcoin or Litecoin blockchain to any other\ncurrency on the Interledger network.\n \nThis plugin assumes that a client already has some payment channel \nopen, connected to the greater lightning network.  The following versions\nwill implement the opening and closing of payment channels so that \nusers will not need a pre-existing connection to the lightning network.\n\nIf you're unfamiliar with lightning, you can learn more about\nhow it works [here](https://dev.lightning.community/).\n\n## Demo\n\nIf you want to run this plugin, you'll need both a lightning and bitcoin node\nrunning.  The easiest way to do this is likely through setting up a local\nsimnet.  Once you have two entities configured, you can enter their credentials\nin `test/test.ts` and run `node ./build/test/test.js` to see a client request an\ninvoice from a server.\n\n## Lightning Specific Protocols\n\nThe main difference between lightning and the previously integrated currencies\n(XRP, ETH) are that lightning uses identity public keys (different from public\nkeys used for the blockchain) and all payments must be sent in response to\ninvoices.\n\n### Peering Protocol\nOnce a client establishes a websocket connection to a server, they automatically\nattempt to peer over lightning.\n\n#### peeringRequest\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentitypubkey: lightning identity pubkey\n  - lndPeeringHost: lightning peering `host:port`\n\nOnce the server receives the `BTP.MESSAGE` with sub-protocol `peeringRequest`,\nthey call `connectPeer` on their lightning daemon using the data in the packet\nto identify the client on the lightning network.  The server sends a lightning\npeering request that is automatically accepted, and sends back a `BTP.MESSAGE`\npacket with sub-protocol peeringResponse.\n\n#### peeringResponse\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentityPubkey: lightning identity pubkey\n\nThe client then parses the data from this packet and store the server's\nidentity public key for reference in the future. Peering requests are \nautomatically accepted over lightning. The client does NOT need to perform any\nlightning level functionality upon receipt of this packet. \n\n### Invoice Protocol\nWhen a plugin instance wishes to settle with a counterparty, they must request\nan invoice before they can make a payment.\n\n#### invoiceRequest\n- Type: `BTP.MESSAGE`\n- Data: \n  - amount: amount plugin wishes to pay counterparty\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol `invoiceRequest` \na plugin will create an invoice for the requested amount, and send back a\n`BTP.MESSAGE` containing the sub-protocol `invoiceResponse`.\n\n#### invoiceResponse\n- Type: `BTP.MESSAGE`\n- Data: \n  - paymentRequest: a payment request which can be decoded into an invoice\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol\n`invoiceResponse` the plugin will perform the following steps:\n\n1. Decode the payment request to an invoice\n2. Validate the invoice amount and destination are as expected\n3. Fulfill the invoice\n4. Update their balance\n5. Respond with `BTP.MESSAGE` containing the sub-protocol `invoiceFulfill` \n\n#### invoiceFulfill\n- Type: `BTP.TRANSFER`\n- Data:\n  - paymentRequest: a payment request to identify the sent invoice\n\nUpon receipt of a `BTP.TRANSFER` packet containing the sub-protocol\n`invoiceFulfill` the plugin will:\n\n1. Check their lightning daemon to ensure the specified invoice was actually\n   fulfilled\n2. Update their balance with the counterparty\n\n## API\n\n### `lndIdentityPubkey`\n- **Required**\n- Type: `string`\n- Identity public key used to identify a user on the lightning network.\n\n### `lndHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Communication host used to communicate with local lightning daemon\n\n### `lndPeeringHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Peering host used to listen for p2p communication\n\n### `macaroonPath`\n- Type: `string`\n- Path to the `admin.macaroon` used to authenticate lightning daemon requests\n\n### `tlsCertPath`\n- Type: `string`\n- Path to`tls.cert` \n\n### `role`\n- Type:\n  - `\"client\"` to connect to a single counterparty\n  - `\"server\"` enables multiple counterparties to connect\n- Default: `\"client\"`\n\n### `port`\n- Type: `number`\n- Only used for server, so that client can connect to through this port\n\n### `server`\n- Type: `string`\n- Format: `btp+wss://:secret@host:port`\n- Only used for client, URI to connect to server\n\n### `maxPacketAmount`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or\n  `string`\n- Default: `Infinity`\n- Maximum number of satoshis in single packet that will be accepted\n\n### `balance`\n- Positive balance: counterparty owes plugin money\n- Negative balance: plugin owes counterparty money\n\n#### `maximum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `Infinity`\n- Maximum balance the counterparty can owe this instance before further packets\n  are rejected\n\n#### `settleTo`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `0`\n- Plugin will attempt to settle to this amount after the balance falls below the settleThreshold\n\n#### `settleThreshold`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-10000`\n- Automatically attempts to settle when the balance drops below this number\n\n#### `minimum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-Infinity`\n- Maximum this instance owes the counterparty before further packets are\n  rejected\n","readmeFilename":"README.md","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.10","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-ro9qKZyfsuXuwZ1T07oOWdcw0q9AxHO91w5XM+zPYWqEqO9oaIgL4gmBv4ULzxpO7Ozda2zclgsQaKG/ryLOhg==","shasum":"8b2dee1082c7cd2d1de1ae34ebad2e6e6db63644","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.10.tgz","fileCount":24,"unpackedSize":198765,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0y+ECRA9TVsSAnZWagAAJfMQAJkX/YSKGT4Ur/ebQ7n/\nNb0usnfxzkCcEgV2FdfFvLmmCbcR1FbjJZw0PsvAzepZWigG6ykIdtBy+vnB\nIgO55bosU8t0q9bBRfQNs8gIvWoQTNkzYpG45hix8GG2cVQOKKop1ChgGlGW\nVEGuuQ6LY6vARVdluWOUYhsANrd6DR+jlC5E+N0ARh+np1lFGi408WSgl3Ay\nTDX3bx7QsZT79LNxfIfuOXjnsMbn1TUjX3XyGHkLBgp1KSYOPtT+6Jgg4nhB\nXpBvJVNWaGjo0kvV3ipTEalmjKvKJxwy/v2DQBQPPbeNPR90URKZnsF510Qo\nK+mRKzW9hhqylCNHO7zYidWjntRq7hTqcOi5E2xt5NutTsj5t+uSd6ffytgB\nbEqYyKBRkpcqhK7UXwwuSWxPRXAhT38TSc+35+1ZfwSAtoPCYcm9s6ambQ70\n8EgASgfd2We/usR6LasqnA/gcVLhQYkjU4ZSoyuxP4wxXIUkDjMWGczfSxnz\nYqZpJZV1i7GY9p4V6hkfttuNylJb8RaeKy4nBhQspBv/rcJ1m3xVkHv0Vdtj\n453P+AebQMNvI8DWAaU4kmeseLDWt5tGPHxw868xtw10sZL2OlsAxcDEVIu7\nnK1jeMA4g8Y/NElAQ2E1MIawYVnSBvZ3EFtFO0r9UGmqZaCKjP/0mTJCphdv\nxqUD\r\n=Bu3R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhbGTNvElggXbbGsQutR0ds8KegkyOKJ3BdgVMTGA7EAiAsAn8ibDHsTL4faPJpoBlbICJt6mS1QsBdbvCL69/NgQ=="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.10_1540566915900_0.9124664074213338"},"_hasShrinkwrap":false},"1.0.0-beta.11":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.11","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"next"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^1.2.0","cp":"^0.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-plugin-btp":"^1.3.3","ilp-plugin-mini-accounts":"github:interledgerjs/ilp-plugin-mini-accounts#ko-ts-fixes","ilp-store-memory":"^1.0.0","is-base64":"0.0.6"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"101c31777f3d74ac0e101adf5e8897ce916267b8","readme":"# ilp-plugin-lightning\n\n- [Description](#description)\n- [Demo](#demo)\n- [Lightning Specific Protocols](#lightning-specific-protocols)\n- [API](#api)\n\n## Description\n\n** Still under development, use small amounts of money **\n\nThis is a plugin that integrates [Lightning](https://lightning.network/)\nto the Interledger network.  Using this plugin, one will be able to\ncommunicate value from the Bitcoin or Litecoin blockchain to any other\ncurrency on the Interledger network.\n \nThis plugin assumes that a client already has some payment channel \nopen, connected to the greater lightning network.  The following versions\nwill implement the opening and closing of payment channels so that \nusers will not need a pre-existing connection to the lightning network.\n\nIf you're unfamiliar with lightning, you can learn more about\nhow it works [here](https://dev.lightning.community/).\n\n## Demo\n\nIf you want to run this plugin, you'll need both a lightning and bitcoin node\nrunning.  The easiest way to do this is likely through setting up a local\nsimnet.  Once you have two entities configured, you can enter their credentials\nin `test/test.ts` and run `node ./build/test/test.js` to see a client request an\ninvoice from a server.\n\n## Lightning Specific Protocols\n\nThe main difference between lightning and the previously integrated currencies\n(XRP, ETH) are that lightning uses identity public keys (different from public\nkeys used for the blockchain) and all payments must be sent in response to\ninvoices.\n\n### Peering Protocol\nOnce a client establishes a websocket connection to a server, they automatically\nattempt to peer over lightning.\n\n#### peeringRequest\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentitypubkey: lightning identity pubkey\n  - lndPeeringHost: lightning peering `host:port`\n\nOnce the server receives the `BTP.MESSAGE` with sub-protocol `peeringRequest`,\nthey call `connectPeer` on their lightning daemon using the data in the packet\nto identify the client on the lightning network.  The server sends a lightning\npeering request that is automatically accepted, and sends back a `BTP.MESSAGE`\npacket with sub-protocol peeringResponse.\n\n#### peeringResponse\n- Type: `BTP.MESSAGE`\n- Data:\n  - lndIdentityPubkey: lightning identity pubkey\n\nThe client then parses the data from this packet and store the server's\nidentity public key for reference in the future. Peering requests are \nautomatically accepted over lightning. The client does NOT need to perform any\nlightning level functionality upon receipt of this packet. \n\n### Invoice Protocol\nWhen a plugin instance wishes to settle with a counterparty, they must request\nan invoice before they can make a payment.\n\n#### invoiceRequest\n- Type: `BTP.MESSAGE`\n- Data: \n  - amount: amount plugin wishes to pay counterparty\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol `invoiceRequest` \na plugin will create an invoice for the requested amount, and send back a\n`BTP.MESSAGE` containing the sub-protocol `invoiceResponse`.\n\n#### invoiceResponse\n- Type: `BTP.MESSAGE`\n- Data: \n  - paymentRequest: a payment request which can be decoded into an invoice\n\nUpon receipt of a `BTP.MESSAGE` packet containing the sub-protocol\n`invoiceResponse` the plugin will perform the following steps:\n\n1. Decode the payment request to an invoice\n2. Validate the invoice amount and destination are as expected\n3. Fulfill the invoice\n4. Update their balance\n5. Respond with `BTP.MESSAGE` containing the sub-protocol `invoiceFulfill` \n\n#### invoiceFulfill\n- Type: `BTP.TRANSFER`\n- Data:\n  - paymentRequest: a payment request to identify the sent invoice\n\nUpon receipt of a `BTP.TRANSFER` packet containing the sub-protocol\n`invoiceFulfill` the plugin will:\n\n1. Check their lightning daemon to ensure the specified invoice was actually\n   fulfilled\n2. Update their balance with the counterparty\n\n## API\n\n### `lndIdentityPubkey`\n- **Required**\n- Type: `string`\n- Identity public key used to identify a user on the lightning network.\n\n### `lndHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Communication host used to communicate with local lightning daemon\n\n### `lndPeeringHost`\n- **Required**\n- Type: `string`\n- Format: `host:port`\n- Peering host used to listen for p2p communication\n\n### `macaroonPath`\n- Type: `string`\n- Path to the `admin.macaroon` used to authenticate lightning daemon requests\n\n### `tlsCertPath`\n- Type: `string`\n- Path to`tls.cert` \n\n### `role`\n- Type:\n  - `\"client\"` to connect to a single counterparty\n  - `\"server\"` enables multiple counterparties to connect\n- Default: `\"client\"`\n\n### `port`\n- Type: `number`\n- Only used for server, so that client can connect to through this port\n\n### `server`\n- Type: `string`\n- Format: `btp+wss://:secret@host:port`\n- Only used for client, URI to connect to server\n\n### `maxPacketAmount`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or\n  `string`\n- Default: `Infinity`\n- Maximum number of satoshis in single packet that will be accepted\n\n### `balance`\n- Positive balance: counterparty owes plugin money\n- Negative balance: plugin owes counterparty money\n\n#### `maximum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `Infinity`\n- Maximum balance the counterparty can owe this instance before further packets\n  are rejected\n\n#### `settleTo`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `0`\n- Plugin will attempt to settle to this amount after the balance falls below the settleThreshold\n\n#### `settleThreshold`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-10000`\n- Automatically attempts to settle when the balance drops below this number\n\n#### `minimum`\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `-Infinity`\n- Maximum this instance owes the counterparty before further packets are\n  rejected\n","readmeFilename":"README.md","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.11","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-H9pIkJIEchHfWJM7lRhnZ1bDPhaINOc8H2qhnJ2ELY38K13LLRUdZfjUQ87SbBV9OCj+v+52DpoAU9X5p2hh1g==","shasum":"7123920b314ac4650f06ce410ae2cdbefdec1256","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.11.tgz","fileCount":24,"unpackedSize":192108,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb1ydjCRA9TVsSAnZWagAAy4QP/AzXNKnzmGtTm95d/j0k\n2SoJZzLkPPPABu95fEpqBOG7EscyzTomV7AyPd20/udiHZLDBMRqk+0FgJwX\n45h6uopiy8dxwBm/JVNVNOtji7u6ygq4UFp9tl+VkDT4deriR7nGq709eXd+\ny22w5aiPBGEXWmfFpR3ya7vVkeXcjExuOUD5H44QRMVK26hGsiuLmHHlrIBB\n4KliMvcDlfXPSv8Q9cPtwzVmJgL2Vs64/hz9ojEoZHuv7b1hTkdUfqUfhDlu\nsX5rS8qSNYovGp/uxnf4000xwsDgvJZbfsP/Qm6TM7JO8+9Uffd/OQHGGuzh\naDkvlpf5HBaFRk6pAp5DHhlOb5xUu6CFs+EROPZzjUgeekwvQHt0fCClaJEx\nkdvtsMa0rGumAJ41KBeqERQbxjiWHqK3JADwXSn/qPQbDXGDgsEkxCK3+Rbc\nJbckwCsY3298AeqwYMbRPI8dpiXhMl8LOKA8TZqwjGDOxqrsMQSXjHZ/1e0F\nunZro3k2X3RHhaXS93zAfCbtW2HHQVNrPCH1N24/tv0VqPZgUhj1cgNrN45M\n8i16KkY26crEZRWh8pGAncFoLt2hv/ADhNwgaKnP5QYqHj+gPtLQO9TBRLOK\nOTv+AnASb3kEUvwNGGpufdI1WM0NOGPT71DMJQ8ZpATUExlKw3uIjhEC9ZtH\nndqL\r\n=4GyR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8uZ9UEMkTjSeYi/coLtSaqDjd56Ws0nXcN/QCxGIcQAiEA86bnzGQ71CuyI1XuNoGvbul6w6WetKeRDY701AUy2bs="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.11_1540826978941_0.04356495459628462"},"_hasShrinkwrap":false},"1.0.0-beta.12":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.12","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"latest"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^1.2.0","cp":"^0.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-plugin-btp":"^1.3.3","ilp-plugin-mini-accounts":"github:interledgerjs/ilp-plugin-mini-accounts#ko-ts-fixes","ilp-store-memory":"^1.0.0","is-base64":"0.0.6"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"d0503eff24604787d07b79cfdb5331a96ae6ba26","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.12","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-piYEYAEPNopz4dDDgl8YoeqXJaW3707qdrJGV77a/oh2ELSk7y0GHKvM+A3/cT6JYWPXjtTG3vM7FIgZkBUISw==","shasum":"f9da6f4f2f1b18bce75845b2c0083f05bec2b95c","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.12.tgz","fileCount":24,"unpackedSize":192287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb42DnCRA9TVsSAnZWagAAHbkQAIUIx/ZPY145Oyntg+Qx\np4itJTRhNAkV0CDFf4vjTSv0ExpSjJOWVpIwYAaxdasVmwC/7/X4qEBdJ4Z4\n5PiW5Hc40EEgjF9eMURp/W/M2aV7qYiwSSbga28zPi72tEh8K3KpCE3YYk+a\nGmDKaw1oinSxwDVg+KhtLmGyo+o0jEGk8Shj1v6KMHBF9CAjKavUUcRXsws9\n41Fe3GnIwRY5MbCtAa5FiCgu97cLVSulpu+8SXIlTKzrvy02QUn9WbNgz7ok\nUmjM/0VLD9YATqYiSn6PqyUG3urIbrpABZTtdP05fCBk1AZ5gO5dSnJF1Zzt\nYdB4+1RPr9CA3LK78NzVVcAKEJwWrkj/WVCawny6fsVaD3mKM8IJ8xgG4CA1\nDOwQqRL7SApuORRZjOwgo8BV3v2rMpGanrl0/EEaiDt3Lo+wgrVG4Sr/Qbv4\nF24d8wENbM1pXVCn2kck8ydWy3LsEMOj2/nShzvfGYT6iqrcZMyMOZp1dfrA\nXvFfVrxfy8svsoD7ushsAKccwVQA3fc0z+FewHINQ+JONg/ZXWquE7OdYNOL\npqOs3fPlzdnPAm5TtVdgQ7j1YhGIYqKYkM4+EZdJS6wt94V7iO06A9mtZIbr\nmkuhjtkTYGmArU6nnOSl10rbOBJHyHFK0DFJKs/VAtoS+TMpO0hz5+LKKOos\nQG/2\r\n=UlZ1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH+usAOC4ZHZMAnQsGEOFD3HCR2Y2GoI2IFSjFSN3ni1AiB7VC72VOB1EijdyidfzklfWJz+xKt/hv2KaO7aTB/oUg=="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.12_1541628134742_0.5121962710574026"},"_hasShrinkwrap":false},"1.0.0-beta.13":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.13","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"latest"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^1.2.0","cp":"^0.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-plugin-btp":"^1.3.3","ilp-plugin-mini-accounts":"github:interledgerjs/ilp-plugin-mini-accounts#ko-ts-fixes","ilp-store-memory":"^1.0.0","is-base64":"0.0.6"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"d6ba2b78e9fc6c453f20cd35a96c64c06e4cb44f","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.13","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-cNlv8h9TmCcJ4wLSQ106X284rXOLn8Z1Eqdfh/1uql7fkEdDecC2VvoAvG7HP0Ab1sY/R90cgMiezgIs9q8NVQ==","shasum":"8f3444f8e2ecc402540d7b835adf89a0b6e3e7bc","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.13.tgz","fileCount":25,"unpackedSize":204390,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5E/oCRA9TVsSAnZWagAAVX0P+wfOUIqa1ziroP8xpy2C\n/aR4TKYWM4VEYny6ryuaOjzVNhuIRcMNgPZzR2J5xVSU9eCVHHIFdvKu6vX8\neGXH9bucEsaxpE4HkqV5aTECUBQ+3pDxIFat6aC2Nf0E2CuMJWS+W+otuXdl\n6LKElUi5dj4rf7uspMdoMBhOkQ9+ycloE2TjV+MUGXhn6wVITADMHUdBnrzv\nVpaVbn3JGFOmaN6L0euv/Nsb1Lx26jM8Hmfe+6p1fLAwD/hoXXx9x7H/OZHP\nNjW6KS88H9exn3nC8Q54g3cmmYear0f6N8mhzyH64PUgPhLj5r5448zUHblN\nSBCgpnbLBXW5Mdf4t8SspNtwsoL2nXBSbmNnmUyFHYqs/yraWO2sNK0Y0Tey\nrkpTiIs1PuIbROOFwdgjuwVhFDb5yFcIO1zGvT+wf7/1n7KEJyuVIrFSBM3H\nGhK/VrPt4//sLh3kY1QeolpjFge2WoIeC/jL6o/y5YNKR0Jc1lbRUV5CtKtx\nhp/umkTZ4sJI0CuH5u2UdEDtdRrLwYTm8W4DnEDG98r+6jLcKb/JkPc209TF\nslGjuAyqnUDBjMRs7U41FsDmeQnK+cx9woH6AtYeGiNjW0KFI8l7YRqdz1L8\nJAsZWvK09Jc9n2E8JThYuoejC/9nBr7sKatu4IjeaY5+EwOL+pTLs7wLBK6l\nPE9L\r\n=7kUN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHzpvK9XruGSHZMPSBfgpMRVLT4HAYNBgJYB+mppE8BWAiBO+0A5sqDXD+EYoBsrez4mZXkRq+adsR/yl3uqocxJhA=="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.13_1541689320074_0.04870429813955024"},"_hasShrinkwrap":false},"1.0.0-beta.14":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.14","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"latest"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^2.1.1","cp":"^0.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-plugin-btp":"^1.3.4","ilp-plugin-mini-accounts":"^3.6.0","ilp-store-memory":"^1.0.0"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"c7e336e7fc617ab5391bf30d9799e3abaa7eaa7c","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.14","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-rx/aZVJQKH2MWxkLKw5HpE2Ktuf2rhMBBZ0vVyKASkzaCG9N4dSNO25j9pBo4bOP4Tw6F7GnRcbXBvJZ0Aldvg==","shasum":"7f6ba66b9089db6db5824ee4771e42c2ebc99405","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.14.tgz","fileCount":25,"unpackedSize":204175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6bXhCRA9TVsSAnZWagAAqYwP/2aF7+bz0ZHntniRwvTs\nQp0CzpCUw6BhgQgwNwgCpvV5VwimF6FADRH2utNYmLrOfxJZQJlI7BdG4e6G\nHJw6lRLnc5ku7yC52JsVG+lQo2j6RKZsMDvaOeWQwKjnMmt4lN2mGUvtYirT\nsmxHyI9ijhb/uugofinXsTLmzN7ktw/Xc5nVxqWgH7FWDuDtcIzXZRKfNxBP\ncQKq7yPQhTRI2VMfFvtmJ7OO1Mhe3NlCOyXa6fbHkK8vsEurkBlANmcrWQLG\nLe9yS0GxntUOqb6ukiN8H3ThBXUJKzwWQETlW71cCuvdFjvnvCxdYz3aHYoh\nQP8bm+iq3aOdEHGbrsAZR/Dc+x9LTB0G81ld/ipgq40Ua2JEpX6cZK3+3U0V\nFDwpR/4/da34RDyDj6Fo4lxyKQKR9+8WKucHEWQeY73//uYOMjW+vXtuLlw6\nYuIUy+XBqakQwNmA2W14LL8aO2JDsYv0tWQTwTNeqYyKZdO4JF4z18RHvuKo\nITdaHf9PGihGeS6yIfZX19lV9iJOvowIicxunxxT/HGL/YSQVgRYI/m2KOtv\nEVIi1iu/huSqqMN3f5sDwJF5bmgYOEeYEIjgEUZZDCTXWs/+q5vFWNkvzU70\nMxEfVDGljIJTO2DO/u8mDSY8CemVgrndb++Qg5tbaL52Nvq+JbzqDKapZMXX\nP/q5\r\n=+G1S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA+8IFoTIe8Shh36VLQO9zf1Uic1nyM0zJlad37qLITsAiBM9IndnIf0rq5h3YTD+ewKJ+efEqbo3BmbBKHtsF2ETA=="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.14_1542043104731_0.7409188821644097"},"_hasShrinkwrap":false},"1.0.0-beta.15":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.15","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"latest"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^2.1.1","cp":"^0.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-packet":"^3.0.4","ilp-plugin-btp":"^1.3.4","ilp-plugin-mini-accounts":"^4.0.0","ilp-store-memory":"^1.0.0"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"a620815be3981fc00354f062772f120c8dce31f7","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.15","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-facnFLZKksG5yzVg73UiHR4mQwxBREfBxZMvTiskCVMK8xuCQf5ugwUvjgVbN7v8cjd0v9JYD7Npwji1AJYFqQ==","shasum":"1fb43d94e6cd5ce1a0c4f704d682d2cc4615a1b1","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.15.tgz","fileCount":25,"unpackedSize":203865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9YBsCRA9TVsSAnZWagAAJZUQAIM0QBYo0deptcahZHoo\na9GVNuLJdxL6xEGkFMlwGie1P9a2UNddt7a3ifb+clqb5h51lpXvbaWAamNO\nCGSHHLNOprf35r6YurP2zX5SWOAsnPn81gEU9zw7JVSOGkzX4EgVsvn7Szpk\nEhKgla+7u5Tqy+x0q9JMdCkQViG8BAX4NbHBDh09PnuEo0immk/qA5uOtHkb\n1JIpxrvTv+kHVhJWlsUucF9xRn4tNNXxzjVkjUBhcPej+AvV302GXsm3Qd7J\nDCZvvqRsPUeeO2M928+VHF2185MybpUHD42OltmN5Y/ncrei3nI/XAuO0EwK\nIFH4S8/2/M19+ejsDijvi29As/cjn/lkWLb4eCAI5eQ6Zs3fVP/U1HDCn7YF\nNpYjtnrd1SZgqDJtcdHmKhYBAU2R3KKFrP3d8tEfoFYEd1MKSFVWkMqzA6nD\nGyJZ3Y+vMTXaeZkRKclkTzU2Eb8otrgUt5xVTVNiuWqh/Oca/Qmgqj8gdld0\nSFK90DEUfq4hEwHtX7zg/pmZagCuqlkYKrtnPIfpOr4S7bqxeqFXxjQ6gHkt\nsJOLpS47yctd2p47ssroq+SMHuvsCZroliZYWh1FoWPQjuK0jABTmBuiYXrK\ny36Sl99k/qIz9PIFVc6SZN3m0ZqhYszRg6VRusVpMvf17b3Vr8QJLnzXJ3rm\nkQK2\r\n=Hh65\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHn8JctaWGB4OpBP0/3UDNyD2PNX6GbyYZehCuwQhqxAIgbGxK1gpCwo4g2bn0Z+h/sW+EcFIayDf+ZW1yitIVqq8="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.15_1542815851595_0.3597998004618703"},"_hasShrinkwrap":false},"1.0.0-beta.16":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.16","description":"Settle interledger payments using Lightning Network","main":"build/index.js","types":"build/index.d.ts","publishConfig":{"tag":"latest"},"scripts":{"test":"nyc ava","lint":"tslint --project .","build":"tsc --project .","buildWatch":"tsc --watch --project .","testWatch":"jest --detectOpenHandles --watch","copy":"cp src/utils/rpc.proto build/utils/rpc.proto"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"}],"license":"Apache-2.0","dependencies":{"@grpc/proto-loader":"^0.3.0","@types/debug":"0.0.30","bignumber.js":"^7.2.1","btp-packet":"^2.1.1","cp":"^0.2.0","debug":"^3.1.0","eventemitter2":"^5.0.1","grpc":"^1.14.2","ilp-logger":"^1.0.2","ilp-packet":"^3.0.4","ilp-plugin-btp":"^1.3.4","ilp-plugin-mini-accounts":"^4.0.0","ilp-store-memory":"^1.0.0"},"devDependencies":{"@types/get-port":"^4.0.0","@types/jest":"^23.3.1","ava":"github:avajs/ava","get-port":"^4.0.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","jest":"^23.5.0","nyc":"^13.0.1","ts-jest":"^23.1.4","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"gitHead":"d19474ba1347cf639d57cd3c08cd5d808afed2a8","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.16","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-nrauzF5j7W7fJdhCyZggpp5WXQ0qY/H1dtI12EfmlvhmMsoTqXiAJaPsjBJrvcR0uwWZWCG9g0vTOs3jGP1Qbw==","shasum":"846b9cdd86e3ab0ef001aa0f21d65bd79220160b","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.16.tgz","fileCount":25,"unpackedSize":204119,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDskOCRA9TVsSAnZWagAAk6UP/0wEt4zgfvYu9S89YvqF\nQn9BFPeQzTpRPqS8Q5LnqLkjIdwSz6jX5eDuEY5VthQ2rwmqsTsz+c4w3+Y5\nHL2pnPcXXxXwCo292q8EQOWA2RBGB1uPVZHZesXh7POOO0Tf07+G7IzGHnpk\n7cC2BnkLJnQoOcWRVBUvRRDdJotf4Eobcc7B+lVsS/9XTCGQjidzgN/ryi8w\ngLfztZbhPRx/0Cl+DDES12vYtLDAxOC1d/xt+EpssEOa3HQr1Rd1keg1AqvL\n4N+M05GA+3pGKmkKcM/Un9l27mAithPFo7X4Y4V9Cca9u+Mo6/lFIGNJ45yD\nrTpiMwXyLwr4rS2yceVm5lMjcETqFuqCg5q3QDyZQmqzJIghZmUtWxIChT3O\nsjugTeR0/ZfqEBLcx97bAmN2RkxZAy4NrdOK8aTATUgY9HVDtJ63gL53PLjL\n1J3yel9C8vVk1UkAaoWZJk+8FXEn8zh7ULj0GspbMYZjATitNGiyQfoSMAGE\nHGjnM4zH1jTiiqUk9ybtS3mVlA6W8PHXD4Gfi29jZNs0HpQDTM1afGbqMfsZ\nuFDKQYgr0e/26g/IUolVt9Fy4B71FbyXwDV0Ox9hJSN7i0JFt9feGufXPk42\ntxZiBSih7imCYqoIO948nKiKXtOPUvGGQ3JGisgDTy4jXmXfB2RAhGx8+PTw\nfumF\r\n=+Wd/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH4yp8Nrh5sWn1887zdvMvGl68Q47sn5wV9R7rR8mXmOAiBEzNyMCFat9VBCLcVxVqQ708Axuhz03wNwDtjlF9oAYw=="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.16_1544472845619_0.43500562404576115"},"_hasShrinkwrap":false},"1.0.0-beta.17":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.17","description":"Settle interledger payments using the Lightning Network","main":"build/index.js","types":"build/index.d.ts","scripts":{"build":"tsc","prepare":"node generate.js","test":"nyc ava","test-inspect":"node --inspect-brk node_modules/ava/profile.js","lint":"tslint --fix --project .","fix":"run-s format lint","format":"prettier --write 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network","micropayments"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"},{"name":"Kincaid O'Neil","email":"kincaid@kava.io","url":"https://kincaidoneil.com/"}],"license":"Apache-2.0","dependencies":{"bignumber.js":"^7.2.1","bolt11":"github:bitcoinjs/bolt11","btp-packet":"^2.2.0","debug":"^4.1.0","eventemitter2":"^5.0.1","google-protobuf":"^3.6.1","grpc":"^1.17.0","ilp-logger":"^1.0.2","ilp-packet":"^3.0.7","ilp-plugin-btp":"^1.3.7","ilp-plugin-mini-accounts":"^4.0.2","p-times":"^1.0.1","pify":"^4.0.1"},"devDependencies":{"@types/debug":"0.0.31","@types/get-port":"^4.0.1","@types/google-protobuf":"^3.2.7","@types/node":"^10.12.15","@types/p-times":"^1.0.0","@types/protobufjs":"^6.0.0","ava":"^1.0.1","execa":"^1.0.0","get-port":"^4.0.0","grpc-tools":"^1.6.6","grpc_tools_node_protoc_ts":"^2.4.2","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","npm-run-all":"^4.1.5","nyc":"^13.0.1","prettier":"^1.15.3","ts-node":"^7.0.1","tslint":"^5.12.0","tslint-config-prettier":"^1.17.0","tslint-config-standard":"^8.0.1","tslint-eslint-rules":"^5.4.0","typescript":"^3.2.2"},"gitHead":"8497eb7a6703bad771ae4d48a0e87badf327168d","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.17","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-0k84KiqMBtj/0FLFA5UpWdPYPvFlEraFxnTpr0ZdvRixqM1PgE/JljIgKwbS0dSKew/wSXtfZdlD4XAtrgiT+A==","shasum":"5ba810dd723daef5edd9e839898745ea9659fb9f","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.17.tgz","fileCount":28,"unpackedSize":1128896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGYNzCRA9TVsSAnZWagAA+cMP/0juIwMFWnd2Z+bJXs7C\nytG2nS0C7fVTtMO+ZxzG05dIkWk86hnAZoI5DcscwVv4VPa6dwVauYZWXp/Y\n8B/djvex67VfL65laoffLooqO1Zee0L1Fghj2LJjJYGZyjUXz4DAn32noj1O\nJQWH5IXXBOOHxF718Tgm3UW9G277Dv+0gqXpEE7mfRP/pLHIQGP7Dbj4KDuh\nQQP3u8WGVOYLGMXj1ZnGC4dKusJMiEiOIc34NTdmDm9kD68VsNumkkLcxy7K\nj/kpBMX0HNkD5P+FRDE+bNyPCRyOKjbxsgduC2Ph0NQT6iq+8hFbcGlu1L6i\nCokhPv+O3G9VdYJbDQxCRQfI3R482YVRY0zrDcZ3bhLS29+f6WUd5YxYJoIn\nCM3kz82oOPuLbd84plu4mHccruz7tLbaaK5TRcF9hKe7LFrh5JUSVAsOc4Nh\nd/8qL5TfZwB3q62by+bEvBAue+uK23A2uZz4MYOnxInuzckmMD2y2vEBaxBq\nBdCwjCwVo3ILhFCKddCVR+zitdtQsPP3F6xmL5ARih3aoDzvcrW6CCt4EMEy\ns5GL83m1r9hbnrg3V519F/+TCdWCRWhuhisJR1zRPzddRmIBda+yCdmYpY/w\nidpeNyGvoa+kTRD1VDVBi4lYAYWybLEFKrU7vZId8VnkBzi3YU+Z1A501WgB\nNR/8\r\n=Y98m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICwXKG/eWG/Qu3oJJcGnDHuC57qB9xCsrsxZ9RkRElZrAiB+MHpBwo/WNiSLr2/NlJibwUM18PX/Ak7PhXBSMxXOHQ=="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.17_1545175923025_0.9111666304295325"},"_hasShrinkwrap":false},"1.0.0-beta.18":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.18","description":"Settle interledger payments using the Lightning Network","main":"index.js","types":"build/index.d.ts","scripts":{"build":"tsc","prepare":"node generate.js","test":"nyc ava","test-inspect":"node --inspect-brk node_modules/ava/profile.js","lint":"tslint --fix --project .","fix":"run-s format lint","format":"prettier --write 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network","micropayments"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"},{"name":"Kincaid O'Neil","email":"kincaid@kava.io","url":"https://kincaidoneil.com/"}],"license":"Apache-2.0","dependencies":{"bignumber.js":"^7.2.1","bolt11":"github:bitcoinjs/bolt11","btp-packet":"^2.2.0","debug":"^4.1.0","eventemitter2":"^5.0.1","google-protobuf":"^3.6.1","grpc":"^1.17.0","ilp-logger":"^1.0.2","ilp-packet":"^3.0.7","ilp-plugin-btp":"^1.3.7","ilp-plugin-mini-accounts":"^4.0.2","p-times":"^1.0.1","pify":"^4.0.1"},"devDependencies":{"@types/debug":"0.0.31","@types/get-port":"^4.0.1","@types/google-protobuf":"^3.2.7","@types/node":"^10.12.15","@types/p-times":"^1.0.0","@types/protobufjs":"^6.0.0","ava":"^1.0.1","execa":"^1.0.0","get-port":"^4.0.0","grpc-tools":"^1.6.6","grpc_tools_node_protoc_ts":"^2.4.2","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","npm-run-all":"^4.1.5","nyc":"^13.0.1","prettier":"^1.15.3","ts-node":"^7.0.1","tslint":"^5.12.0","tslint-config-prettier":"^1.17.0","tslint-config-standard":"^8.0.1","tslint-eslint-rules":"^5.4.0","typescript":"^3.2.2"},"gitHead":"601dd29dcd9b7ce70400dbd1003fafde08d056b7","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.18","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-Cj+lHFNRyhqUecHWIbhPi5w2MsfUUxyjNQMComH4ArZ5PQofi7UsyqWsEqKDgjs3LsyrtNfqoz7+KAzu1Uwe+Q==","shasum":"3b9c180848770f3422ad6c7c3c444d5c7f8d2ff1","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.18.tgz","fileCount":29,"unpackedSize":1128987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGYftCRA9TVsSAnZWagAAjUYP/09OjB7+TcUr3KDuTKzg\nYZRQ5zhE6SBqiVXrDO6L6sck+SKmW2GFxkPE+HUwsFAdw4fZlRj/ZXkMwJKz\nehx1JS9ZYOpXvd8S+s/tD0A9d7eyLBtGfjnr4kyCp3/25KzbiRaquK9kMzVc\nOTUkx544yUwzjDAwnwXp0/3X7aze11mGEsA3c6xE6mdlE9DWMD9xd0DQ+DRM\nxsEm1Dt1GsyAXAgHozZWTOrZVW9LGL/lQXRmYZOLjR+ELVgw/W09cE1K8U+X\nFwUhZ5oaMEbe8qsizdQUOyaXg+BXLrVW8SZGZPXiuAkTtasxwQLvY58W5TKN\nzoCHj03JDhmhxwV6KudXKXmzrN1bY9LebvVN8Ow7pYsM51erZG2TZiViweCH\nlQiQ8iSd/tTeI0gjk96socs2hT93WwMMcWp8RqdMzcLSTOiKegr0FLVp/sI1\njNW6j2BhQWie+dMwX98T+00WoJ7nbeN6qZuQrOIr+9iAt556s4NeMP+hnrgk\nbUwz0U4BkTxg48qES8Lk2Qdw/jJs6+6qqZDd0hnrU06UClLfwisYC+Ip9A6+\nMqrVp+mYSJLsa+GwXwX3BE62L5LEx0w8stwwKi1wHN5O1fd6cA/FeUN3M43+\nCAYtFWeyts84qbOC9BC6/gzX9SlBu305YNF4K97poC+h0yHSqjYDoEm85LrQ\nOccL\r\n=PNl6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDY0a3XflxueyFmFXC0H7XONu43BSHTGP1Y6rdlu80ybQIge9bF3mYlCM5BM6vcjU0rGgUPkGyOSg5I2K7dml9nAAY="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.18_1545177069124_0.5082039943835621"},"_hasShrinkwrap":false},"1.0.0-beta.19":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.19","description":"Settle interledger payments using the Lightning Network","main":"index.js","types":"build/index.d.ts","scripts":{"build":"tsc","prepare":"node generate.js","test":"nyc ava","test-inspect":"node --inspect-brk node_modules/ava/profile.js","lint":"tslint --fix --project .","fix":"run-s format lint","format":"prettier --write 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network","micropayments"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"},{"name":"Kincaid O'Neil","email":"kincaid@kava.io","url":"https://kincaidoneil.com/"}],"license":"Apache-2.0","dependencies":{"bignumber.js":"^7.2.1","bolt11":"github:bitcoinjs/bolt11","btp-packet":"^2.2.0","debug":"^4.1.1","eventemitter2":"^5.0.1","google-protobuf":"^3.6.1","grpc":"^1.18.0","ilp-logger":"^1.0.2","ilp-packet":"^3.0.7","ilp-plugin-btp":"^1.3.7","ilp-plugin-mini-accounts":"^4.0.2","p-times":"^1.0.1","pify":"^4.0.1","rxjs":"^6.3.3"},"devDependencies":{"@types/debug":"0.0.31","@types/get-port":"^4.0.1","@types/google-protobuf":"^3.2.7","@types/node":"^10.12.18","@types/p-times":"^1.0.0","@types/protobufjs":"^6.0.0","ava":"^1.1.0","execa":"^1.0.0","get-port":"^4.1.0","grpc-tools":"^1.6.6","grpc_tools_node_protoc_ts":"^2.4.2","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","npm-run-all":"^4.1.5","nyc":"^13.0.1","prettier":"^1.16.1","ts-node":"^8.0.1","tslint":"^5.12.1","tslint-config-prettier":"^1.17.0","tslint-config-standard":"^8.0.1","tslint-eslint-rules":"^5.4.0","typescript":"^3.2.4"},"gitHead":"e2c084cbe3dd7004e4c66ec59958e89db4ff6573","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.19","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-m+W51gRmhDSPawOCUipFI0yMi0Ur/gsDOj5Mk0V19OVQmfxJwDHRnY39tTdP224W6v0KQI6WiCbPrIA6bm9YCA==","shasum":"47fdbab252e1486aa2d517bdf38158e07a0f0514","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.19.tgz","fileCount":32,"unpackedSize":1134524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcShtdCRA9TVsSAnZWagAAjOAP/RP6oyDSXxqxSy0V5uzi\nm2FY+xApW2D3kVLtH/PKo5JyvW1y5c5mRDt6zMwXbav2qh2Wv8SA8XLzaKz5\nrIgDmdSw7M46zJarC9a19SxqAVM7op0yUvMpJiZR3+PBLrb1GDFAmOqnEDaN\n0JV7mX52hcwokSVh5iDW2FgpJDYazeu0wl/ZR7YOU1Oe7j/g0NXQ8urT6z09\nfHYdxHXRAJ+cSYIsT1C9Bwbd8gjvAyOf7cqZKCPdkjP94Vxb8XFPJzM1cEu2\nL/pK1G2c05F5x1gLuXO6Wji5ECtnsPvP/MRh7PaH9l3GvIQi2DGHReiBlA7J\nowQ0ILRnv1O/Rx5TACrRrnlz1lg7cPXoC/DzgDiCdyY95KlLEs8/ZCm1ykMo\nfS2lVRrXax+IQ2S67PL6HQqqtTZ5Q6OVt0iBiRHRFVOylEW2xjZKdn0iKz1j\n4zW48jUsO4z+Ctzo+7CAROFsj0hoLh9vSXCCBFoOifXqAinn7RWzHgsFPXe4\nKzhoHMTVnCP/12Q2NrHpabDXbaJwFR+KwysMrUcqM7wVTzpm52LO86Y7q9lA\nMwX76GSHWg7nOGHZDxtDlrfpx4QvVo2jXStaOQM+eeu4ie/huScgnajFP/Z7\nny+BVxCF1gOeLVFWHb3M4Ud3smtGANhfcBWBPqPl1qbEc/VhUS4eNrVEZNAH\nItVC\r\n=//75\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHy0gS71ThyZkdxlI+ihbVVGQrwWI39DCetkwutBSTmlAiBJEZNy2qN58kvvsARRjojZZNHcMkKvY9MPOF0uWinHGg=="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.19_1548360541136_0.16208718192140137"},"_hasShrinkwrap":false},"1.0.0-beta.20":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.20","description":"Settle interledger payments using the Lightning Network","main":"build/index.js","types":"build/index.d.ts","scripts":{"build":"tsc","prepare":"node generate.js","test":"nyc ava","test-inspect":"node --inspect-brk node_modules/ava/profile.js","lint":"tslint --fix --project .","fix":"run-s format lint","format":"prettier --write 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network","micropayments"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"},{"name":"Kincaid O'Neil","email":"kincaid@kava.io","url":"https://kincaidoneil.com/"}],"license":"Apache-2.0","dependencies":{"bignumber.js":"^7.2.1","bolt11":"github:bitcoinjs/bolt11","btp-packet":"^2.2.0","debug":"^4.1.1","eventemitter2":"^5.0.1","google-protobuf":"^3.6.1","grpc":"^1.18.0","ilp-logger":"^1.0.2","ilp-packet":"^3.0.7","ilp-plugin-btp":"^1.3.7","ilp-plugin-mini-accounts":"^4.0.2","p-times":"^1.0.1","pify":"^4.0.1","rxjs":"^6.3.3"},"devDependencies":{"@types/debug":"0.0.31","@types/get-port":"^4.0.1","@types/google-protobuf":"^3.2.7","@types/node":"^10.12.18","@types/p-times":"^1.0.0","@types/protobufjs":"^6.0.0","ava":"^1.1.0","execa":"^1.0.0","get-port":"^4.1.0","grpc-tools":"^1.6.6","grpc_tools_node_protoc_ts":"^2.4.2","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","npm-run-all":"^4.1.5","nyc":"^13.0.1","prettier":"^1.16.1","ts-node":"^8.0.1","tslint":"^5.12.1","tslint-config-prettier":"^1.17.0","tslint-config-standard":"^8.0.1","tslint-eslint-rules":"^5.4.0","typescript":"^3.2.4"},"gitHead":"c5d6493708357a80355fe52a3de16ef003528705","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.20","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-e3any9UtVJvkwN+G1Ttql9X2+SagsmyqAs93Q288n819NyuumW2DxWFJBGrEn+wlb26/gfIii/oQvpUBVkO0Hw==","shasum":"f332b223872b54ab675051a0507ef718853ebcf0","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.20.tgz","fileCount":31,"unpackedSize":1135053,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSkEpCRA9TVsSAnZWagAAicsQAIG3dxB4cTuGRRxkSgcY\n7MuCYZGl0/GlZ762GNwXlihFajDwWCkgaO6uHFtaGND26l2UPUb6JybgmcUl\nc80oP3SBCFA2PWuHg/AGiBUS48K6QJytS53xX+BTQLW+9jLV+0C/XzJcpWL7\novWUDOwJNnzH2b/rWSRgAK2b92qWtaP/ZeDg8ExyvW1YtNxrbaSaHpsc3ZEG\nvkUnMD1j9lDjq9Kd+8A36Fy8q2FM7SODnblZW+m/gG3eGlK4+okV1FTi2ke3\nOhYoLI4S9kKSBJtRt9r9fxF2IwXwTSbJ4qcxWwI+LSlEpOrGA2QT+I0AnRBi\nUdENiA6vp//G2At1IIgLFy4skK4g/MPWarkjEsn/HA7wtGGMo+XWbx8mwGsJ\n9fM0KdW+iLswdn1cEdSwYuM3E8PzBGBu0+bGuQDKTfxuRBaK4jRxmdf3Y9r+\nZHd1G1vH/hw0S4sEQFsPcil2YuVzdI9+p+WdN7GiJhpppyS2aNkaI/x1Fd4e\nTkxGHb0ilm+WBV625o7LQoA3lMGI4FrCN6F2NrDAWP1U5xDFwrjjNtxFIuGn\niwwJcMf1sVoZxjr1QxsugV4V6JkzIwdGQzkSHIJXVK4UNPg9iMMZk/gZUhw3\n/5FiRQGtZRagTe5INO55L2+MRdqMUvox5Gt3/qc+c7KT4EecJOjARUFyMiaU\nBnVP\r\n=sgRP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGEqj97H/+X0BcLbnEMaPFhyzaljv40K/47aPFiRdYc2AiEAr9q9NaZqqelnpUDWV+Y89j9klB+4FINepeYAQzOA8fw="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.20_1548370217136_0.2734798034287085"},"_hasShrinkwrap":false},"1.0.0-beta.21":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.21","description":"Settle interledger payments using the Lightning Network","main":"index.js","types":"build/index.d.ts","scripts":{"build":"tsc","prepare":"node generate.js","test":"nyc ava","test-inspect":"node --inspect-brk node_modules/ava/profile.js","lint":"tslint --fix --project .","fix":"run-s format lint","format":"prettier --write 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network","micropayments"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"},{"name":"Kincaid O'Neil","email":"kincaid@kava.io","url":"https://kincaidoneil.com/"}],"license":"Apache-2.0","dependencies":{"bignumber.js":"^7.2.1","bolt11":"github:bitcoinjs/bolt11","btp-packet":"^2.2.0","debug":"^4.1.1","eventemitter2":"^5.0.1","google-protobuf":"^3.6.1","grpc":"^1.18.0","ilp-logger":"^1.0.2","ilp-packet":"^3.0.7","ilp-plugin-btp":"^1.3.7","ilp-plugin-mini-accounts":"^4.0.2","p-times":"^1.0.1","pify":"^4.0.1","rxjs":"^6.3.3"},"devDependencies":{"@types/debug":"0.0.31","@types/get-port":"^4.0.1","@types/google-protobuf":"^3.2.7","@types/node":"^10.12.18","@types/p-times":"^1.0.0","@types/protobufjs":"^6.0.0","ava":"^1.1.0","execa":"^1.0.0","get-port":"^4.1.0","grpc-tools":"^1.6.6","grpc_tools_node_protoc_ts":"^2.4.2","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#ko-receive-only-tests","npm-run-all":"^4.1.5","nyc":"^13.0.1","prettier":"^1.16.1","ts-node":"^8.0.1","tslint":"^5.12.1","tslint-config-prettier":"^1.17.0","tslint-config-standard":"^8.0.1","tslint-eslint-rules":"^5.4.0","typescript":"^3.2.4"},"gitHead":"9b160869c31ae11fa714ef463fe29a2004815c43","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.21","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-v//G+X4mqwZljzLTYv4qWkxMRWTJTFgdcjVdrWnxRrg/PSlPy6jhIGo9bzeF6fbTRggDqs6l4Ftau6BMuiPvdA==","shasum":"804e03daaac94a33c4173405998448490ee1b9a5","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.21.tgz","fileCount":32,"unpackedSize":1135957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcT3lTCRA9TVsSAnZWagAA4VoP/3CAm/V3AswRsyTw2F7s\nUsNhKqwlvInuI+MsJjuJZx4jrVuNV0kJSg+hlNZcuWGQ9z164rrbMaaGucQ0\nC0EcskcMpGiZAOrYPWHK0ddtAZJ6EFBLx21JXJ0vnnt8uREXeuiqlL84WEjX\nr9caBMnMkCbHc+Ym7JzizxGDCfaeidztZGXMYzqNiQZZd554Yfg9H52e4QsS\ngKXWKveDMuX/0HOGTREEgQpMjnmRofgf7riuuyb3xPos6VAEg9BzqTzHG3TQ\n6psfyY4f9RbmRRHOQZT3X0S+W+zU78ea71JvvAfsRc/CYNzyuUd46GB+gEgf\nyhTk8Ce9PTJqNSNtx0P3NvQVWqK78uJ6fXzToWYJ7MmHe+++skmEC6Jw7Z2e\nL7XwsDdUm5sVv18chc6GLkuUuGsKsfS/48wFXJaakpNJzNtg007y1jJvYK++\nlZ6Td5oRL8IlA72twXEyIU1h8flt3cyfE3eBg7ODs2qwwf17qWltSvG5bkE/\nY9CE40VbJ/prlw5/vtds5UWChnUDRyifbzER8Nz3agytwgsjJv1H2rrgJZQh\nJDKOnJXQLckmXAnopyDng/jCbK8X2k32H4LPysedQ0UUl0eHc+EWWj5IC5TB\nfVTU5aVL4Ex5CQxur+I1QUBdfkm6pdu+kuxlglRROtUqEuW2157+gClLKMHx\nk6UT\r\n=wmHp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAIPxj8NAolUNBpZu/DpOXVHDFt5sE5JZ46NkaNl8n93AiAspn39NFg3r/fTHkkgOkNwvG2rCP8h3kKGbZvVl67Bng=="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.21_1548712274996_0.8716903155845042"},"_hasShrinkwrap":false},"1.0.0-beta.22":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.22","description":"Settle interledger payments using the Lightning Network","main":"index.js","types":"build/index.d.ts","scripts":{"build":"tsc","prepare":"node generate.js","test":"nyc ava","test-inspect":"node --inspect-brk node_modules/ava/profile.js","lint":"tslint --fix --project .","fix":"run-s format lint","format":"prettier --write 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network","micropayments"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"},{"name":"Kincaid O'Neil","email":"kincaid@kava.io","url":"https://kincaidoneil.com/"}],"license":"Apache-2.0","dependencies":{"@types/google-protobuf":"^3.2.7","@types/protobufjs":"^6.0.0","bignumber.js":"^7.2.1","bolt11":"^1.2.4","btp-packet":"^2.2.0","debug":"^4.1.1","eventemitter2":"^5.0.1","google-protobuf":"^3.7.0","grpc":"^1.19.0","ilp-logger":"^1.0.2","ilp-packet":"^3.0.7","ilp-plugin-btp":"^1.3.8","ilp-plugin-mini-accounts":"^4.0.2","p-times":"^1.0.1","pify":"^4.0.1","rxjs":"^6.4.0"},"devDependencies":{"@types/debug":"^4.1.2","@types/get-port":"^4.0.1","@types/node":"^10.12.18","@types/p-times":"^1.0.0","ava":"^1.3.1","execa":"^1.0.0","get-port":"^4.2.0","grpc-tools":"^1.7.1","grpc_tools_node_protoc_ts":"^2.5.0","ilp-protocol-stream":"github:interledgerjs/ilp-protocol-stream#3fe1f02273c8ac60927d902c7a88c45111c5699b","npm-run-all":"^4.1.5","nyc":"^13.3.0","prettier":"^1.16.4","ts-node":"^8.0.2","tslint":"^5.13.1","tslint-config-prettier":"^1.18.0","tslint-config-standard":"^8.0.1","tslint-eslint-rules":"^5.4.0","typescript":"^3.3.3333"},"gitHead":"2f9e0e44f1fc90475ae90dd3317617d68d15d988","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.22","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-/sBKUG7ggWVa+M4EcFqjymIsRZhT9PUxJomwRR291Ih3ZXmN1t9vpQoBlkKo/vUGSylwDy0bM9i7kqfIezRYLw==","shasum":"2048069683818040cc536079e1b33a3be04a26c8","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.22.tgz","fileCount":32,"unpackedSize":1140163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcf/OxCRA9TVsSAnZWagAAM9QQAKCf5ixbgAvKGu24aF1+\n3LDE9I3/RiKaIB40s0Bs5EtyD6LrjmRNQabwGJ1zB8m2x8/lNOul2Pti6Yp5\nCqpIy2b6BaWtVvznnCZ1DhVNDV3Cd0Ini7Zv/FxJtsEyEPIEdJj9ydx+9OOH\nsDEGgvl261uHlM58AKbNCv7wQ2/kxg9HKAu+Hr8nAktMCvIolWqvhaoJlA2x\nAD/oaoLvKhv/MftoAfnjorZq0BUfj4PNE0sWPvQoMZLh0WfRL9/kEC2JzxQ7\nTDXdlzs2m/6ri/mM4S5OgMikbgBBblxsXNsfs1L8IDaYw1qgdvnbtWXIAC9h\n2CsuVk4y7O+xpyUwZSgQuLmR80MO3mh/NbcIL6AZMNtPAxx2rAEJLU9cBaXU\n75bfh1nVhV7PS9AnP1Js3ytQ45nNulwhiU+Ax4IkImq9a914qJ6k3xF3bHSm\njBqvbJt0FM8aGS3zUH4nPHeHq2bj4d1Ts8m9ZBrcd5lHeQm/nRVnJGYSUdLt\n8zxYP18FYi9aafiQXuzEOe4fKDou0po4jv31Fchcyd5v3mtF9gc3g9HTTslM\nt8adJnWnmwFA0Fz+qNA7ZetF804h1YPJNqjeSDWhCNrAbefpHQA1cQyy+9ta\neI1vEcc7xwFE3NiQLnfz8FsDda+S6XI1aeWxtVDLcPNwZBn2ybL8ujZDs3eR\nlkmt\r\n=1B5e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzhaK8uUMRfAJ9UKIWt3fj52XsC5YX2zljm1GIL4VQQAiEAnfQ+FsuYg+C4A7UQTpKgVmBX4wQfPON8At3Iphd3AyU="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.22_1551889328926_0.5309021164435141"},"_hasShrinkwrap":false},"1.0.0-beta.23":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.23","description":"Settle interledger payments using the Lightning Network","main":"index.js","types":"build/index.d.ts","scripts":{"build":"tsc","prepare":"node generate.js","test":"nyc ava","test-inspect":"node --inspect-brk node_modules/ava/profile.js","lint":"tslint --fix --project .","fix":"run-s format lint","format":"prettier --write 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network","micropayments"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"},{"name":"Kincaid O'Neil","email":"kincaid@kava.io","url":"https://kincaidoneil.com/"}],"license":"Apache-2.0","dependencies":{"@types/google-protobuf":"^3.2.7","@types/protobufjs":"^6.0.0","bignumber.js":"^7.2.1","bolt11":"^1.2.4","btp-packet":"^2.2.0","debug":"^4.1.1","eventemitter2":"^5.0.1","google-protobuf":"^3.7.0","grpc":"^1.19.0","ilp-logger":"^1.0.2","ilp-packet":"^3.0.7","ilp-plugin-btp":"^1.3.8","ilp-plugin-mini-accounts":"^4.0.2","p-times":"^1.0.1","pify":"^4.0.1","rxjs":"^6.4.0"},"devDependencies":{"@types/debug":"^4.1.2","@types/get-port":"^4.0.1","@types/node":"^10.12.18","@types/p-times":"^1.0.0","ava":"^1.3.1","execa":"^1.0.0","get-port":"^4.2.0","grpc-tools":"^1.7.1","grpc_tools_node_protoc_ts":"^2.5.0","npm-run-all":"^4.1.5","nyc":"^13.3.0","prettier":"^1.16.4","ts-node":"^8.0.3","tslint":"^5.13.1","tslint-config-prettier":"^1.18.0","tslint-config-standard":"^8.0.1","tslint-eslint-rules":"^5.4.0","typescript":"^3.3.3333"},"gitHead":"762e65154c1caba6648a2cdda56c283ec205a512","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.23","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-rBNqldYzHWmfar0QjTabdtNJbo66eDHBUc0mpei3FDbriNqkWBtm+HoMAKU7+eN+n0sEZ7V7o8Sjg0B4txaJcQ==","shasum":"0080906cb41fa59ba63906070c32548f1ca65452","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.23.tgz","fileCount":32,"unpackedSize":1134383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJciRkKCRA9TVsSAnZWagAAXHcP/32OjGr3iZ/VRVQg94wM\nK7ekM3FMklC584EDLdvsaSMXwqLMQinbF6RAiFUinOzZVzk5ujrpZPcoLv8y\nfwqjz7QO9pDSvo4xlCgrLwQMMNnwwCbwjU60aY5Vyzz2BTbAY9r8BjbC9PiW\nRLzBimmvDm5W4Lyhy9BGlMSWNzBETPfeRMgU95baEH+Mp0P4nd4U6G2G+8JF\nL63VSr5rYj6EiuhRG+ZyUTGuI+oR4IaHUkdwZ0YTlSawLxpNqmh7qp6onTMt\nMqqwo4FQfHJ8nGU7qLWw2vUJlJ2bnE7RoucvMFiEO8crsEGRGDt36MlWVecX\nAOoEGKzb/X4LvGjEhppG6Uigm0bqvqqwM+ROaDXOOHrxQYzSgg0aeUNxrlyQ\n3ugEtLLijokF9qmkWEoydwT36K1n0/EoSlv1XslvsZNdyOFPHHXk/UgS1szW\nQmxrjznLgzJ30IUkilkmv/SBOvNKCs2+IlMEJ51F19mNAFoG9K6FP6Q/mxUE\ntxSz0smm3V1hjaQTHk4waPK3VUjQRBTzDsrllByhRZjLpJ3iiDy9d0Ba8aPF\niy0in4LJNlu2c3ZEjrTgZnEZGLf7nDWqPf2EBqsaAkGVm7wBnBtaoAlX9hAn\nh0J2Cg1wAjfMxWT72rqrKYa2w1R+jrkMDIWfV7a9uf2qChNKO1XrKovcwh79\n5uhS\r\n=wwae\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDphSoQVSLxlDxGlIBP0q1qisQDQkIPblXCtLou5pi0QAIhALi+h4HMHlMyfDdOYDKU9meopWt8WYjg5OR+gE/J1Fxu"}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.23_1552488714196_0.3475988849146736"},"_hasShrinkwrap":false},"1.0.0-beta.24":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.24","description":"Settle interledger payments using the Lightning Network","main":"index.js","types":"build/index.d.ts","scripts":{"build":"tsc","prepare":"run-s generate:*","generate:dir":"make-dir generated","generate:js":"pbjs -t static-module -w commonjs -o generated/rpc.js src/proto/rpc.proto","generate:ts":"pbts -o generated/rpc.d.ts generated/rpc.js","generate:fix":"node generate.js","test":"nyc ava","test-inspect":"node --inspect-brk node_modules/ava/profile.js","lint":"tslint --fix --project .","fix":"run-s format lint","format":"prettier --write 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network","micropayments"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"},{"name":"Kincaid O'Neil","email":"kincaid@kava.io","url":"https://kincaidoneil.com/"}],"license":"Apache-2.0","dependencies":{"@grpc/grpc-js":"^0.3.6","bignumber.js":"^7.2.1","btp-packet":"^2.2.0","debug":"^4.1.1","eventemitter2":"^5.0.1","ilp-logger":"^1.0.2","ilp-packet":"^3.0.7","ilp-plugin-btp":"^1.3.10","ilp-plugin-mini-accounts":"^4.0.2","protobufjs":"github:trackforce/protobuf.js#86f968acd6b9b1489059f08e48c9469ba8d4fba1","rxjs":"^6.4.0"},"devDependencies":{"@types/debug":"^4.1.3","@types/get-port":"^4.2.0","@types/node":"^10.12.18","ava":"^1.4.1","get-port":"^4.2.0","make-dir-cli":"^2.0.0","npm-run-all":"^4.1.5","nyc":"^13.3.0","prettier":"^1.16.4","ts-node":"^8.0.3","tslint":"^5.14.0","tslint-config-prettier":"^1.18.0","tslint-config-standard":"^8.0.1","tslint-eslint-rules":"^5.4.0","typescript":"^3.4.1"},"engines":{"node":">=10.0.0"},"gitHead":"9efe1886b90aed5236e97fbb3ee77a1ddbb82031","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.24","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-ux9cGVdYV8IeAMYZXxZcZI5NS4zwohezzIbO2qzI8DUnwo96ZNS2f+TquareME3vbWlwFchLH32Xnw6IfToZdQ==","shasum":"a477616eb3a8a2af67e17cf046bc119c9bf274e2","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.24.tgz","fileCount":24,"unpackedSize":2784002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcooLFCRA9TVsSAnZWagAA+vYP/1tcjVkOkLprMR/iQU5U\nmQ9j14ttoOYz+Ctv3ZgHabKVVP/iWLkt2BhCQNSdkCI9MuYQBp2QYpjYgrr/\nZf/AQky//4fQuMuShPVK7I2315PWX7veEHif8EkgR4+W2qlWkWF+j3votezH\nCw6cpigLJ7VVCUuQ2YwuDurKiUiwQKTFtHiDi7DjCD7TjyubYRFYlmRVABlo\ncN/3+pZwRqhN5EV6YICRzVL595mgRszD24zRKSEPLKtDkT17qhKALdHHj2et\nOESpX1pc74//dugYW0TEY2vJNiiJJeTK7G3AdlfcazQ9KctgnWpU6HzfrlBB\nVPjlprvttLLM5wmVlT76Lf8FrgVcOR/VD8pITezecEnUjHUHxKGn95Eok2RX\nadt+DGN37bqvb0iRENJvDqyuXi7r64joB1Gs6PbGh3I8e0T+u7sfKisk4Lud\nnLF6W3DRV/Nau7NRCm6Q38KnHzv3bvRH9mAsK7rh/mswPFxI32FSThLTtnkE\nNrj/84SjWmsHmKeZaGOCAJsl9J3J/uOTCGDQpL5ATwu9IMHxKAXyjrEea4rM\nYntQRd8gYnqZT5i9B4TnfhDsxHs7z7D+N8E/wuVgdZwsC5fllW2jQgBHjoRx\n8PXyZk991Y3bgbIEQAQwWdXimObVITv4Djoy92ckqv7+kK8HPgpnpi6VDiUO\nJa8J\r\n=CI2L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCe73rTqGSQsKIufzlFQ7KTfduLHETG43c1WC2lHQR37gIhAKgFLxLqfaqMSZlo+q0bbBul54V7MmaijPjupwjJgXoY"}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.24_1554154180133_0.5850694597945789"},"_hasShrinkwrap":false},"1.0.0-beta.25":{"name":"ilp-plugin-lightning","version":"1.0.0-beta.25","description":"Settle interledger payments using the Lightning Network","main":"index.js","types":"build/index.d.ts","scripts":{"build":"tsc","prepare":"run-s generate:*","generate:dir":"make-dir generated","generate:js":"pbjs -t static-module -w commonjs -o generated/rpc.js src/proto/rpc.proto","generate:ts":"pbts -o generated/rpc.d.ts generated/rpc.js","generate:fix":"node generate.js","test":"nyc ava","test-inspect":"node --inspect-brk node_modules/ava/profile.js","lint":"tslint --fix --project .","fix":"run-s format lint","format":"prettier --write 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network","micropayments"],"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"},{"name":"Kincaid O'Neil","email":"kincaid@kava.io","url":"https://kincaidoneil.com/"}],"license":"Apache-2.0","dependencies":{"@grpc/grpc-js":"^0.3.6","bignumber.js":"^7.2.1","btp-packet":"^2.2.0","debug":"^4.1.1","eventemitter2":"^5.0.1","ilp-logger":"^1.0.2","ilp-packet":"^3.0.7","ilp-plugin-btp":"^1.3.10","ilp-plugin-mini-accounts":"^4.0.2","protobufjs":"github:trackforce/protobuf.js#86f968acd6b9b1489059f08e48c9469ba8d4fba1","rxjs":"^6.4.0"},"devDependencies":{"@types/debug":"^4.1.3","@types/get-port":"^4.2.0","@types/node":"^10.12.18","ava":"^1.4.1","get-port":"^4.2.0","make-dir-cli":"^2.0.0","npm-run-all":"^4.1.5","nyc":"^13.3.0","prettier":"^1.16.4","ts-node":"^8.0.3","tslint":"^5.14.0","tslint-config-prettier":"^1.18.0","tslint-config-standard":"^8.0.1","tslint-eslint-rules":"^5.4.0","typescript":"^3.4.1"},"engines":{"node":">=10.0.0"},"gitHead":"54631c2811aa8ff7915fcc9702f76209d430b6e2","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","_id":"ilp-plugin-lightning@1.0.0-beta.25","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"interledger","email":"info@interledger.org"},"dist":{"integrity":"sha512-9kfZXRJohV2gK2oKNdywQNCgX4e4pUgiML4RfKIVurFXoIN2+F5Zhx1/TbNFTyFuVuqLT93Q00sGGA8uZqPddA==","shasum":"2f838e527be6966194287912c08915c100904257","tarball":"https://registry.npmjs.org/ilp-plugin-lightning/-/ilp-plugin-lightning-1.0.0-beta.25.tgz","fileCount":24,"unpackedSize":2783765,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpRCnCRA9TVsSAnZWagAAxUkQAIOTywB1TeeD6EbPHIml\n2fb7y+RK/KUgljWtVdopfSKonzk7oU1EKYHWXrqDwWhgrdGzQ+XQ5j7bkATK\nWcwL40ILUTqmAtf2spEUt3aSv42bIP8+xpuDDNVtKhK9uw+0f75rqQwr75QF\nXT/IKATVRz10y8F/Sgzkml6R4EwOZXhKTMkopf51XLjbaCZ+GCKTgEq56WO6\n7/fS4nOmTAZV/i/VCm0xXoYDjA/V4zRvuz9H2TFm5MUXrJy+QHDZmALMx1GA\nTg6d2f0KfLzJb3V76SmQmtnqTuTdZdmfnyKvp6cAb3givpgNmnQfTA1m7A+R\n55z/DF37N60/470tGPWOHdbPhy41b0bKlqZ7xCgI6w3bMS+QAF4ZxAsy+Qwu\nyODh4guP757arB14SBJtnN/NcfbT1Pgl5dn70OLnLe2qHUvuKAeyKfQOoP2g\nDdaqnenWNElx7uTmg43qGxrm5Bd5ITFRHchtrseEiMk0wSTfwAsInxa4lHF/\n/e6xTO+1btldRet9B9c2+iQXc72Te/cALsIm7eFZ+q9pXy9BH+H3g57WrFwt\n4aFouCzOjzFS1PXlmNyDDG8Ib4QXOIXkzkkBXveBt1LYyzl5UdvtAS/mxgmz\nbvmGeMSvxh7SDhx3lenOGpFrgM+3p2gW6crcvk39ETeY/U3U3kxSjq0ITG5H\nIoiR\r\n=Qj+U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbxIN50j9Yl95mi0q6nW6iVxcqtJ1F0BOv5XoswcJsoAiEAj72uefVEhRpPmFPjUW8NnyVutJeKtD7HFAT/+osN5/g="}]},"maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ilp-plugin-lightning_1.0.0-beta.25_1554321575222_0.5761482394542716"},"_hasShrinkwrap":false}},"readme":"# Interledger Lightning Plugin\n\n[![NPM Package](https://img.shields.io/npm/v/ilp-plugin-lightning.svg?style=flat-square&logo=npm)](https://npmjs.org/package/ilp-plugin-lightning)\n[![CircleCI](https://img.shields.io/circleci/project/github/interledgerjs/ilp-plugin-lightning/master.svg?style=flat-square&logo=circleci)](https://circleci.com/gh/interledgerjs/ilp-plugin-lightning/master)\n[![Codecov](https://img.shields.io/codecov/c/github/interledgerjs/ilp-plugin-lightning/master.svg?style=flat-square&logo=codecov)](https://codecov.io/gh/interledgerjs/ilp-plugin-lightning)\n[![Prettier](https://img.shields.io/badge/code_style-prettier-brightgreen.svg?style=flat-square)](https://prettier.io/)\n[![Apache 2.0 License](https://img.shields.io/github/license/interledgerjs/ilp-plugin-lightning.svg?style=flat-square)](https://github.com/interledgerjs/ilp-plugin-lightning/blob/master/LICENSE)\n\n:rotating_light: **Expect breaking changes while this plugin is in beta.**\n\n## Overview\n\n`ilp-plugin-lightning` enables settlements between Interledger peers using the [Lightning Network](https://lightning.network/) on Bitcoin. Using the [ILP/Stream](https://github.com/interledger/rfcs/blob/master/0029-stream/0029-stream.md) protocol, payments are chunked down into small increments, which can facilitate faster and more relaible payments compared with native Lightning!\n\nThe integration requires an existing Lightning node with connectivity to the greater Lightning network. Note that speed within the Lightning network degrades as two peers have more degrees of separation, and opening a direct channel provides a much faster experience.\n\nAdditional information on the Lightning Network is available [here](https://dev.lightning.community/).\n\n## Install\n\n```bash\nnpm install ilp-plugin-lightning\n```\n\nRequires Node.js 10+.\n\n## API\n\nHere are the available options to pass to the plugin. Additional configuration options are also inherited from [ilp-plugin-btp](https://github.com/interledgerjs/ilp-plugin-btp) if the plugin is a client, and [ilp-plugin-mini-accounts](https://github.com/interledgerjs/ilp-plugin-mini-accounts) if the plugin is a server.\n\nClients do not settle automatically. Sending Lightning payments can be triggered by invoking `sendMoney` on the plugin, and the money handler is called upon receipt of incoming payments (set using `registerMoneyHandler`).\n\nThe balance configuration has been simplified for servers. Clients must prefund before sending any packets through a server, and if a client fulfills packets sent to them through a server, the server will automatically settle such that they owe 0 to the client. This configuration was chosen as a default due to it's security and protection against deadlocks.\n\n#### `role`\n\n- Type:\n  - `\"client\"` to connect to a single counterparty\n  - `\"server\"` enables multiple counterparties to connect\n- Default: `\"client\"`\n\n#### `lnd`\n\n- **Required**\n- Type: `LndOpts`\n- Credentials to create a connection to the LND node, or an already constructed LND service\n\nTo have the plugin create the connection internally, provide an object with the following properties:\n\n##### `macaroon`\n\n- **Required**\n- Type: `string` or `Buffer`\n- LND macaroon to used authenticate daemon requests as a Base64-encoded string or Buffer (e.g. using `fs.readFile`)\n\n##### `tlsCert`\n\n- **Required**\n- Type: `string` or `Buffer`\n- TLS certificate to authenticate the connection to the Lightning daemon as a Base64-encoded string or Buffer (e.g. using `fs.readFile`)\n\n##### `hostname`\n\n- **Required**\n- Type: `string`\n- Hostname of the Lightning node\n\n##### `grpcPort`\n\n- Type: `number`\n- Default: `10009`\n- Port of LND gRPC server\n\nFor example:\n\n```js\n{\n  hostname: 'localhost',\n  macaroon:\n    'AgEDbG5kArsBAwoQ3/I9f6kgSE6aUPd85lWpOBIBMBoWCgdhZGRyZXNzEgRyZWFkEgV3cml0ZRoTCgRpbmZvEgRyZWFkEgV32ml0ZRoXCghpbnZvaWNlcxIEcmVhZBIFd3JpdGUaFgoHbWVzc2FnZRIEcmVhZBIFd3JpdGUaFwoIb2ZmY2hhaW4SBHJlYWQSBXdyaXRlGhYKB29uY2hhaW4SBHJlYWQSBXdyaXRlGhQKBXBlZXJzEgRyZWFkEgV3cml0ZQAABiAiUTBv3Eh6iDbdjmXCfNxp4HBEcOYNzXhrm+ncLHf5jA==',\n  tlsCert:\n    'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNpRENDQWkrZ0F3SUJBZ0lRZG81djBRQlhIbmppNGhSYWVlTWpOREFLQmdncWhrak9QUVFEQWpCSE1SOHcKSFFZRFZRUUtFeFpzYm1RZ1lYVjBiMmRsYm1WeVlYUmxaQ0JqWlhKME1TUXdJZ1lEVlFRREV4dEtkWE4wZFhOegpMVTFoWTBKdmIyc3RVSEp2TFRNdWJHOWpZV3d3SGhjTk1UZ3dPREl6TURVMU9ERXdXaGNOTVRreE1ERTRNRFUxCk9ERXdXakJITVI4d0hRWURWUVFLRXhac2JtUWdZWFYwYjJkbGJtVnlZWFJsWkNCalpYSjBNU1F3SWdZRFZRUUQKRXh0S2RYTjBkWE56TFUxaFkwSnZiMnN0VUhKdkxUTXViRzlqWVd3d1dUQVRCZ2NxaGtqT1BRSUJCZ2dxaGtpTwpQUU1CQndOQ0FBU0ZoUm0rdy9UMTBQb0t0ZzRsbTloQk5KakpENDczZmt6SHdQVUZ3eTkxdlRyUVNmNzU0M2oyCkpyZ0ZvOG1iVFYwVnRwZ3FrZksxSU1WS01MckYyMXhpbzRIOE1JSDVNQTRHQTFVZER3RUIvd1FFQXdJQ3BEQVAKQmdOVkhSTUJBZjhFQlRBREFRSC9NSUhWQmdOVkhSRUVnYzB3Z2NxQ0cwcDFjM1IxYzNNdFRXRmpRbTl2YXkxUQpjbTh0TXk1c2IyTmhiSUlKYkc5allXeG9iM04wZ2dSMWJtbDRnZ3AxYm1sNGNHRmphMlYwaHdSL0FBQUJoeEFBCkFBQUFBQUFBQUFBQUFBQUFBQUFCaHhEK2dBQUFBQUFBQUFBQUFBQUFBQUFCaHhEK2dBQUFBQUFBQUF3bGM5WmMKazdiRGh3VEFxQUVFaHhEK2dBQUFBQUFBQUJpTnAvLytHeFhHaHhEK2dBQUFBQUFBQUtXSjV0bGlET1JqaHdRSwpEd0FDaHhEK2dBQUFBQUFBQUc2V3ovLyszYXRGaHhEOTJ0RFF5djRUQVFBQUFBQUFBQkFBTUFvR0NDcUdTTTQ5CkJBTUNBMGNBTUVRQ0lBOU85eHRhem1keENLajBNZmJGSFZCcTVJN0pNbk9GUHB3UlBKWFFmcllhQWlCZDVOeUoKUUN3bFN4NUVDblBPSDVzUnB2MjZUOGFVY1hibXlueDlDb0R1ZkE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=='\n}\n```\n\n#### `maxPacketAmount`\n\n- Type: [`BigNumber`](http://mikemcl.github.io/bignumber.js/), `number`, or `string`\n- Default: `Infinity`\n- Maximum amount in _satoshis_ above which an incoming ILP packet should be rejected\n\n## Bilateral Communication\n\nThis plugin uses the [Bilateral Transfer Protocol](https://github.com/interledger/rfcs/blob/master/0023-bilateral-transfer-protocol/0023-bilateral-transfer-protocol.md) over WebSockets to send messages between peers. Two subprotocols are supported:\n\n#### `peeringRequest`\n\n- Format: `[Identity public key]`, UTF-8 encoded\n- Used for sharing pubkey of our Lightning node with the peer\n- Only shares pubkey, does not attempt to peer over the Lightning network\n\n#### `paymentRequest`\n\n- Format: [BOLT11](https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md) encoded, then UTF-8 encoded\n- Used to send a invoice to the Interledger peer, so they have the ability to send payments to our instance\n- By default, peers send 20 invoices ahead of time, and share an additional invoice as each invoice expires or is paid\n\n## Known Issues\n\n- LND does not currently support pruning invoices (neither automatically nor manually). As this plugin may generate several invoices per second when a peer is actively streaming money, this can significantly increase the footprint of the LND database.\n- LND may soon support [spontaneous payments](https://github.com/lightningnetwork/lnd/pull/2455), which would eliminate the overhead of frequently sharing invoices.\n- The plugin does not perform any accounting for Lightning Network fees.\n","maintainers":[{"name":"emschwartz","email":"evan.mark.schwartz@gmail.com"}],"time":{"modified":"2022-05-05T18:27:43.209Z","created":"2017-07-31T11:05:16.437Z","0.2.0":"2017-07-31T11:05:16.437Z","0.3.0":"2017-08-02T09:12:52.261Z","1.0.0-beta.2":"2018-10-05T15:13:08.726Z","1.0.0-beta.3":"2018-10-08T19:45:42.104Z","1.0.0-beta.4":"2018-10-09T01:44:07.625Z","1.0.0-beta.5":"2018-10-09T21:53:08.438Z","1.0.0-beta.6":"2018-10-17T20:56:47.162Z","1.0.0-beta.8":"2018-10-23T14:17:45.734Z","1.0.0-beta.9":"2018-10-24T16:07:11.400Z","1.0.0-beta.10":"2018-10-26T15:15:16.051Z","1.0.0-beta.11":"2018-10-29T15:29:39.085Z","1.0.0-beta.12":"2018-11-07T22:02:14.955Z","1.0.0-beta.13":"2018-11-08T15:02:00.225Z","1.0.0-beta.14":"2018-11-12T17:18:24.953Z","1.0.0-beta.15":"2018-11-21T15:57:31.769Z","1.0.0-beta.16":"2018-12-10T20:14:05.808Z","1.0.0-beta.17":"2018-12-18T23:32:03.124Z","1.0.0-beta.18":"2018-12-18T23:51:09.380Z","1.0.0-beta.19":"2019-01-24T20:09:01.315Z","1.0.0-beta.20":"2019-01-24T22:50:17.256Z","1.0.0-beta.21":"2019-01-28T21:51:15.118Z","1.0.0-beta.22":"2019-03-06T16:22:09.132Z","1.0.0-beta.23":"2019-03-13T14:51:54.292Z","1.0.0-beta.24":"2019-04-01T21:29:40.299Z","1.0.0-beta.25":"2019-04-03T19:59:35.411Z"},"keywords":["interledger","ilp","streaming","payments","lightning","lightning-network","micropayments"],"license":"Apache-2.0","readmeFilename":"README.md","homepage":"https://github.com/interledgerjs/ilp-plugin-lightning#readme","repository":{"type":"git","url":"git+https://github.com/interledgerjs/ilp-plugin-lightning.git"},"contributors":[{"name":"Kevin Davis","email":"kevin@kava.io"},{"name":"Austin King","email":"austin@stratalabs.io"},{"name":"Kincaid O'Neil","email":"kincaid@kava.io","url":"https://kincaidoneil.com/"}],"bugs":{"url":"https://github.com/interledgerjs/ilp-plugin-lightning/issues"}}