Skip to content

Commit 719bdd6

Browse files
authored
Fold ohttp relay into mailroom (payjoin#1409)
2 parents e743fb7 + 63e62ea commit 719bdd6

File tree

35 files changed

+118
-515
lines changed

35 files changed

+118
-515
lines changed

.github/ISSUE_TEMPLATE/bug-general.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ body:
3030
- payjoin-mailroom
3131
- payjoin-test-utils
3232
- payjoin-ffi
33-
- ohttp-relay
3433
- type: dropdown
3534
attributes:
3635
label: How did you obtain this crate?

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ body:
1212
- payjoin-mailroom
1313
- payjoin-test-utils
1414
- payjoin-ffi
15-
- ohttp-relay
1615
- type: textarea
1716
id: feature
1817
attributes:

.github/ISSUE_TEMPLATE/general.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ body:
1111
- payjoin-mailroom
1212
- payjoin-test-utils
1313
- payjoin-ffi
14-
- ohttp-relay
1514
- type: textarea
1615
id: question
1716
attributes:

.github/ISSUE_TEMPLATE/good-first-issue.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ body:
1212
- payjoin-mailroom
1313
- payjoin-test-utils
1414
- payjoin-ffi
15-
- ohttp-relay
1615
- type: markdown
1716
attributes:
1817
value: |

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: DeterminateSystems/magic-nix-cache-action@main
3434
- name: "Add nginxWithStream to PATH"
3535
run: |
36-
# This is necessary for ohttp-relay integration tests
36+
# This is necessary for payjoin-mailroom integration tests
3737
echo "$(nix build .#nginx-with-stream --print-out-paths --no-link)/bin" >> $GITHUB_PATH
3838
- name: "Use cache"
3939
uses: Swatinem/rust-cache@v2
@@ -93,7 +93,7 @@ jobs:
9393
uses: DeterminateSystems/magic-nix-cache-action@main
9494
- name: "Add nginxWithStream to PATH"
9595
run: |
96-
# This is necessary for ohttp-relay integration tests
96+
# This is necessary for payjoin-mailroom integration tests
9797
echo "$(nix build .#nginx-with-stream --print-out-paths --no-link)/bin" >> $GITHUB_PATH
9898
- name: "Use cache"
9999
uses: Swatinem/rust-cache@v2

Cargo-minimal.lock

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,34 +2556,6 @@ dependencies = [
25562556
"autocfg",
25572557
]
25582558

2559-
[[package]]
2560-
name = "ohttp-relay"
2561-
version = "0.0.11"
2562-
dependencies = [
2563-
"byteorder",
2564-
"bytes",
2565-
"futures",
2566-
"hex-conservative 0.1.2",
2567-
"http",
2568-
"http-body-util",
2569-
"hyper",
2570-
"hyper-rustls",
2571-
"hyper-util",
2572-
"mockito",
2573-
"rcgen 0.12.1",
2574-
"reqwest",
2575-
"rustls 0.23.31",
2576-
"tempfile",
2577-
"tokio",
2578-
"tokio-rustls",
2579-
"tokio-tungstenite",
2580-
"tokio-util",
2581-
"tower",
2582-
"tracing",
2583-
"tracing-subscriber",
2584-
"uuid",
2585-
]
2586-
25872559
[[package]]
25882560
name = "oid-registry"
25892561
version = "0.8.1"
@@ -2867,31 +2839,42 @@ dependencies = [
28672839
"bhttp",
28682840
"bitcoin 0.32.8",
28692841
"bitcoin-ohttp",
2842+
"byteorder",
2843+
"bytes",
28702844
"clap 4.5.46",
28712845
"config",
28722846
"flate2",
28732847
"futures",
2848+
"hex-conservative 0.1.2",
2849+
"http",
28742850
"http-body-util",
2851+
"hyper",
2852+
"hyper-rustls",
2853+
"hyper-util",
28752854
"ipnet",
28762855
"maxminddb",
2877-
"ohttp-relay",
2856+
"mockito",
28782857
"opentelemetry",
28792858
"opentelemetry-otlp",
28802859
"opentelemetry_sdk",
28812860
"payjoin",
28822861
"payjoin-test-utils",
28832862
"rand 0.8.5",
2863+
"rcgen 0.12.1",
28842864
"reqwest",
28852865
"rustls 0.23.31",
28862866
"serde",
28872867
"tempfile",
28882868
"tokio",
28892869
"tokio-listener",
2870+
"tokio-rustls",
28902871
"tokio-rustls-acme",
28912872
"tokio-stream",
2873+
"tokio-tungstenite",
28922874
"tower",
28932875
"tracing",
28942876
"tracing-subscriber",
2877+
"uuid",
28952878
]
28962879

28972880
[[package]]

Cargo-recent.lock

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,34 +2556,6 @@ dependencies = [
25562556
"autocfg",
25572557
]
25582558

2559-
[[package]]
2560-
name = "ohttp-relay"
2561-
version = "0.0.11"
2562-
dependencies = [
2563-
"byteorder",
2564-
"bytes",
2565-
"futures",
2566-
"hex-conservative 0.1.2",
2567-
"http",
2568-
"http-body-util",
2569-
"hyper",
2570-
"hyper-rustls",
2571-
"hyper-util",
2572-
"mockito",
2573-
"rcgen 0.12.1",
2574-
"reqwest",
2575-
"rustls 0.23.31",
2576-
"tempfile",
2577-
"tokio",
2578-
"tokio-rustls",
2579-
"tokio-tungstenite",
2580-
"tokio-util",
2581-
"tower",
2582-
"tracing",
2583-
"tracing-subscriber",
2584-
"uuid",
2585-
]
2586-
25872559
[[package]]
25882560
name = "oid-registry"
25892561
version = "0.8.1"
@@ -2867,31 +2839,42 @@ dependencies = [
28672839
"bhttp",
28682840
"bitcoin 0.32.8",
28692841
"bitcoin-ohttp",
2842+
"byteorder",
2843+
"bytes",
28702844
"clap 4.5.46",
28712845
"config",
28722846
"flate2",
28732847
"futures",
2848+
"hex-conservative 0.1.2",
2849+
"http",
28742850
"http-body-util",
2851+
"hyper",
2852+
"hyper-rustls",
2853+
"hyper-util",
28752854
"ipnet",
28762855
"maxminddb",
2877-
"ohttp-relay",
2856+
"mockito",
28782857
"opentelemetry",
28792858
"opentelemetry-otlp",
28802859
"opentelemetry_sdk",
28812860
"payjoin",
28822861
"payjoin-test-utils",
28832862
"rand 0.8.5",
2863+
"rcgen 0.12.1",
28842864
"reqwest",
28852865
"rustls 0.23.31",
28862866
"serde",
28872867
"tempfile",
28882868
"tokio",
28892869
"tokio-listener",
2870+
"tokio-rustls",
28902871
"tokio-rustls-acme",
28912872
"tokio-stream",
2873+
"tokio-tungstenite",
28922874
"tower",
28932875
"tracing",
28942876
"tracing-subscriber",
2877+
"uuid",
28952878
]
28962879

28972880
[[package]]

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[workspace]
22
members = [
33
"fuzz",
4-
"ohttp-relay",
54
"payjoin",
65
"payjoin-cli",
76
"payjoin-test-utils",
@@ -12,7 +11,6 @@ resolver = "2"
1211

1312
[patch.crates-io]
1413
payjoin-fuzz = { path = "fuzz" }
15-
ohttp-relay = { path = "ohttp-relay" }
1614
payjoin = { path = "payjoin" }
1715
payjoin-mailroom = { path = "payjoin-mailroom" }
1816
payjoin-test-utils = { path = "payjoin-test-utils" }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ A CLI tool which performs no-frills Payjoin. It is a reference implementation of
3939

4040
### [`payjoin-mailroom`](https://github.com/payjoin/rust-payjoin/tree/master/payjoin-mailroom)
4141

42-
An [Oblivious HTTP (OHTTP) Relay](https://github.com/payjoin/rust-payjoin/tree/master/ohttp-relay) and a BIP77 [Payjoin Directory](https://github.com/payjoin/rust-payjoin/tree/master/payjoin-directory) combined in one binary.
42+
A combined [Oblivious HTTP (OHTTP)](https://en.wikipedia.org/wiki/Oblivious_HTTP) Relay and BIP77 Payjoin Directory in one binary.
4343

4444
### [`payjoin-test-utils`](https://github.com/payjoin/rust-payjoin/tree/master/payjoin-test-utils)
4545

contrib/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [ -f "$LOCKFILE" ]; then
2424
fi
2525

2626
DEPS="recent minimal"
27-
CRATES="ohttp-relay payjoin payjoin-cli payjoin-ffi payjoin-mailroom"
27+
CRATES="payjoin payjoin-cli payjoin-ffi payjoin-mailroom"
2828

2929
for dep in $DEPS; do
3030
cargo --version

0 commit comments

Comments
 (0)