Skip to main content

CX contact tracing

Project description

CX contact tracing

libcx provides a Python abstraction for the data formats and operations defined by the CX contact tracing architecture.

import libcx

# Construct a Preseed Value and Preseed Key Pair
preseed = libcx.Preseed.value(libcx.CX_GEN_AES_128_CTR_2048)
key = libcx.Preseed.key()

# Construct a Seed Calculator
seedcalc = libcx.SeedCalculator(libcx.CX_GEN_AES_128_CTR_2048, preseed, key)

# Construct a Generator
gen = seedcalc.generator

# Construct a list of Contact Identifiers
ids = list(gen)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libcx-0.0.4.tar.gz (900.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page