@canton-vc/kyc-provider
v0.3.0
Published
Generic KycProvider interface for canton-vc — vendor-agnostic contract for KYC sessions, decisions, and webhooks. Implemented by adapter packages (@canton-vc/adapter-didit, …) so issuers can swap providers without touching the credential pipeline.
Maintainers
Readme
@canton-vc/kyc-provider
Generic KycProvider interface for canton-vc — the vendor-agnostic contract that issuer pipelines depend on, so the choice of KYC vendor stays a one-line constructor swap.
Implemented by:
@canton-vc/adapter-didit@canton-vc/adapter-sumsub@canton-vc/adapter-persona@canton-vc/adapter-mock(dev/test)
import type { KycProvider, KycDecision, KycSession } from '@canton-vc/kyc-provider';
const kyc: KycProvider = new DiditAdapter({ /* config */ });
const session = await kyc.startSession({ userRef: 'user-123' });
const decision = await kyc.fetchDecision(session.sessionId);See the canton-vc repository for the full integration story.
License
Apache 2.0 — see LICENSE.
