Skip to content

Commit

Permalink
fix: 'VerifiableUpdateLeafNode' was not using the right 'TreeInfoTbs'…
Browse files Browse the repository at this point in the history
… internally. It does not change anything since this was used only for signature purposes and the TLS serialization of this is untagged
  • Loading branch information
beltram committed Dec 20, 2023
1 parent 49c6245 commit 843bb27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmls/src/treesync/node/leaf_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ impl Verifiable for VerifiableUpdateLeafNode {
fn unsigned_payload(&self) -> Result<Vec<u8>, 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()
}
Expand Down

0 comments on commit 843bb27

Please sign in to comment.