Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
8419c2d
feat: add client
gerau Nov 5, 2026
783524c
feat(client): change an application payload to match spec
gerau Nov 6, 2026
03bf888
feat(client): change AAD to match the spec
gerau Nov 6, 2026
5ab141f
feat(client): fix retransmission issue
gerau Nov 6, 2026
00811e8
feat(client): use new topic after established pairing
gerau Nov 6, 2026
2f8527e
feat(client): verify that incoming frames coming from correct identity
gerau Nov 6, 2026
4e63be9
chore: wrap message id to the struct
gerau Nov 13, 2026
38c0522
fix(client): retire pairing key after the session establishment
gerau Nov 13, 2026
925af0b
fix(client): bound messages size
gerau Nov 13, 2026
4f2bf09
fix(client): don't put secrets to the log, fix silent drop
gerau Nov 13, 2026
85f7dc3
fix(client): fix transport and connection lifecycle
gerau Nov 13, 2026
3636ddf
fix(client): reliability and reconnect issues
gerau Nov 13, 2026
383c9f2
feat(client): await for the next event
gerau Nov 13, 2026
fbb7d63
fix(client): some fixes for the state machine
gerau Nov 13, 2026
a4306c9
feat(client): cipher changes, add zeroize
gerau Nov 13, 2026
11ae0d3
fix(client): flaky test
gerau Nov 13, 2026
3a5eeb9
feat(client): wire shape
gerau Nov 13, 2026
5508511
feat(client): docs and packaging
gerau Nov 13, 2026
4aaf006
fix(client): fix not resseting token expiry budget
gerau Nov 16, 2026
9044e46
feat(client): add derived from shared, update spec
gerau Nov 16, 2026
efc88bb
chore(client): refactor readiness behaviour
gerau Nov 16, 2026
e25dd2a
chore(client): refactor handle_message_frame
gerau Nov 17, 2026
0f6b610
fix(client): keep sends alive across peer returns and inbox stalls
gerau Nov 17, 2026
0695d11
fix(client): distinguish null response from explicit null
gerau Nov 17, 2026
ad74b15
fix(client): improve handshake logic
gerau Nov 17, 2026
76927de
fix(client): more protocol fixes
gerau Nov 17, 2026
2ad1d68
fix(client): config hardening
gerau Nov 17, 2026
d19243e
fix(client): transport robustness
gerau Nov 17, 2026
192a0c0
chore(client): clean-up tests, address tests issues
gerau Nov 17, 2026
dcc821e
client: close the client when the proposer never joins the session
KyrylR Nov 18, 2026
756e13a
client: keep keys, topics and peer-supplied text out of memory and logs
KyrylR Nov 18, 2026
7e245f4
client: keep control frames and lifecycle events under backpressure
KyrylR Nov 18, 2026
e8e1f06
client: tie the reconnect budget to how long the relay stays responsive
KyrylR Nov 18, 2026
5c13b51
client: bind handshake answers to their proposal and sender role
KyrylR Nov 18, 2026
9a12e54
client: let only accepted envelopes and completing acks change our state
KyrylR Nov 18, 2026
2159261
client: end sessions only through disconnect() and session_delete()
KyrylR Nov 18, 2026
ea820d3
client: report one terminal cause, after everything that is still owed
KyrylR Nov 18, 2026
245ddf2
reliability: do not lose or misdate delivery outcomes in the retry task
KyrylR Nov 18, 2026
a7fd7c9
tests: tighten the client, handshake and relay tests
KyrylR Nov 18, 2026
f6b85e0
spec: specify roles, proposal binding, teardown, acks and replay bound
KyrylR Nov 18, 2026
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
501 changes: 495 additions & 6 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[workspace]
resolver = "3"
members = [
"crates/core",
"crates/relay"
"crates/*",
]

[workspace.package]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Relay implementation of the Web-to-Wallet communications protocol, as described
Currently repository contains these crates:

- [core](./crates/core/) -- core types which are shared between client and relay;
- [client](./crates/client/) -- client implementation of the relay protocol;
- [relay](./crates/relay/) -- relay server implementation.

## Relay deployment
Expand Down
42 changes: 42 additions & 0 deletions crates/client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[package]
name = "wallet-session-client"
version = "0.1.0"
edition = "2024"
description = "Client implementation of the wallet-session relay protocol"
license = "MIT"
repository = "https://github.com/BlockstreamResearch/wallet-session"

[dependencies]
wallet-session-core = { path = "../core", version = "0.1.0" }

tokio = { version = "1.53.1", features = [
"rt-multi-thread",
"macros",
"net",
"sync",
"time",
] }
tokio-tungstenite = { version = "0.30.0", features = ["rustls-tls-webpki-roots"] }
# tokio-tungstenite's rustls support does not pick a CryptoProvider. Enabling
# `ring` here gives rustls exactly one provider feature; `tls` installs it.
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
futures-util = "0.3.34"
url = "2"
getrandom = "0.4"
sha2 = "0.11.0"
chacha20poly1305 = { version = "0.11.0", features = ["zeroize"] }
ed25519-dalek = "3.0.0"
x25519-dalek = { version = "3.0.0", features = ["getrandom"] }
hkdf = "0.13.0"

serde.workspace = true
serde_json.workspace = true
serde_urlencoded = "0.7"
thiserror.workspace = true
log = "0.4"
zeroize = { version = "1", features = ["derive"] }

[dev-dependencies]
wallet-session-relay = { path = "../relay" }
env_logger = "0.11"
tokio = { version = "1.53.1", features = ["test-util"] }
Loading