SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ff05b3191d92c2bc550c710648f68a0a81abf2f7
parent 48cbf30bd3b5213fdd917f22ef4583fc8e7f7709
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Fri, 15 Jan 2021 13:42:24 +1100

merge imports

Diffstat:
MREADME.md | 13+++++++++----
Mpay/bitcoind.py | 3++-
2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md @@ -8,15 +8,16 @@ Currently, BTCPyment only provides donation buttons, but we plan to soon extend BTCPyment makes donation buttons simple; using Python and Javascript to talk to your own Bitcoin node, with an easy iframe embed install. BTCPyment uses RPC to generate new addresses from your Bitcoin node, and monitors the payment status with your own copy of the blockchain. Soon, we hope to support lightning payments as well as function as a payment processor for a variety of web shops (woocommerce, shopify). # Features -* Lightweight, Python and Javascript talk to your own Bitcoin node via websockets and SSH. -* Direct peer-to-peer payments without any middleman. No KYC, and greater privacy than donation systems with reused Bitcoin addresses. +* Talk to your own Bitcoin node via RPC and SSH. Bitcoin core, or any other node software that supports RPC calls. +* Lightweight - Python and Javascript websockets. +* Direct peer-to-peer payments without any middleman. No KYC, and greater privacy than donation systems wher Bitcoin addresses are reused multiple times. * Natively supports all bitcoind node features (e.g. segwit) through RPC. * QR codes, user chooses the minimum payment confirmations and payment expiry duration. * Highly extendable, just take a look at the code! Optional code execution upon payment. * No shitcoin bloat. Bitcoin only. # Installation (short!) -BTCPyment requires you to have a server host on, and a connection to a Bitcoin node. If you don't have one, you should [install one](https://bitcoincore.org/en/download/). +You require a server to host an instance of BTCPyment on, and a connection to a Bitcoin node. If you don't have a Bitcoin node, you should [install one](https://bitcoincore.org/en/download/). ### Install Clone and install dependencies ``` @@ -50,8 +51,12 @@ Now embed the donation button into your website: ```html <iframe src="http://YOUR_SERVER_IP:8000/" style="margin: 0 auto;display:block;height:320px;border:none;overflow:hidden;" scrolling="no"></iframe> ``` +Changing `YOUR_SERVER_IP` to the IP address of the machine you're running BTCPyment through. Optionally, you can redirect a domain to that IP and use that instead. -## Using HTTPS +## Security +For maximum security, we recommend hosting on a machine where your node only has access to a **watch-only** wallet. + +## Using HTTPS & Domains Embedded iframes are easy if your site only uses HTTP. But if your site uses HTTPS, then you can likely see your donation button at `http://YOUR_SERVER_IP:8000/` but not in the embeded iframe. See [HTTPS instructions](docs/HTTPS.md). # Developers diff --git a/pay/bitcoind.py b/pay/bitcoind.py @@ -1,6 +1,7 @@ -import config +import time import subprocess import time +import config from invoice.payment_invoice import invoice