TCN Protocol

The Temporary Contact Numbers Protocol, or TCN Protocol, is an open source, decentralized, anonymous exposure alert protocol developed by Covid Watch[1] in response to the COVID-19 pandemic.[5][6][7][8] The Covid Watch team, started as an independent research collaboration between Stanford University and the University of Waterloo was the first in the world to publish a white paper,[9] develop,[3] and open source[10] fully anonymous Bluetooth exposure alert technology in collaboration with CoEpi[2] after writing a blog post[11] on the topic in early March.

Temporary Contact Numbers Protocol
Developed byTCN Coalition, incl. Covid Watch[1] and CoEpi[2]
IntroducedMarch 17, 2020 (2020-03-17)[3]
IndustryExposure Notification
Physical range~10 m (33 ft)[4]
Websitetcn-coalition.org

Covid Watch's TCN Protocol received significant news coverage[12] and was followed by similar decentralized protocols in early April 2020 like DP-3T, PACT,[13] and Google/Apple Exposure Notification framework. Covid Watch then helped other groups like the TCN Coalition and MIT SafePaths[14] implement the TCN Protocol within their open source projects to further the development of decentralized technology and foster global interoperability of contact tracing and exposure alerting apps, a key aspect of achieving widespread adoption.[15] Covid Watch volunteers and nonprofit staff also built a fully open source mobile app for sending anonymous exposure alerts first using the TCN Protocol[16] and later using the very similar Google/Apple Exposure Notification Framework (ENF).[17][18]

The protocol, like BlueTrace and the Google / Apple contact tracing project, use Bluetooth Low Energy to track and log encounters with other users.[19][20][21] The major distinction between TCN and protocols like BlueTrace is the fact the central reporting server never has access to contact logs nor is it responsible for processing and informing clients of contact.[22][23] Because contact logs are never transmitted to third parties, it has major privacy benefits over approaches like the one used in BlueTrace.[24][25][26] This approach however, by its very nature, does not allow for human-in-the-loop reporting, potentially leading to false positives if the reports are not verified by public health agencies.[19]:p. 6

The TCN protocol received notoriety as one of the first widely released digital contact tracing protocols[15][27][28] alongside BlueTrace,[29] the Exposure Notification framework, and the Pan-European Privacy-Preserving Proximity Tracing (PEPP-PT) project.[30][31] It also stood out for its incorporation of blockchain technology,[32][33] and its influence over the Google/Apple project.[34][20][35][36][37]

Overview

The TCN protocol works off the basis of Temporary Contact Numbers (TCN), semi-random identifiers derived from a seed.[38] When two clients encounter each other, a unique TCN is generated, exchanged, and then locally stored in a contact log.[39] Then, once a user tests positive for infection, a report is sent to a central server. Each client on the network then collects the reports from the server and independently checks their local contact logs for a TCN contained in the report. If a matching TCN is found, then the user has come in close contact with an infected patient, and is warned by the client. Since each device locally verifies contact logs, and thus contact logs are never transmitted to third parties, the central reporting server cannot by itself ascertain the identity or contact log of any client in the network. This is in contrast to competing protocols like BlueTrace, where the central reporting server receives and processes client contact logs.[40]

Temporary contact numbers

The entire protocol is based on the principle of temporary contact numbers (TCN), a unique and anonymous 128-bit identifier generated deterministically from a seed value on a client device. TCNs are used to identify people with which a user has come in contact, and the seed is used to compactly report infection to a central reporting server. TCN reports are authenticated to be genuine by a secret held only by the client.

Generation

To generate a TCN, first a report authorization key (RAK) and report verification key (RVK) are created as the signing and verification keys of a signature scheme (RAK-RVK pair). In the reference implementation this pair is created using the Ed25519 signature scheme.[41]:line. 13 Then, using the RAK an initial temporary contact key (TCK) is generated using the algorithm , where is the SHA-256 hash function as . This TCK is not used to generate any TCNs, but is used in the next TCK; where all future TCKs are calculated using the algorithm . A 128 bit TCN is then generated from a given TCK using the algorithm , where formats a supplied number as a little endian unsigned 2 byte integer,[42] and is the SHA-256 hash function as . The following diagram demonstrates the key derivation process:

TCNs are unique to each device encounter, and RAK-RVK pairs are cycled at regular intervals to allow a client to report only specific periods of contact.

Reporting

When a client wishes to submit a report for the TCN indices to , it structures the report as . A signature is then calculated using the RAK, and it is transmitted to the server as .

Because any given TCK can only be used to derive an equal or higher indexed TCNs, by submitting no encounters prior to can be calculated. However, there is no upper limit to encounters calculated using the same RAK-RVK pair, which is why they are cycled often. To prevent clients calculating unused TCNs, indicates the last TCN index generated with the given RVK.[43]:lines. 49–61 Additionally, since the RVK is used to calculate a TCK, and is provided, no valid TCNs in the reporting period can be derived from an illegitimate report. The only correct TCN calculable from a mismatched RVK and is , the TCN before the start of the reporting period.

Once a report is received, clients individually recalculate TCKs and TCNs for a given period using the original algorithms:

This is used by client devices to check their local contact logs for potential encounters with the infected patient, but has the dual benefit of verifying reports since false reports will never produce matching TCNs.

Memo

In the report structure, the memo is a space for freeform messages that differ between TCN implementations. The section is between 2 and 257 bytes, and made up of a tag identifying the specific implementation, as well as a data and data length pair. It is formatted as . The data is standardized for different tags, and can be as follows:

Tag Data standard
0x0 CoEpi symptom report v1
0x1 Covid Watch test result v1
0x2 ito report v1
0x3-0xfe Allocated for future official TCN apps or versions
0xff Reserved (can be used to add more than 256 types later)

Technical specification

The protocol can be divided into two responsibilities: an encounter between two devices running TCN apps, and the notification of potential infection to users that came in contact with a patient. For the purposes of this specification, these areas are named the encounter handshake, and infection reporting. The encounter handshake runs on Bluetooth LE and defines how two devices acknowledge each other's presence. The infection reporting is built on HTTPS and defines how infection notices are distributed among clients.

Encounter handshake

When two devices come within range of each other, they exchange a handshake containing TCNs. In order to achieve this the encounter handshake operates in two modes (both with two sub-modes), broadcast oriented and connection oriented. Broadcast oriented operates using the modes broadcaster and observer, while connection oriented operates using peripheral and central. The two modes are used to circumvent certain device limitations, particularly in regard to iOS restrictions in place before version 13.4.[44] In both modes the protocol is identified with the 16 bit UUID 0xC019.

In broadcast mode, a broadcaster advertises a 16-byte TCN using the service data field of the advertisement data. The observer reads the TCN from this field. In connection-oriented mode, the peripheral advertises using the UUID. The service exposes a read and writeable packet for sharing TCNs. After sharing a TCN, the central disconnects from the peripheral.

Infection reporting

When a user tests positive for infection, they upload a signed report, allowing the past 14 days of encounters to be calculated, to a central server. On a regular basis, client devices download reports from the server and check their local contact logs using the verification algorithm. If there is a matching record, the app notifies the user to potential infection.

TCN Coalition

On 5 April 2020, the global TCN Coalition was founded by Covid Watch and other groups that had coalesced around what was essentially the same approach and largely overlapping protocols, with the goal to reduce fragmentation, and enable global interoperability of tracing and alerting apps, a key aspect of achieving widespread adoption.[45] The TCN Coalition also helped establish the Data Rights for Digital Contact Tracing and Alerting framework, which functions as a bill of rights for users of such apps.[46]

Currently the protocol is used by TCN Coalition members CoEpi[47][48] and Covid Watch,[49][22] and was likely a source of inspiration for the similar Google / Apple contact tracing project.[36][35]

See also

References

  1. "Covid Watch". Covid Watch. 2020-02-19. Retrieved 2020-06-02.
  2. "CoEpi website". CoEpi. 2020-03-17. Retrieved 2020-03-17.
  3. "First implementation of anonymous exposure alert protocol". GitHub. Retrieved 2020-03-17.
  4. Sponås, Jon Gunnar. "Things You Should Know About Bluetooth Range". blog.nordicsemi.com. Retrieved 2020-04-18.
  5. University, Stanford (2020-04-09). "Stanford researchers help develop privacy-focused coronavirus alert app". Stanford News. Retrieved 2020-04-22.
  6. "One victim of COVID-19 pandemic may be privacy rights". JapanTimes. 2020-03-31. Retrieved 2020-03-31.
  7. "What privacy-preserving coronavirus tracing apps need to succeed". VentureBeat. 2020-04-13. Retrieved 2020-04-18.
  8. Shendruk, Amrita Khalid, Amanda (16 April 2020). "How Bluetooth could bring digital contact tracing for Covid-19 to billions". Quartz. Retrieved 2020-04-19.
  9. "Covid Watch White Paper". Covid Watch. 2020-03-20. Retrieved 2020-03-20.
  10. "Covid Watch Github". Github. 2020-03-17. Retrieved 2020-03-17.
  11. "Covid Watch Bluetooth Primer Blog Post". Internet Archive. 2020-03-07. Archived from the original on 2020-04-10. Retrieved 2020-03-07.
  12. "Covid Watch News Coverage". Covid Watch. 2020-06-02. Retrieved 2020-06-02.
  13. "First MIT PACT paper" (PDF). PACT MIT. 2020-04-08. Archived from the original on 2020-04-09. Retrieved 2020-04-08.
  14. "Bluetooth signals from your smartphone could automate Covid-19 contact tracing while preserving privacy". MIT News. 2020-04-08. Retrieved 2020-04-08.
  15. "Initial TCN Coalition commit · TCNCoalition/TCN@1b68b92". GitHub. Retrieved 2020-04-18.
  16. "Covid Watch open source iOS TCN app". Github. 2020-03-17. Retrieved 2020-03-17.
  17. "Covid Watch iOS G/A EN Github Repo". Github. 2020-06-02. Retrieved 2020-06-02.
  18. "Covid Watch Github Repo". Github. 2020-03-07. Retrieved 2020-03-07.
  19. Jason Bay, Joel Kek, Alvin Tan, Chai Sheng Hau, Lai Yongquan, Janice Tan, Tang Anh Quy. "BlueTrace: A privacy-preserving protocol for community-driven contact tracing across borders" (PDF). Government Technology Agency. Retrieved 2020-04-12.{{cite web}}: CS1 maint: multiple names: authors list (link)
  20. "Is Apple and Google's Covid-19 Contact Tracing a Privacy Risk?". Wired. ISSN 1059-1028. Retrieved 2020-04-18.
  21. "ZCash Privacy Preserving Contact Tracing App on Blockchain the Temporary Contact Number TCN Coalition". Cryptocurrency News - TCAT. 2020-04-12. Retrieved 2020-04-18.
  22. TCNCoalition/TCN, TCN Coalition, 2020-04-18, retrieved 2020-04-18
  23. "The PACT protocol specification" (PDF). PACT MIT. Retrieved 2020-04-23.
  24. "Aisshwarya Tiwar: COVID-19: Zcash (ZEC) and TCN Developing Privacy-Preserving Contact Tracing App | IoT Council". www.theinternetofthings.eu. Retrieved 2020-04-19.
  25. Nabben, Kelsie (2020-04-14). Trustless Approaches to Digital Infrastructure in the Crisis of COVID-19.
  26. Lorenz Cuno Klopfenstein, Saverio Delpriori, Gian Marco Di Francesco, Riccardo Maldini, Brendan Dominic Paolini, Alessandro Bogliolo (2020). Digital Ariadne: Citizen Empowerment for Epidemic Control. arXiv:2004.07717. Bibcode:2020arXiv200407717C.{{cite book}}: CS1 maint: uses authors parameter (link)
  27. "Stanford researchers help develop privacy-focused coronavirus alert app". techxplore.com. Retrieved 2020-04-19.
  28. "Will Smartphones Help Us Keep COVID-19 Under Control?". www.news.gatech.edu. Retrieved 2020-04-20.
  29. "Singapore launches TraceTogether mobile app to boost COVID-19 contact tracing efforts". CNA. Retrieved 2020-04-20.
  30. "COVID-19 Apps and Websites - The "Pan-European Privacy Preserving Proximity Tracing Initiative" and Guidance by Supervisory Authorities". Inside Privacy. 2020-04-02. Retrieved 2020-04-20.
  31. Valence, Henry de (6 April 2020). "Private Contact Tracing Protocols Compared: DP-3T and CEN". The Zcash Foundation. Retrieved 2020-04-22.
  32. "ZCash Privacy Preserving Contact Tracing App on Blockchain the Temporary Contact Number TCN Coalition". Cryptocurrency News - TCAT. 2020-04-12. Retrieved 2020-04-19.
  33. "Contact tracing app on the Zcash blockchain platform underway". Cryptopolitan. Retrieved 2020-04-19.
  34. "Demonstrating 15 contact tracing and other tools built to mitigate the impact of COVID-19". TechCrunch. Retrieved 2020-10-31.
  35. "Apple and Google partner on Covid-19 contact tracing technology | Hacker News". news.ycombinator.com. Retrieved 2020-04-20.
  36. "Covid Watch Celebrates Apple and Google's COVID-19 Contact Tracing Announcement". www.covid-watch.org. Retrieved 2020-04-18.
  37. "Contact Tracing in the Real World | Light Blue Touchpaper". Retrieved 2020-04-20.
  38. "Temporary Contact Number based Contact Tracing". lucumr.pocoo.org. Retrieved 2020-04-19.
  39. "Protecting Lives & Liberty: How Contact Tracing Can Foil COVID-19 & Big Brother". ncase.me. Retrieved 2020-04-19.
  40. Liauw, 🇸🇬 Frank (2020-04-09). "TraceTogether: under the hood". Medium. Retrieved 2020-04-18.
  41. "TCNCoalition/TCN/src/keys.rs". GitHub. Retrieved 2020-04-19.
  42. "nom::le_u16 - Rust". docs.rs. Retrieved 2020-04-18.
  43. "TCNCoalition/tcn-client-android/src/main/java/org/tcncoalition/tcnclient/TcnKeys.kt". GitHub. Retrieved 2020-04-19.
  44. "r/iOSBeta - [Feature] IOS 13.4 beta enables BLE long range support (iPhone 11/11 Pro only)". reddit. Retrieved 2020-04-18.
  45. "TCN Coalition · A Global Coalition for Privacy-First Digital Contact Tracing Protocols to Fight COVID-19". tcn-coalition.org. Retrieved 2020-04-16.
  46. Reed <questions@dcta-datarights.org>, Harper. "Data Rights for Digital Contact Tracing and Alerting · Overview". dcta-datarights.com. Retrieved 2020-04-16.
  47. News, Mirage (2020-04-15). "Will Smartphones Help Us Keep COVID-19 Under Control? | Mirage News". www.miragenews.com. Retrieved 2020-04-19. {{cite web}}: |last= has generic name (help)
  48. Co-Epi/app-android, CoEpi, 2020-04-19, retrieved 2020-04-19
  49. "Covid Watch". www.covid-watch.org. Retrieved 2020-04-19.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.