Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions payjoin-cli/contrib/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env bash
set -e

cargo test --locked --package payjoin-cli --verbose --no-default-features --features=_danger-local-https,v2 --test e2e
cargo test --locked --package payjoin-cli --verbose --no-default-features --features=v1,_danger-local-https
cargo test --locked --package payjoin-cli --verbose --all-features
65 changes: 32 additions & 33 deletions payjoin-cli/example.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@
## Payjoin config.toml configuration file. Lines beginning with # are comments.
##

# Bitcoin RPC Connection Settings
# ------------------------------
# Common Settings
# --------------

# The path to the database file
db_path = "payjoin.db"

# The maximum fee rate that the receiver is willing to pay (in sat/vB)
max_fee_rate = 2.0

# Bitcoin RPC Connection Settings
# ------------------------------
[bitcoind]
# The RPC host of the wallet to connect to.
# For example, if the wallet is "sender", then default values are:
# - mainnet: http://localhost:8332/wallet/sender
# - testnet: http://localhost:18332/wallet/sender
# - regtest: http://localhost:18443/wallet/sender
# - signet: http://localhost:38332/wallet/sender
bitcoind_rpchost="http://localhost:18443/wallet/sender"

rpchost = "http://localhost:18443/wallet/sender"

# The RPC .cookie file used only for local authentication to bitcoind.
# If rpcuser and rpcpassword are being used, this is not necessary.
Expand All @@ -22,36 +29,28 @@ bitcoind_rpchost="http://localhost:18443/wallet/sender"
# MacOS: ~/Library/Application Support/Bitcoin/<NETWORK>/.cookie
# Windows Vista and later: C:\Users\YourUserName\AppData\Roaming\Bitcoin\<NETWORK>\.cookie
# Windows XP: C:\Documents and Settings\YourUserName\Application Data\Bitcoin\<NETWORK>\.cookie
# bitcoind_cookie=

cookie = ""

# The rpcuser to connect to (specified in bitcoin.conf).
bitcoind_rpcuser="user"

rpcuser = "user"

# The rpcpassword of the user to connect to (specified in bitcoin.conf).
bitcoind_rpcpassword="password"

## Payjoin Settings
## ----------------


# (v1, receiver only) The port for v1 receiving servers to bind to.
port="3000"


# (v1, receiver only) The payjoin endpoint which coordinates the transaction.
pj_endpoint="https://localhost:3000"


# (v2 only) The payjoin directory to rendezvous at.
pj_directory = "https://payjo.in"


# (v2 only) The OHTTP relay that will forward requests to the OHTTP Gateway, which will forward to the pj_endpoint directory.
ohttp_relay="https://pj.bobspacebkk.com"


# (v2 only, optional) The HPKE keys which need to be fetched ahead of time from the pj_endpoint for the payjoin packets to be encrypted.
# These can now be fetched and no longer need to be configured.
ohttp_keys="./path/to/ohttp_keys"
rpcpassword = "password"

# Version Configuration
# -------------------
# Uncomment ONE of the following version configurations depending on which version you want to use

# Version 1 Configuration
# [v1]
# port = 3000
# pj_endpoint = "https://localhost:3000"

# Version 2 Configuration
# [v2]
# pj_directory = "https://payjo.in"
# ohttp_relay = "https://pj.bobspacebkk.com"
# # Optional: The HPKE keys which need to be fetched ahead of time from the pj_endpoint
# # for the payjoin packets to be encrypted.
# # These can now be fetched and no longer need to be configured.
# ohttp_keys = "./path/to/ohttp_keys"
Loading