Skip to content

Commit d3393d2

Browse files
authored
Rename payjoin-service to payjoin-mailroom (#1329)
2 parents 4959ff0 + 850b7cd commit d3393d2

25 files changed

Lines changed: 99 additions & 105 deletions

File tree

.github/workflows/release-image.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: "Build and publish Docker image"
33
on:
44
pull_request:
55
paths:
6-
- payjoin-service/**
6+
- payjoin-mailroom/**
77
push:
88
tags:
9-
- payjoin-service-**
9+
- payjoin-mailroom-**
1010
workflow_dispatch:
1111

1212
jobs:
@@ -33,7 +33,7 @@ jobs:
3333
password: ${{ secrets.PAYJOIN_DOCKER_RW }}
3434

3535
- name: Build and release image
36-
run: nix run .#packages.x86_64-linux.payjoin-service-image.copyToRegistry
36+
run: nix run .#packages.x86_64-linux.payjoin-mailroom-image.copyToRegistry
3737

3838
build-pr:
3939
name: "Build and upload image artifact"
@@ -55,17 +55,17 @@ jobs:
5555
run: |
5656
TAG=$(git rev-parse --short HEAD)
5757
58-
nix build .#packages.x86_64-linux.payjoin-service-image.copyToDockerDaemon
58+
nix build .#packages.x86_64-linux.payjoin-mailroom-image.copyToDockerDaemon
5959
result/bin/copy-to-docker-daemon
6060
61-
docker save docker.io/payjoin/payjoin-service:${TAG} -o payjoin-service-${TAG}.tar
61+
docker save docker.io/payjoin/payjoin-mailroom:${TAG} -o payjoin-mailroom-${TAG}.tar
6262
63-
echo "Image saved: payjoin-service-${TAG}.tar"
64-
ls -lh payjoin-service-${TAG}.tar
63+
echo "Image saved: payjoin-mailroom-${TAG}.tar"
64+
ls -lh payjoin-mailroom-${TAG}.tar
6565
6666
- name: Upload image artifact
6767
uses: actions/upload-artifact@v4
6868
with:
69-
name: payjoin-service-image-${{ github.sha }}
70-
path: payjoin-service-*.tar
69+
name: payjoin-mailroom-image-${{ github.sha }}
70+
path: payjoin-mailroom-*.tar
7171
retention-days: 7

Cargo-minimal.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2769,7 +2769,7 @@ dependencies = [
27692769
]
27702770

27712771
[[package]]
2772-
name = "payjoin-service"
2772+
name = "payjoin-mailroom"
27732773
version = "0.0.1"
27742774
dependencies = [
27752775
"anyhow",
@@ -2808,7 +2808,7 @@ dependencies = [
28082808
"http",
28092809
"once_cell",
28102810
"payjoin",
2811-
"payjoin-service",
2811+
"payjoin-mailroom",
28122812
"rcgen 0.14.3",
28132813
"reqwest",
28142814
"rustls 0.23.31",

Cargo-recent.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2769,7 +2769,7 @@ dependencies = [
27692769
]
27702770

27712771
[[package]]
2772-
name = "payjoin-service"
2772+
name = "payjoin-mailroom"
27732773
version = "0.0.1"
27742774
dependencies = [
27752775
"anyhow",
@@ -2808,7 +2808,7 @@ dependencies = [
28082808
"http",
28092809
"once_cell",
28102810
"payjoin",
2811-
"payjoin-service",
2811+
"payjoin-mailroom",
28122812
"rcgen 0.14.3",
28132813
"reqwest",
28142814
"rustls 0.23.31",

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ members = [
77
"payjoin-directory",
88
"payjoin-test-utils",
99
"payjoin-ffi",
10-
"payjoin-service",
10+
"payjoin-mailroom",
1111
]
1212
resolver = "2"
1313

@@ -16,7 +16,7 @@ payjoin-fuzz = { path = "fuzz" }
1616
ohttp-relay = { path = "ohttp-relay" }
1717
payjoin = { path = "payjoin" }
1818
payjoin-directory = { path = "payjoin-directory" }
19-
payjoin-service = { path = "payjoin-service" }
19+
payjoin-mailroom = { path = "payjoin-mailroom" }
2020
payjoin-test-utils = { path = "payjoin-test-utils" }
2121

2222
[profile.crane]

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,9 @@ The main Payjoin Dev Kit library which provides tools for implementing both Asyn
3737

3838
A CLI tool which performs no-frills Payjoin. It is a reference implementation of the Payjoin Dev Kit which uses a Bitcoin Core wallet.
3939

40-
### [`ohttp-relay`](https://github.com/payjoin/rust-payjoin/tree/master/ohttp-relay)
40+
### [`payjoin-mailroom`](https://github.com/payjoin/rust-payjoin/tree/master/payjoin-mailroom)
4141

42-
A Rust implementation of an Oblivious HTTP (OHTTP) relay resource.
43-
44-
**Disclaimer: Both this crate and the [IETF paper](https://ietf-wg-ohai.github.io/oblivious-http/draft-ietf-ohai-ohttp.html) are undergoing active revision. Use at your own risk.**
45-
46-
### [`payjoin-directory`](https://github.com/payjoin/rust-payjoin/tree/master/payjoin-directory)
47-
48-
A reference implementation for a Payjoin Directory which stores and forwards HTTP client messages between the sender and the receiver to allow for Async Payjoin transactions. Async Payjoin clients make requests to the directory using [Oblivious HTTP (OHTTP)](https://www.ietf.org/rfc/rfc9458.html) which prevents the directory from being able to link payjoins to specific client IP addresses.
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.
4943

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

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-directory payjoin-ffi payjoin-service"
27+
CRATES="ohttp-relay payjoin payjoin-cli payjoin-directory payjoin-ffi payjoin-mailroom"
2828

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

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
"payjoin-cli" = "--features v1,v2";
163163
"payjoin-directory" = "";
164164
"ohttp-relay" = "";
165-
"payjoin-service" = "--features acme,telemetry";
165+
"payjoin-mailroom" = "--features acme,telemetry";
166166
};
167167

168168
# nix2container for building OCI/Docker images
@@ -193,7 +193,7 @@
193193
tag = self.shortRev or "dirty";
194194
in
195195
{
196-
"payjoin-service-image" = mkContainerImage "payjoin-service" packages.payjoin-service tag;
196+
"payjoin-mailroom-image" = mkContainerImage "payjoin-mailroom" packages.payjoin-mailroom tag;
197197
};
198198

199199
devShells = builtins.mapAttrs (

payjoin-directory/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ impl<D: Db> Service<D> {
194194
debug!("Service::serve_request: {:?}", &path_segments);
195195

196196
// Best-effort validation that the relay and gateway aren't on the same
197-
// payjoin-service instance
197+
// payjoin-mailroom instance
198198
if let Some(header_value) =
199199
parts.headers.get(ohttp_relay::sentinel::HEADER_NAME).and_then(|v| v.to_str().ok())
200200
{

payjoin-ffi/dart/native/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ payjoin-ffi = { path = "../.." }
2727
ohttp-relay = { path = "../../../ohttp-relay" }
2828
payjoin = { path = "../../../payjoin" }
2929
payjoin-directory = { path = "../../../payjoin-directory" }
30-
payjoin-service = { path = "../../../payjoin-service" }
30+
payjoin-mailroom = { path = "../../../payjoin-mailroom" }
3131
payjoin-test-utils = { path = "../../../payjoin-test-utils" }

payjoin-ffi/javascript/test-utils/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ path = "../../../payjoin"
2727
[patch.crates-io.payjoin-directory]
2828
path = "../../../payjoin-directory"
2929

30-
[patch.crates-io.payjoin-service]
31-
path = "../../../payjoin-service"
30+
[patch.crates-io.payjoin-mailroom]
31+
path = "../../../payjoin-mailroom"
3232

3333
[patch.crates-io.payjoin-test-utils]
3434
path = "../../../payjoin-test-utils"

0 commit comments

Comments
 (0)