PersonalDataIO / CoronaRiskScoring

4 stars 2 forks source link

Where are the keys stored in Immuni ? #14

Open pdehaye opened 4 years ago

pdehaye commented 4 years ago

The CoronaRiskScoring project is trying to assess how different contact tracing apps are being parametrized. For this purpose, we need to know how many TEKs get published per day, and their risk levels (all public information).

Project considered We are looking at Immuni.

What we need We need to have a procedure describing how to pull down the keys reliably.

Nice to have We would like to find in the code where this code is downloaded from, which is generally around func detectExposures(configuration: ENExposureConfiguration, diagnosisKeyURLs: [URL], completionHandler: @escaping ENDetectExposuresHandler) -> Progress in the iOS app.

Excellent to have Ideally we would have a little code snippet to run and pull down the necessary data, or a URL to do this directly.

pdehaye commented 4 years ago

https://get.immuni.gov.it/v1/keys/index https://get.immuni.gov.it/v1/keys/1 https://get.immuni.gov.it/v1/keys/2 https://get.immuni.gov.it/v1/keys/3

https://get.immuni.gov.it/v1/keys/8

mark-analyst commented 4 years ago

Is there any structure that might explain the numbering of the index?

pdehaye commented 4 years ago

The files roll over time (e.g. file number 9 stays only for some time). The index only tells you which files are current. What is unclear to me is when a new file gets created.