Contract 43f848b9d5368c9ea23c06a559357b633487844a3df14fa519ee832e83dbf8aa

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.8#f46e9e0610213bbb72285566f9dd960ff96d03d8
rsver 1.88.0

Instances

  • CA2HXMQN26ICA5G3EYL3GHE7YKFVWJXSB3KVPG2D5DRDBOYFLSTMIPIP

Interface

fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)
fn __constructor(env: soroban_sdk::Env, signers: soroban_sdk::Vec)
fn add_signer(env: soroban_sdk::Env, signer: Signer) -> Result<(), soroban_sdk::Error>
fn update_signer(
    env: soroban_sdk::Env,
    signer: Signer,
) -> Result<(), soroban_sdk::Error>
fn revoke_signer(
    env: soroban_sdk::Env,
    signer_key: SignerKey,
) -> Result<(), soroban_sdk::Error>
fn is_deployed(env: soroban_sdk::Env) -> bool

Custom authorization function invoked by the Soroban runtime.

This function implements the account's authorization logic with optimizations for Stellar costs:

  1. Verifies that all provided signatures are cryptographically valid

  2. Checks that at least one authorized signer has approved each operation

  3. Ensures signers have the required permissions for the requested operations

Arguments

  • env - The contract environment
  • signature_payload - Hash of the data that was signed
  • auth_payloads - Map of signer keys to their signature proofs
  • auth_contexts - List of operations being authorized

Returns

  • Ok(()) if authorization succeeds
  • Err(Error) if authorization fails for any reason
fn __check_auth(
    env: soroban_sdk::Env,
    signature_payload: soroban_sdk::BytesN<32>,
    auth_payloads: SignatureProofs,
    auth_contexts: soroban_sdk::Vec,
) -> Result<(), soroban_sdk::Error>

Imports

WebAssembly Text (WAT) ▶