From f38949615fdb552a320d7da17c5baa7c506f40f0 Mon Sep 17 00:00:00 2001 From: Karolin Varner Date: Thu, 14 Aug 2025 16:57:20 +0200 Subject: [PATCH] feat(whitepaper): Move protocol code figure higher in white paper --- papers/whitepaper.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/papers/whitepaper.md b/papers/whitepaper.md index 2665fb6..9eead96 100644 --- a/papers/whitepaper.md +++ b/papers/whitepaper.md @@ -392,6 +392,13 @@ These variables are used after the handshake terminates for encryption of the \t * `txkt` – Peer's transmission key * `txnt` – Peer's transmission nonce +## Protocol Code {#functions} + +The main reference for how messages are processed in the Rosenpass protocol can be found in Fig. \ref{img:HandlingCode}. The figure uses Rust-like pseudo code. + +\setupimage{landscape,fullpage,label=img:HandlingCode} +![Rosenpass Message Handling Code](graphics/rosenpass-wp-message-handling-code-rgb.svg) + ## Helper Functions {#functions} Given the peer ID, look up the peer and load the peer's variables. @@ -1144,6 +1151,3 @@ PR: [#142](https://github.com/rosenpass/rosenpass/pull/142) - Added section "Denial of Service Mitigation and Cookies", and modify "Dealing with Packet Loss" for DoS cookie mechanism \printbibliography - -\setupimage{landscape,fullpage,label=img:HandlingCode} -![Rosenpass Message Handling Code](graphics/rosenpass-wp-message-handling-code-rgb.svg)