Skip to main content

Crate taceo_oprf_key_gen

Crate taceo_oprf_key_gen 

Source
Expand description

This crate provides the OPRF key generation functionality for TACEO:OPRF.

It implements a service that listens for OPRF key generation events of the OprfKeyRegistry and participates in the distributed key generation protocol to generate and register OPRF keys. The generated keys are stored securely using the provided SecretManagerService. From there, they can be fetched by the OPRF nodes that handle OPRF requests.

For details on the OPRF protocol, see the design document.

Modules§

config
Configuration types for a TACEO:OPRF key-gen instance.
metrics
Metrics definitions for the OPRF service.
secret_manager
Secret manager interface for OPRF nodes.

Structs§

KeyGenTasks
The tasks spawned by the key-gen library. Should call KeyGenTasks::join when shutting down for graceful shutdown.
StartedServices
A struct that keeps track of the health of all async services started by the service.

Enums§

Environment
The environment the service is running in.

Functions§

start
Starts the OPRF key generation service and spawns all required background tasks. Additionally, returns an axum::Router exposing basic service endpoints.