Skip to content

Commit

Permalink
PoE processing tweak in LTA time machine
Browse files Browse the repository at this point in the history
Ensure that PoEs are asserted at the reference time for all local
knowledge.
  • Loading branch information
MatthiasValvekens committed Oct 6, 2023
1 parent 3d8c8d4 commit e13f7c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyhanko/sign/validation/ades.py
Original file line number Diff line number Diff line change
Expand Up @@ -1859,8 +1859,7 @@ def _poes():
# at the current time, including all the prima facie ones gathered from
# the file. This simulates perfect record keeping without having to
# introduce extra timestamp tokens into the validation process.
for poe in orig_local_knowledge.known_poes:
yield dataclasses.replace(poe, poe_time=min(poe.poe_time, now))
yield from orig_local_knowledge.assert_existence_known_at(now)
yield from dss_knowledge.assert_existence_known_at(now)
for prima_facie_poe in prima_facie_poes:
for digest in prima_facie_poe.digests_covered:
Expand Down

0 comments on commit e13f7c1

Please sign in to comment.