Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
5b3087d
trystero: the port to Trystero 0.27.0 starts from its vectors, record…
Nov 21, 2026
c1cbd6a
trystero: topics are 0.27.0's, the base64url SHA-256 of a JSON path, …
Nov 21, 2026
07c19ee
trystero: topic paths use the library's one JSON string writer, and t…
Nov 21, 2026
a5136d3
trystero: ids are unbiased base62, relays are 0.27.0's list in its se…
Nov 21, 2026
93fc181
trystero: Task 3's review fixes: formatting, uuid and relay-slice cases
Nov 21, 2026
8d39024
trystero: a room's keys are 0.27.0's, SHA-256 without a password and …
Nov 21, 2026
1a8d3a6
trystero: a room auth token with a seq beyond 2^53 - 1 is refused, no…
Nov 21, 2026
6578725
trystero: signals are sealed as 0.27.0 seals them, AES-256-GCM with a…
Nov 21, 2026
356a474
trystero: a room's keys come from webcpp::hash, PBKDF2 off the room's…
Nov 21, 2026
38d82e4
trystero: a room that leaves or an app that ends while its keys deriv…
Nov 21, 2026
8393122
trystero: Nostr is 0.27.0's, a signer per room over webcpp::crypto, k…
Nov 21, 2026
fbc66a1
trystero: Task 7's review fixes: topics subscribed self first, a reop…
Nov 21, 2026
19278ed
trystero: the action wire is version 3, with wide bulk frames, proven…
Nov 21, 2026
38d087f
trystero: Task 8's review fixes: the drain sends after it walks the p…
Nov 21, 2026
25ee703
trystero: listeners are added with on_ and return a subscription, as …
Nov 21, 2026
487c99e
trystero: Task 9's review fixes: a progress emission holds its room, …
Nov 21, 2026
29253af
trystero: a room reports 0.27.0's error codes through on_error, each …
Nov 21, 2026
ea6f2d1
trystero: Task 10's review fixes: handshake_failed reads 0.27.0's mes…
Nov 21, 2026
90af58d
trystero: a room knows its users and their peers, and sends to either
Nov 22, 2026
b4b87e9
trystero: Task 11's review fixes: a peer's user comes from a detail s…
Nov 22, 2026
ab50657
trystero: relays go offline and online on request, and the options 0.…
Nov 22, 2026
5c7f578
trystero: Task 12's review fixes: the native interop peer compiles ag…
Nov 22, 2026
9741f9b
trystero: the library wipes its secrets with its own wipe, and no lon…
Nov 22, 2026
1994bf2
trystero: the pages say what Phase 1 of the port to 0.27.0 changed
Nov 22, 2026
ebf1d84
trystero: the final review's fixes: the app wipes its copy of the pas…
Nov 22, 2026
8e53872
trystero: the PBKDF2 case of the platform backend says what it observ…
Nov 22, 2026
42e37dc
trystero: room_test qualifies every call of its virtual clock's advan…
Nov 22, 2026
60604bc
trystero: the library passes webcpp's lint: long functions split into…
Nov 22, 2026
4ed621c
trystero: the signaling test's harness says what its strategy's stop …
Nov 22, 2026
11ed315
trystero: a domain tag writes its version into the caller's resource,…
Nov 22, 2026
7ed2933
trystero: each room has its own connection to each peer, as 0.27.0's …
Nov 22, 2026
32a5ca2
trystero: a platform channel closes on a message that is no frame, as…
Nov 22, 2026
67026d7
trystero: the handshake is 0.27.0's frame and timer, and the password…
Nov 22, 2026
d88ada4
trystero: the Nostr signer's key comes from webcpp::crypto's secp256k…
Nov 22, 2026
ef73e00
trystero: tighten the handshake tests onto the virtual clock, test th…
Nov 22, 2026
ebbf4a2
trystero: a transfer is sent in wide chunks to a peer whose connectio…
Nov 22, 2026
b4cd1a3
trystero: the platform backend reads the transport's max message size…
Nov 22, 2026
bd69bee
trystero: the guide's paragraph on wide chunks keeps to the line width
Nov 22, 2026
82ae74a
trystero: an app's peer id and user id derive from its P-256 endpoint…
Nov 22, 2026
a01ebfc
trystero: every P-256 key call of the app sits behind identity.hpp's …
Nov 22, 2026
93c0774
trystero: verified keys and signatures are cached per app within 0.27…
Nov 22, 2026
bef2a7f
trystero: the identity cache takes its verifier as a test seam, so it…
Nov 22, 2026
5cf21db
trystero: room_test waits on the virtual clock and the wall-clock wai…
Nov 22, 2026
b77e7e7
trystero: the remaining memory-backend tests no longer fail on a load…
Nov 22, 2026
f1f34f7
trystero: the dual-signature handshake's messages and transcript are …
Nov 22, 2026
3f6c5b0
trystero: the handshake tests prove each signature apart and refuse a…
Nov 22, 2026
a51b60d
trystero: a peer joins a room only after the dual-signature handshake…
Nov 22, 2026
c819ca3
trystero: the handshake tests prove a pending peer exchanges no user …
Nov 22, 2026
76c4799
trystero: a room bounds its users with max_users, counted by verified…
Nov 22, 2026
8ea1c8e
trystero: the refusal flush, the refused-answer branch and both dial …
Nov 22, 2026
362d129
trystero: a room reports peer_error, banned and every relay's failed …
Nov 22, 2026
44da7af
trystero: relay_failed carries its cause's text, the bool send is doc…
Nov 22, 2026
ab94a1d
trystero: the oracle is Trystero 0.27.0, the recorder proves its publ…
Nov 23, 2026
3fdda0b
trystero: a signal is refused wherever 0.27.0's parseSignalEnvelope r…
Nov 23, 2026
09be4cd
trystero: C++ peers meet Trystero 0.27.0 peers in Chrome and in a pro…
Nov 23, 2026
3f88b1c
trystero: the interop scenarios assert what they name, with either si…
Nov 23, 2026
00a8b3b
trystero: the pages say what the port to Trystero 0.27.0 is, whole, a…
Nov 23, 2026
09f45aa
trystero: the flood scenario scales its bounds by the offer_ttl windo…
Nov 23, 2026
114e557
trystero: a connection a full room refuses at its open lets the peer …
Nov 23, 2026
fecb710
trystero: the headers pass webcpp's lint: no move assignment of a std…
Nov 23, 2026
24672d3
trystero: the tests and the interop peers pass webcpp's lint and MSVC…
Nov 23, 2026
0d1387e
trystero: the Doc Comments escape their action names and name no refe…
Nov 23, 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
519 changes: 273 additions & 246 deletions AGENTS.md

Large diffs are not rendered by default.

216 changes: 137 additions & 79 deletions README.md

Large diffs are not rendered by default.

39 changes: 32 additions & 7 deletions build.jam
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@

project /webcpp/trystero ;

# libsecp256k1 (every room) is webcpp's build of it, /third_party//secp256k1:
# v0.8.0 from the submodule third_party/libs/secp256k1, with the tables the
# feature webcpp-secp256k1-tables chooses (small on emscripten, large natively;
# Hashes are webcpp::hash's and the ciphers, MACs and keys of every room
# webcpp::crypto's: the endpoint and user keys and their ECDSA signatures are
# its P-256, /webcpp/crypto//p256-default, BearSSL on every target. Its
# secp256k1 backend, /webcpp/crypto//secp256k1-default,
# is webcpp's build of libsecp256k1 (v0.8.0 from the submodule
# third_party/libs/secp256k1), with the tables the feature
# webcpp-secp256k1-tables chooses (small on emscripten, large natively;
# CODING-GUIDELINES.md chapter 5). WebRTC is webcpp::webrtc's, whose native
# libdatachannel and its OpenSSL are pinned source dependencies, built
# together for the consumer's B2 variant.
import errors ;
import feature ;

# The platform backend's own dependencies, checked only when a target that
# uses it is built: natively its WebRTC, libdatachannel's through
Expand Down Expand Up @@ -47,14 +52,34 @@ rule platform-dependencies ( properties * )
#
# trystero is parts and that list. parts, the same headers and dependencies
# without it, is for a program of a part that parses no JSON, as trystero's
# tests of the timer, a relay's URL, a page's calls and the sealer are
# (test/Jamfile): such a program has none of the parser's functions, and
# Binaryen warns of a pattern of the list that names none.
# tests of the timer, a relay's URL and a page's calls are (test/Jamfile):
# such a program has none of the parser's functions, and Binaryen warns of a
# pattern of the list that names none.
path-constant WEBCPP_TRYSTERO_ROOT : . ;

# The rooms' AES-GCM: webcpp::crypto's default for the target,
# /webcpp/crypto//gcm-default, except in the reference (doc/Jamfile), where it
# is BearSSL, Emscripten's default. The reference reads the headers for
# Emscripten's target with a native toolset, whose gcm-default is OpenSSL,
# which webcpp::crypto refuses on Emscripten. The feature is incidental, since
# it changes no object a dependency builds, and propagated, so that the rooms
# see it.
feature.feature webcpp-trystero-reference : on : optional incidental propagated ;
rule rooms-gcm ( properties * )
{
if <webcpp-trystero-reference>on in $(properties)
{
return <library>/third_party//bearssl ;
}
return <library>/webcpp/crypto//gcm-default ;
}

# tag::trystero[]
alias parts : :
: : <include>include <library>/boost//headers <library>/webcpp/document//document
<library>/webcpp/config//config <library>/webcpp/asio//asio <library>/third_party//secp256k1 ;
<library>/webcpp/config//config <library>/webcpp/asio//asio <library>/webcpp/hash//hash
<library>/webcpp/crypto//crypto <conditional>@rooms-gcm
<library>/webcpp/crypto//secp256k1-default <library>/webcpp/crypto//p256-default ;
alias trystero : : : : <library>parts
<toolset>emscripten,<webcpp-suspend>asyncify:<linkflags>"-sASYNCIFY_REMOVE=@\"$(WEBCPP_TRYSTERO_ROOT)/asyncify-remove.json\""
;
Expand Down
6 changes: 4 additions & 2 deletions doc/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ webcpp.doc trystero : trystero.adoc ;
# webcpp::asio and webcpp::beast, their browser implementations there, so it
# parses with no configuration of Boost.Asio's (measured: the page builds
# without BOOST_ASIO_DISABLE_THREADS, which Boost.Beast over Boost.Asio
# needed).
# needed). The rooms' AES-GCM there is BearSSL, Emscripten's default, rather
# than the native default's OpenSSL, which webcpp::crypto refuses on
# Emscripten's target (<webcpp-trystero-reference>on, build.jam).
webcpp.reference trystero : <library>/webcpp/trystero//platform <threading>multi
<library>/webcpp//emscripten-reference ;
<library>/webcpp//emscripten-reference <webcpp-trystero-reference>on ;
11 changes: 7 additions & 4 deletions doc/acknowledgements.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@
== Acknowledgements

trystero ports the wire protocol of https://github.com/dmotz/trystero[Trystero]
0.26.0, Copyright (c) 2021 Dan Motzenbecker, so that its rooms are
0.27.0, Copyright (c) 2021 Dan Motzenbecker, so that its rooms are
Trystero's rooms. It was written with Trystero's source open: its protocol
constants, its message layouts, its default relays in their order, with the
shuffle that derives an app's relays from its id, and its default STUN
servers come from it. Trystero is distributed under the MIT License, whose
text and copyright notice are in `LICENSE-TRYSTERO.txt`, at the root of the
library, exactly as Trystero 0.26.0 ships them. That adds no licence to
library, exactly as Trystero 0.26.0 and 0.27.0 ship them. That adds no licence to
trystero's own code, which is under the Boost Software License alone.

The BIP-340 signatures of the Nostr events are
The ECDSA P-256 signatures of identities and handshakes are
https://bearssl.org/[BearSSL]'s, by Thomas Pornin, under the MIT License,
and the BIP-340 signatures of the Nostr events
https://github.com/bitcoin-core/secp256k1[libsecp256k1]'s, by the Bitcoin
Core contributors, under the MIT License. The platform backend's WebRTC is,
Core contributors, under the MIT License, both through webcpp::crypto. The
platform backend's WebRTC is,
natively, webcpp::webrtc's over
https://github.com/paullouisageneau/libdatachannel[libdatachannel], by
Paul-Louis Ageneau, under the Mozilla Public License 2.0.
Loading
Loading