Herald Documentation

Documentation

Why Herald exists, how to get the code, and how to integrate Herald in to your mobile app.

Background

Herald is an open source Bluetooth Low Energy (BLE) based protocol licensed under the Apache-2.0 license for the reliable exchange of information between a range of mobile phones. Herald consists of a low-level BLE protocol, with a choice of data payloads. The Herald Envelope and Herald Secured payloads are examples for contact tracing applications that provide epidemiological information, individual privacy, ensure security, and allow international interoperability - even between ‘centralised’ and ‘decentralised’ contact tracing applications.

This site also details our low-level Bluetooth research findings. These include issues with distance estimation, Mobile phone hardware issues, and OS limitations.

The aim of this research is to provide a much more reliable way to perform local information interchange between mobile phones. This has many potential applications, including commercial use, but the key one we’re concerned with is the enable more reliable Bluetooth Proximity Detection to improve Contact Tracing applications worldwide in order to help stop the spread of COVID-19.

Our research has been split into several parts. We’ve also provided an independent introduction to mobile app based contact tracing and provide explanations of the key terminology of such a system. This aims to demystify the technology and increase public trust.

The remainder of this page breaks down the key areas of the documentation on this site.

Get the code or get involved

To see information on integrating Herald with your own application, please see the developer & integration guide.

For those wishing to contribute to Herald’s development, we also have a Contributor’s Guide.

You can get the code from one of the many Herald Project Repositories.

API documentation

You can see the latest API documentation and code coverage reports on the API Documentation page

Introduction to mobile app based contact tracing

A layman’s introduction to contact tracing and mobile app proximity detection.

Paper: Measuring the efficacy of mobile proximity protocols

A scientific paper suggestion a fair and independent approach to measuring the efficacy of a mobile phone based contact tracing protocol, providing a direct calculation of efficacy that can be used with the Oxford Risk Model to calculate the extent to which such an approach can control the spread of a virtus in a given population.

Comparing protocols: Formal testing

A list of results ourselves and others have calculated using our standardised testing method for various existing proximity protocols used for contact tracing today.

Herald Protocol: Low-level reliable bluetooth communication protocol

During our research on creating an efficacy measure we created the Herald Bluetooth LE protocol implementation to test the ideas. We found a welath of issues in Bluetooth on mobile phones, identified the issues, and workaround them in order to provide a robust communication protocol.

This low level protocol is independent of any information you pass over it. You could use it for contact tracing proximity detection, but also other uses within your own applications. This low-level protocol provides reliable communications between proximite mobile devices.

Herald Envelope & Secured payloads: Privacy preserving payloads that can counter hostile actors

We have created a design for a payload that not only preserves privacy, but also provides the right levels of epidemiological insight to prevent virus spread. We show this can be done in a way that ensures security of the contact tracing system, and can be trusted by people worldwide as they go about their lives. The protocol has international interoperability built in and prevents attack from hostile groups or state actors.

The protocol also supports other sample payloads. You can plug in your own for your specific application needs. See Custom Outer Payloads for details.

Bluetooth low level engineering discoveries

We found a lot of issues in mobile phone Bluetooth implementations and have worked around a great many of them. You can read about our Bluetooth discoveries and workarounds here.

Getting Started

To help you get started, see the documentation.