From 7bc14fd52954054f687f558f40da40838aeed3e3 Mon Sep 17 00:00:00 2001 From: "kristen@oreilly.com" Date: Mon, 15 Nov 2021 07:31:25 -0800 Subject: [PATCH] Edited 14_encrypted_transport.asciidoc with Atlas code editor --- 14_encrypted_transport.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14_encrypted_transport.asciidoc b/14_encrypted_transport.asciidoc index fb24009..5b0b82e 100644 --- a/14_encrypted_transport.asciidoc +++ b/14_encrypted_transport.asciidoc @@ -494,7 +494,6 @@ Where `s` is the static public key of the initiator. 3. `se = ECDH(s.priv, re)` + Where `re` is the ephemeral public key of the responder. -[role="pagebreak-before"] 4. `ck, temp_k3 = HKDF(ck, se)` + The final intermediate shared secret is mixed into the running chaining key. @@ -583,6 +582,7 @@ total maximum packet length of pass:[2 + 16 + 65,535 + 16 = 65,569] ====== Encrypting and sending messages +[role="pagebreak-after"] To encrypt and send a Lightning message (`m`) to the network stream, given a sending key (`sk`) and a nonce (`sn`), the following steps are completed: