diff --git a/src/treekem.cpp b/src/treekem.cpp index b9cefa00..d164289d 100644 --- a/src/treekem.cpp +++ b/src/treekem.cpp @@ -914,7 +914,8 @@ TreeKEMPublicKey::parent_hashes( throw ProtocolError("Malformed UpdatePath"); } - // Parent hash for all the parents, starting from the root + // Parent hash for all the parents, starting from the last entry of the + // filtered direct path auto last_hash = bytes{}; auto ph = std::vector(dp.size()); for (int i = static_cast(dp.size()) - 1; i >= 0; i--) {