fix timestamp compare
This commit is contained in:
parent
8ded7676d4
commit
6bba30e6be
6 changed files with 15 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue