Revoke a user's KYC credential. Only the contract owner may call this.
fn revoke(
env: soroban_sdk::Env,
user: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
Register a user's KYC credential by verifying their ZK proof on-chain via the verifier contract.
fn register(
env: soroban_sdk::Env,
user: soroban_sdk::Address,
proof: soroban_sdk::Bytes,
public_inputs: soroban_sdk::Bytes,
commitment: soroban_sdk::BytesN<32>,
nullifier: soroban_sdk::BytesN<32>,
min_age_secs: u64,
) -> Result<(), soroban_sdk::Error>
Initialize the registry with an owner, the verifier contract, and the SBT contract.
fn initialize(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
verifier_contract: soroban_sdk::Address,
sbt_contract: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
Check whether a user has a verified and active KYC credential.
fn is_verified(env: soroban_sdk::Env, user: soroban_sdk::Address) -> bool