Admin address.
fn get_admin(env: soroban_sdk::Env) -> Option
Initialize the registry. Can only be called once.
fn initialize(env: soroban_sdk::Env, admin: soroban_sdk::Address)
Total certificates issued.
fn get_cert_count(env: soroban_sdk::Env) -> u64
Returns the full certificate record, or panics if not found.
fn get_certificate(env: soroban_sdk::Env, wallet: soroban_sdk::Address) -> Certificate
Issue a certificate for a wallet. Only admin can call. Returns the new certificate ID.
fn issue_certificate(
env: soroban_sdk::Env,
wallet: soroban_sdk::Address,
course_id: u32,
) -> u64
Revoke a certificate. Only admin can call.
fn revoke_certificate(env: soroban_sdk::Env, wallet: soroban_sdk::Address)
Returns true if wallet has a valid certificate for the given course.
fn verify_certificate(
env: soroban_sdk::Env,
wallet: soroban_sdk::Address,
course_id: u32,
) -> bool