contact-tracing
This crate implements the apple/google proximity contact tracing.
The version of this implementation is the initial reference spec from April 2020.
Broadcast Example
To broadcast one needs a tracing key and the rolling proximity identifier (RPI) for a given time. The RPI is normally created from the daily tracing key but there is a shortcut to derive it automatically:
use ;
let tkey = unique;
let rpi = for_now;
Infection Checking Example
Infection checking uses the daily tracing keys directly:
use ;
// normally these would come from the internet somewhere
let tkey = unique;
let dtkey = for_today;
for in dtkey.iter_rpis.enumerate