KYC
Overview
KYC_ATTESTATION_ID // 4User Flow
Backend Verification
const result = await verifier.verify(
4, // KYC
proof,
publicSignals,
userContextData
);Notes
Last updated
Self supports a KYC document type for identity verification.
KYC is represented in verification payloads as attestation ID 4.
In @selfxyz/core, this ID is exported as KYC_ATTESTATION_ID:
KYC_ATTESTATION_ID // 4User selects kyc as document type in the Self app.
App starts the KYC verification flow using an access token from the TEE service.
After completion, verification is finalized asynchronously (websocket/push).
The app stores the resulting KYC attestation and can generate disclose proofs.
Backend verification uses the same SelfBackendVerifier.verify(...) API:
const result = await verifier.verify(
4, // KYC
proof,
publicSignals,
userContextData
);You can allow all document types with AllIds, or allow KYC explicitly in your allowedIds map.
KYC is integrated into the same V2 proof and verification stack used by other document types.
Existing disclosure fields and config checks (age, OFAC, country restrictions) continue to apply through the standard verifier interfaces.
Last updated