Using audit endpoint
TomaszMolenda opened this issue · 3 comments
I have a problem with using endpoint /diagnosiskeys/audit/download/{date}/{batchTag}.
If some country uploads two set of keys in the same moment, this keys will be pushed to one batch tag. Afert that I download this batch I call audit endpoint and it serves me two autdits for the same country with different other data.
How I can validate downloaded EfgsProto.DiagnosisKeyBatch with downloaded AuditEntry?
You provided example code to using but this algorithm can't work with multiple audits from from the same country.
To validate the audits correctly, you have to use the amount in the audit response. You can find an example here:
This calculates the signature out of the given diagnosiskeys and compares it to the audit entries. This works also for multiple entries of the same country.
@TomaszMolenda do you have any further questions or can we close this issue?
@TomaszMolenda do you have any further questions or can we close this issue?
You can close it