├── .gitignore ├── .tm_properties ├── LICENSE ├── README.md ├── async-util ├── index.js ├── return_json.js └── return_result.js ├── chain ├── broadcast_transaction.js ├── chain_rpc.js ├── conf │ ├── chain_server.json │ ├── constants.json │ ├── error_codes.json │ └── rpc_commands.json ├── create_address.js ├── generate_chain_blocks.js ├── generate_key_pair.js ├── get_block.js ├── get_block_details.js ├── get_blockchain_info.js ├── get_chain_fee_rate.js ├── get_mempool.js ├── get_transaction.js ├── index.js ├── parse_token_value.js ├── spawn_chain_daemon.js └── stop_chain_daemon.js ├── docs ├── chain_swap_script.md ├── glossary.md └── service_api.md ├── lightning ├── create_address.js ├── index.js └── pay_invoice.js ├── package.json ├── public ├── browserify │ └── index.js ├── css │ └── main.css ├── img │ ├── heart.svg │ ├── lightpay.png │ ├── lightpay_bg.svg │ ├── lightpay_logo.svg │ └── loader.svg └── js │ ├── kjua.min.js │ └── main.js ├── routers └── api.js ├── server.js ├── service ├── check_swap_status.js ├── complete_swap_transaction.js ├── create_swap.js ├── find_scriptpub_in_block.js ├── find_scriptpub_in_mempool.js ├── find_swap_outpoint.js ├── find_swap_transaction.js ├── get_address_details.js ├── get_invoice_details.js ├── get_price.js ├── index.js ├── server_swap_key_pair.js └── transaction_has_scriptpub.js ├── swaps ├── claim_transaction.js ├── index.js ├── pk_swap_script.js ├── pkhash_swap_script.js ├── refund_transaction.js ├── script_buffers_as_script.js ├── swap_address.js ├── swap_output.js ├── swap_script_details.js └── swap_script_in_tx.js ├── test ├── async-util.js ├── claim_success.js ├── conf │ └── math.json ├── interactive │ ├── interactive_claim_success.js │ └── interactive_refund_success.js ├── macros │ ├── address_for_public_key.js │ ├── generate_invoice.js │ ├── is_chain_below_height.js │ ├── mine_transaction.js │ ├── parse_lightning_invoice.js │ ├── prompt.js │ └── send_chain_tokens_tx.js ├── refund_success.js ├── test_claim_transaction.js ├── test_refund_transaction.js ├── test_swap_address.js └── test_swap_details.js └── views ├── includes ├── create_swap_quote.pug ├── swap_quote.pug └── swap_success.pug ├── index.pug ├── layout.pug └── refund.pug /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | *~ 4 | -------------------------------------------------------------------------------- /.tm_properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/.tm_properties -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/README.md -------------------------------------------------------------------------------- /async-util/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/async-util/index.js -------------------------------------------------------------------------------- /async-util/return_json.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/async-util/return_json.js -------------------------------------------------------------------------------- /async-util/return_result.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/async-util/return_result.js -------------------------------------------------------------------------------- /chain/broadcast_transaction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/broadcast_transaction.js -------------------------------------------------------------------------------- /chain/chain_rpc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/chain_rpc.js -------------------------------------------------------------------------------- /chain/conf/chain_server.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/conf/chain_server.json -------------------------------------------------------------------------------- /chain/conf/constants.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/conf/constants.json -------------------------------------------------------------------------------- /chain/conf/error_codes.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/conf/error_codes.json -------------------------------------------------------------------------------- /chain/conf/rpc_commands.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/conf/rpc_commands.json -------------------------------------------------------------------------------- /chain/create_address.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/create_address.js -------------------------------------------------------------------------------- /chain/generate_chain_blocks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/generate_chain_blocks.js -------------------------------------------------------------------------------- /chain/generate_key_pair.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/generate_key_pair.js -------------------------------------------------------------------------------- /chain/get_block.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/get_block.js -------------------------------------------------------------------------------- /chain/get_block_details.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/get_block_details.js -------------------------------------------------------------------------------- /chain/get_blockchain_info.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/get_blockchain_info.js -------------------------------------------------------------------------------- /chain/get_chain_fee_rate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/get_chain_fee_rate.js -------------------------------------------------------------------------------- /chain/get_mempool.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/get_mempool.js -------------------------------------------------------------------------------- /chain/get_transaction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/get_transaction.js -------------------------------------------------------------------------------- /chain/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/index.js -------------------------------------------------------------------------------- /chain/parse_token_value.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/parse_token_value.js -------------------------------------------------------------------------------- /chain/spawn_chain_daemon.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/spawn_chain_daemon.js -------------------------------------------------------------------------------- /chain/stop_chain_daemon.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/chain/stop_chain_daemon.js -------------------------------------------------------------------------------- /docs/chain_swap_script.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/docs/chain_swap_script.md -------------------------------------------------------------------------------- /docs/glossary.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/docs/glossary.md -------------------------------------------------------------------------------- /docs/service_api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/docs/service_api.md -------------------------------------------------------------------------------- /lightning/create_address.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/lightning/create_address.js -------------------------------------------------------------------------------- /lightning/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/lightning/index.js -------------------------------------------------------------------------------- /lightning/pay_invoice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/lightning/pay_invoice.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/package.json -------------------------------------------------------------------------------- /public/browserify/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/public/browserify/index.js -------------------------------------------------------------------------------- /public/css/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/public/css/main.css -------------------------------------------------------------------------------- /public/img/heart.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/public/img/heart.svg -------------------------------------------------------------------------------- /public/img/lightpay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/public/img/lightpay.png -------------------------------------------------------------------------------- /public/img/lightpay_bg.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/public/img/lightpay_bg.svg -------------------------------------------------------------------------------- /public/img/lightpay_logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/public/img/lightpay_logo.svg -------------------------------------------------------------------------------- /public/img/loader.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/public/img/loader.svg -------------------------------------------------------------------------------- /public/js/kjua.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/public/js/kjua.min.js -------------------------------------------------------------------------------- /public/js/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/public/js/main.js -------------------------------------------------------------------------------- /routers/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/routers/api.js -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/server.js -------------------------------------------------------------------------------- /service/check_swap_status.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/check_swap_status.js -------------------------------------------------------------------------------- /service/complete_swap_transaction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/complete_swap_transaction.js -------------------------------------------------------------------------------- /service/create_swap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/create_swap.js -------------------------------------------------------------------------------- /service/find_scriptpub_in_block.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/find_scriptpub_in_block.js -------------------------------------------------------------------------------- /service/find_scriptpub_in_mempool.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/find_scriptpub_in_mempool.js -------------------------------------------------------------------------------- /service/find_swap_outpoint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/find_swap_outpoint.js -------------------------------------------------------------------------------- /service/find_swap_transaction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/find_swap_transaction.js -------------------------------------------------------------------------------- /service/get_address_details.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/get_address_details.js -------------------------------------------------------------------------------- /service/get_invoice_details.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/get_invoice_details.js -------------------------------------------------------------------------------- /service/get_price.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/get_price.js -------------------------------------------------------------------------------- /service/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/index.js -------------------------------------------------------------------------------- /service/server_swap_key_pair.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/server_swap_key_pair.js -------------------------------------------------------------------------------- /service/transaction_has_scriptpub.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/service/transaction_has_scriptpub.js -------------------------------------------------------------------------------- /swaps/claim_transaction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/swaps/claim_transaction.js -------------------------------------------------------------------------------- /swaps/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/swaps/index.js -------------------------------------------------------------------------------- /swaps/pk_swap_script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/swaps/pk_swap_script.js -------------------------------------------------------------------------------- /swaps/pkhash_swap_script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/swaps/pkhash_swap_script.js -------------------------------------------------------------------------------- /swaps/refund_transaction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/swaps/refund_transaction.js -------------------------------------------------------------------------------- /swaps/script_buffers_as_script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/swaps/script_buffers_as_script.js -------------------------------------------------------------------------------- /swaps/swap_address.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/swaps/swap_address.js -------------------------------------------------------------------------------- /swaps/swap_output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/swaps/swap_output.js -------------------------------------------------------------------------------- /swaps/swap_script_details.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/swaps/swap_script_details.js -------------------------------------------------------------------------------- /swaps/swap_script_in_tx.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/swaps/swap_script_in_tx.js -------------------------------------------------------------------------------- /test/async-util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/async-util.js -------------------------------------------------------------------------------- /test/claim_success.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/claim_success.js -------------------------------------------------------------------------------- /test/conf/math.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/conf/math.json -------------------------------------------------------------------------------- /test/interactive/interactive_claim_success.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/interactive/interactive_claim_success.js -------------------------------------------------------------------------------- /test/interactive/interactive_refund_success.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/interactive/interactive_refund_success.js -------------------------------------------------------------------------------- /test/macros/address_for_public_key.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/macros/address_for_public_key.js -------------------------------------------------------------------------------- /test/macros/generate_invoice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/macros/generate_invoice.js -------------------------------------------------------------------------------- /test/macros/is_chain_below_height.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/macros/is_chain_below_height.js -------------------------------------------------------------------------------- /test/macros/mine_transaction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/macros/mine_transaction.js -------------------------------------------------------------------------------- /test/macros/parse_lightning_invoice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/macros/parse_lightning_invoice.js -------------------------------------------------------------------------------- /test/macros/prompt.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/macros/prompt.js -------------------------------------------------------------------------------- /test/macros/send_chain_tokens_tx.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/macros/send_chain_tokens_tx.js -------------------------------------------------------------------------------- /test/refund_success.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/refund_success.js -------------------------------------------------------------------------------- /test/test_claim_transaction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/test_claim_transaction.js -------------------------------------------------------------------------------- /test/test_refund_transaction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/test_refund_transaction.js -------------------------------------------------------------------------------- /test/test_swap_address.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/test_swap_address.js -------------------------------------------------------------------------------- /test/test_swap_details.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/test/test_swap_details.js -------------------------------------------------------------------------------- /views/includes/create_swap_quote.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/views/includes/create_swap_quote.pug -------------------------------------------------------------------------------- /views/includes/swap_quote.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/views/includes/swap_quote.pug -------------------------------------------------------------------------------- /views/includes/swap_success.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/views/includes/swap_success.pug -------------------------------------------------------------------------------- /views/index.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/views/index.pug -------------------------------------------------------------------------------- /views/layout.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/views/layout.pug -------------------------------------------------------------------------------- /views/refund.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micahstubbs/lightpay/HEAD/views/refund.pug --------------------------------------------------------------------------------