dstotijn / ct-diag-server

Diagnosis server for Apple/Google's (COVID-19) Exposure Notification framework.
MIT License
61 stars 7 forks source link

Diagnosis Keys should just be treated as [16]byte, no UUID logic #13

Closed dstotijn closed 4 years ago

dstotijn commented 4 years ago

The crypto spec states that a Daily Tracing Key is 16 bytes, and that it's the (truncated) result of a HKDF. It makes no mention of UUID.

The type of diag.DiagnosisKey.Key should be changed to [16]byte, and the column diagnosis_keys.key should be changed to bytea.