PersonalDataIO / CoronaRiskScoring

4 stars 2 forks source link

Where are the keys stored in SwissCovid ? #13

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 SwissCovid.

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

To the best of our ability, we think the TEKs are stored at URLs of the shape https://www.pt.bfs.admin.ch/v1/gaen/exposed/{timestamp of day at midnight in GMT}.

[EDIT: confirmed with https://www.pt.bfs.admin.ch/v1/gaen/exposed/1592611200000 ]

pdehaye commented 4 years ago

There is a lot of unexpected stuff going on with SwissCovid configuration, see here.