Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Overview

The ZCAM1 SDK provides React Native components and hooks for capturing, proving, and verifying authenticated photos using hardware-backed cryptography and zero-knowledge proofs.

Installation

npm install @succinctlabs/react-native-zcam1

Actions

ActionDescription
Capture Actions
initCaptureInitialize device keys and attestation for photo capture
ZCameraReact component for capturing C2PA-signed photos
takePhotoCapture a photo with hardware-backed signatures
previewFilePreview any file using iOS native viewer
startVideoRecordingStart recording a video with C2PA signing
stopVideoRecordingStop recording and get finalized file with metadata
getSwitchOverZoomFactorsGet zoom factors where physical lenses switch
Prove Actions
ProverProviderReact context provider for proof generation
useProverHook to access the proving client
requestProofRequest ZK proof generation for a photo
getProofStatusCheck the status of a proof request
useProofRequestStatusHook to poll proof request status
embedProofEmbed a generated proof into a photo
waitAndEmbedProofRequest, wait for, and embed proof in one step
Verify Actions
VerifiableFileClass for verifying C2PA manifests and ZK proofs
verifyBindingsVerify hardware-backed bindings in a C2PA manifest
verifyProofVerify zero-knowledge proof in a C2PA manifest
dataHashGet the content hash from a C2PA manifest
captureMetadataGet capture metadata from a C2PA manifest
Picker Actions
ZImagePickerReact component for picking photos with authenticity badges
privateDirectoryGet the path to the app's private document directory
authenticityStatusCheck the authenticity status of a photo

Type References