From 749616548cde42d3dbe9177dba6abc0ef304e7e0 Mon Sep 17 00:00:00 2001 From: beltram Date: Wed, 20 Dec 2023 16:55:55 +0100 Subject: [PATCH] fix: 'VerifiableUpdateLeafNode' was not using the right 'TreeInfoTbs' internally. It does not change anything since this was used only for signature purposes and the TLS serialization of this is untagged --- openmls/src/treesync/node/leaf_node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmls/src/treesync/node/leaf_node.rs b/openmls/src/treesync/node/leaf_node.rs index 54334d9cae..c66b0b0fb0 100644 --- a/openmls/src/treesync/node/leaf_node.rs +++ b/openmls/src/treesync/node/leaf_node.rs @@ -834,7 +834,7 @@ impl Verifiable for VerifiableUpdateLeafNode { fn unsigned_payload(&self) -> Result, tls_codec::Error> { LeafNodeTbs { payload: self.payload.clone(), - tree_info_tbs: TreeInfoTbs::Commit(self.tree_position.clone()), + tree_info_tbs: TreeInfoTbs::Update(self.tree_position.clone()), } .tls_serialize_detached() }