Skip to main content

Module biometric

Module biometric 

Source
Expand description

Biometric enrolments on the redb biometric_enrolments table.

One row per device, keyed by the enrolment id its client minted. The whole Enrolment is serde-json, blobs included: the bytes are the client’s wrapped secrets, stored and returned unchanged and never decoded here.

Re-exportsΒ§

use anyhow::Context; πŸ”’
use redb::ReadableTable; πŸ”’
use redb::TableDefinition; πŸ”’
use uuid::Uuid; πŸ”’
use super::Db; πŸ”’
use crate::biometric::Enrolment; πŸ”’

ConstantsΒ§

ENROLMENTS πŸ”’

FunctionsΒ§

get πŸ”’
The enrolment id names, or None when no row carries it.
list πŸ”’
Every stored enrolment.
put πŸ”’
Write one device’s enrolment, replacing any prior row with the same id.
remove πŸ”’
Remove the enrolment id names. Returns whether a row was there.