Contract 4e86f27aa2eb3601e2692dd0ca69fde94dccdde2931e49884e8d5c95a15d8d9f

← Back to Index 📥 Download WASM

Meta

cliver 26.1.0#1228cff8022b804659750b94b315932b0e0f3f6a
rssdkver 26.1.0#175aa41306f383057a8cdfc84b68d931664fc34e
rsver 1.96.0

Instances

  • CC6AMLL24EQYNWHA2M6DFOKJH7LAPJ2TSYZGNPD7ITXH52K7E2BEE34S

Interface

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

Imports

WebAssembly Text (WAT) ▶