Wire the registry to an admin and a deployed verifier contract.
fn initialize(
env: soroban_sdk::Env,
admin: soroban_sdk::Address,
verifier: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
Whether a commitment is whitelisted. Used by the lending pool.
fn is_eligible(env: soroban_sdk::Env, commitment: soroban_sdk::BytesN<32>) -> bool
Fetch the full identity record, if present.
fn get_identity(
env: soroban_sdk::Env,
commitment: soroban_sdk::BytesN<32>,
) -> Option
Admin: rotate the verifier contract address.
fn set_verifier(
env: soroban_sdk::Env,
verifier: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
Whether a nullifier has already been spent.
fn is_nullifier_used(env: soroban_sdk::Env, nullifier: soroban_sdk::BytesN<32>) -> bool
Register an anonymous identity.
fn register_identity(
env: soroban_sdk::Env,
commitment: soroban_sdk::BytesN<32>,
nullifier: soroban_sdk::BytesN<32>,
proof: soroban_sdk::Bytes,
public_inputs: soroban_sdk::Vec,
) -> Result<(), soroban_sdk::Error>