fix timestamp compare

This commit is contained in:
swrup 2026-02-27 22:44:49 +01:00 committed by Swrup
parent 8ded7676d4
commit 6bba30e6be
6 changed files with 15 additions and 22 deletions

View file

@ -19,4 +19,5 @@ let verify_exchange_signing_key_validity ~key sk =
}
let is_valid_at ~timestamp sk =
Timestamp.geq sk.stamp_start timestamp && Timestamp.lt timestamp sk.stamp_end
Timestamp.compare sk.stamp_start timestamp <= 0
&& Timestamp.compare timestamp sk.stamp_end < 0