sdk-face

Prove it's you: before a protected credential (for example a national ID card) is shared, the holder looks into the front camera, blinks or smiles, and the face is matched with the credential's own photo. The face match with the ID photo occurs only on the device.

Getting started in Android Studio

  1. Add implementation("com.wallet.sdk:sdk-face:<version>") and click Sync Now.

  2. Copy models/facenet_512.tflite from the SDK zip into app/src/main/assets/.

  3. Turn it on where you create the SDK:

val model = FaceModel.fromBytes(assets.open(FaceModel.FILE_NAME).use { it.readBytes() })
val sdk = Wallet.createWallet(
issuer, trustedVerifiers, credentialTypes,
shareGuard = FaceShareGuard(FaceCheckPolicy(docTypes = setOf("org.iso.23220.photoid.1")), model),
)

Guide: /wallet/prove-its-you/.

Packages

Link copied to clipboard
common

FaceShareGuard (the check), FaceCheckPolicy (which credentials, how much liveness, the match bar), FaceModel (the model file) and FaceCheckHost (only for apps that draw their own screens on iOS).