Contract 76d2ba826c1b5a7b6cc0aaebe058cc3ffc373c2171f90d63ebb7481a28f577bd

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.8#f46e9e0610213bbb72285566f9dd960ff96d03d8
rsver 1.90.0

Instances

  • CA6ZW2UWYV4Z4XARCQ66S2DCWEXPDZTMFNOK63FH2SAWXAIS56EGHGH5
  • CBUKS3OL6UEXA7GZJ3SRGYMR4VUWLHR4IUGQA6UGQFYCUMZU5UTS64KG
  • CCIXUEMFIKTWI3PKECOVIIS2KKU4EL7RM3NUHBQXIKOG7ROAMHGEOHIA

Interface

fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)
fn __constructor(
    env: soroban_sdk::Env,
    signers: soroban_sdk::Vec,
    plugins: 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 get_signer(
    env: soroban_sdk::Env,
    signer_key: SignerKey,
) -> Result
fn has_signer(
    env: soroban_sdk::Env,
    signer_key: SignerKey,
) -> Result
fn install_plugin(
    env: soroban_sdk::Env,
    plugin: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
fn uninstall_plugin(
    env: soroban_sdk::Env,
    plugin: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
fn is_plugin_installed(env: soroban_sdk::Env, plugin: soroban_sdk::Address) -> bool
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) ▶