For External Services
Verify Identity Attestations
Check on-chain attestation status for any Zassport user. External services can use this to verify user credentials without accessing private data.
API Integration
External services can verify attestations directly on Solana. Here's how to integrate:
1. Derive Identity PDA
const [identityPDA] = PublicKey.findProgramAddressSync(
[Buffer.from('identity'), userPubkey.toBuffer()],
PROGRAM_ID
);2. Fetch Account Data
const accountInfo = await connection.getAccountInfo(identityPDA); // Parse the account data to get attestation flags
3. Check Attestation Status
// Account data includes: // - age_verified: bool // - nationality_verified: bool // - is_revoked: bool
Program ID: FR6XtcALdJfPRTLzSyhjt5fJ1eoYsEn8kq4vcGAkd8WQ