Contract cc8fdfd7653c2a6cab47ea259c405677d36f68bbac0f8f5820c1150872901dba

← Back to Index 📥 Download WASM

Meta

cliver 23.4.1#a152ec2488c25136808ad28277c24b3a0765ffd4
rssdkver 23.4.0#673d6c4f2368d282d25da29bda55c21b8be69ca6
rsver 1.85.0

Instances

  • CCWCX2OIL3HTBR26JFQNZ6DPJ7PHKUZOCDWHHFXMK7K2LXDDS5D2HLB5

Interface

fn __constructor(env: soroban_sdk::Env)
fn register_app_ca(
    env: soroban_sdk::Env,
    app_address: soroban_sdk::Address,
    member_pubkey: soroban_sdk::BytesN<32>,
    app_kind: AppKind,
    fingerprint: soroban_sdk::BytesN<32>,
    pubkey_alg: soroban_sdk::String,
    expires_at: u64,
    nonce: u64,
    auth_payload: soroban_sdk::Bytes,
    auth_signature: soroban_sdk::BytesN<64>,
)
fn rotate_app_ca(
    env: soroban_sdk::Env,
    app_address: soroban_sdk::Address,
    new_fingerprint: soroban_sdk::BytesN<32>,
    new_expires_at: u64,
    nonce: u64,
    auth_payload: soroban_sdk::Bytes,
    auth_signature: soroban_sdk::BytesN<64>,
)
fn revoke_by_app(env: soroban_sdk::Env, app_address: soroban_sdk::Address)
fn revoke_by_member(
    env: soroban_sdk::Env,
    app_address: soroban_sdk::Address,
    nonce: u64,
    auth_payload: soroban_sdk::Bytes,
    auth_signature: soroban_sdk::BytesN<64>,
)

Returns the stored record if present. The returned status is transitioned Active -> Expired at view time if expires_at <= now, so callers don't need to recompute. Storage is not mutated.

fn get_app_ca(
    env: soroban_sdk::Env,
    app_address: soroban_sdk::Address,
) -> Option

Fast trust check used by C2PA verifiers. True iff record exists, stored status is Active, now < expires_at, and fingerprint matches.

fn is_trusted(
    env: soroban_sdk::Env,
    app_address: soroban_sdk::Address,
    fingerprint: soroban_sdk::BytesN<32>,
) -> bool

Every app address ever registered under member_pubkey, including revoked ones. Callers filter via get_app_ca for active-only.

fn apps_of_member(
    env: soroban_sdk::Env,
    member_pubkey: soroban_sdk::BytesN<32>,
) -> soroban_sdk::Vec

All registered apps whose stored status is Active. Does not filter by expiry — that requires per-record reads, which callers can do selectively via is_trusted or get_app_ca.

fn list_active_apps(env: soroban_sdk::Env) -> soroban_sdk::Vec

Imports

WebAssembly Text (WAT) ▶