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 }