libcontrac
A library for contact tracing
|
libcontrac is an implementation of the Apple/Google Contact Tracing API.
See the draft specs: https://www.apple.com/covid19/contacttracing/
If you have autoconf you can install as follows.
Include header files.
Most of the functionality is managed through the opaque Contrac
structure.
Create and initialise the structure as follows. The update call updates the Daily Tracing Key and Rolling Proximity Identifier based on the current time.
Get the Rolling Proximity Identifier for broadcast in Bluetooth beacons.
Get the Daily Tracing Key to upload to a Diagnosis Server in case of a positive test result.
Add RPIs captured via Bluetooth to an RPI list.
Construct a list of DTKs using data downloaded from a Diagnosis Server.
Having collected these two lists any matches can be tested for as follows.
Finally, clean up.