From a68304ca99a355607eca846a306c577770adf073 Mon Sep 17 00:00:00 2001 From: Luther Blissett Date: Fri, 28 Oct 2022 23:54:52 +0200 Subject: [PATCH] x3dh: Fix remaining bug thanks to cronokirby's eagle vision. --- script/research/x3dh/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/research/x3dh/src/main.rs b/script/research/x3dh/src/main.rs index 7c2865cda..7c9dcd22d 100644 --- a/script/research/x3dh/src/main.rs +++ b/script/research/x3dh/src/main.rs @@ -102,7 +102,7 @@ impl MessageHeader { let mut ret = [0u8; 48]; ret[..32].copy_from_slice(&self.dh.to_bytes()); ret[32..40].copy_from_slice(&self.pn.to_le_bytes()); - ret[40..].copy_from_slice(&self.pn.to_le_bytes()); + ret[40..].copy_from_slice(&self.n.to_le_bytes()); ret }