dir-spec says extra-info-digest has one digest but the code has two
dir-spec.txt says
"extra-info-digest" digest NL
[At most once]
"Digest" is a hex-encoded digest (using upper-case characters) of the
router's extra-info document, as signed in the router's extra-info
(that is, not including the signature). (If this field is absent, the
router is not uploading a corresponding extra-info document.)
But the reality is that these lines look like
extra-info-digest 9A0DC5BE9F00423F1929B10E9FEF7942481215AB HjMoC57FJUUXJ7Gwv/ouFb+otnZIfxu9cj1sh6Nd618
It looks like that second digest is a sha256, and it is related to the introduction of the extra_info_digest256 element in routerinfo_t.
I'm guessing the fix is to update the spec -- and maybe figure out what went wrong in the earlier proposal and ticket process that updating the spec got skipped. :)