Contract df7f46dbbaec68a4cf5c3e38658b4b6a6d620d86e869dd18c97b621600697faf

← Back to Index 📥 Download WASM

Meta

rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.91.0

Instances

  • CAD4CDLQTSIP5PPPZZNFLUTEZFUN5ANCL4TO4VATCBGOKN6Z4TRNNCO4
  • CAJUK7K5PUZX3UAG2P5F5S7FIR4XCFNEHAMWBBTZFQNWIZSDHCTYG4SQ
  • CD3DE3KCFJVEZIVULAG2JOLNT2IOKLGHITHK62XU7XPQUIHNKCRABGOI
  • CDQIETONRUHLITDWN625IMFEA7RRMFZSMEHIYDO3L4FQ7SBMLCDVDK2Z

Interface

Immediately pauses the account.

Any authorized guardian may trigger a pause to protect the account.

fn pause(
    env: soroban_sdk::Env,
    guardian: soroban_sdk::Address,
) -> Result<(), AccountError>
fn migrate(env: soroban_sdk::Env) -> Result<(), AccountError>

Removes the paused state after account authentication and guardian approval.

fn unpause(env: soroban_sdk::Env) -> Result<(), AccountError>

Returns whether the account is currently paused.

fn is_paused(env: soroban_sdk::Env) -> bool

Returns the factory contract address.

fn get_factory(env: soroban_sdk::Env) -> Option

Returns the currently registered passkey.

fn get_passkey(env: soroban_sdk::Env) -> Option>
fn get_session(
    env: soroban_sdk::Env,
    policy_id: soroban_sdk::BytesN<32>,
) -> Option

Soroban authentication entrypoint.

Verifies owner or session authorization and validates the execution context for authenticated invocations.

fn __check_auth(
    env: soroban_sdk::Env,
    signature_payload: soroban_sdk::BytesN<32>,
    signature: AccountAuth,
    auth_contexts: soroban_sdk::Vec,
) -> Result<(), AccountError>

Adds a new guardian to the account.

fn add_guardian(
    env: soroban_sdk::Env,
    guardian: soroban_sdk::Address,
) -> Result<(), AccountError>

Initializes a newly deployed account.

Validates the configured owner authentication methods, verifies passkey proof of possession when present, validates and authorizes the Stellar signer when present, verifies and aggregates the guardian BLS keys, validates the guardian configuration, and stores the initial account state.

fn __constructor(
    env: soroban_sdk::Env,
    challenge: soroban_sdk::BytesN<32>,
    passkey: Option>,
    passkey_sig: Option,
    rpid_hash: Option>,
    stellar_signer: Option>,
    stellar_address: Option,
    evm_signer: Option>,
    evm_sig: Option,
    bls_keys_pop: soroban_sdk::Vec,
    guardians: soroban_sdk::Vec,
    wasm_hash: soroban_sdk::BytesN<32>,
    factory: soroban_sdk::Address,
) -> Result<(), AccountError>
fn create_session(
    env: soroban_sdk::Env,
    input: SessionPolicyInput,
    delegate_pop: soroban_sdk::BytesN<64>,
) -> Result, AccountError>
fn revoke_session(
    env: soroban_sdk::Env,
    policy_id: soroban_sdk::BytesN<32>,
) -> Result<(), AccountError>
fn rotate_account(
    env: soroban_sdk::Env,
    new_signer: AccountSigner,
    live_until_ledger: u32,
) -> Result

Guardian approval to resume account activity.

fn approve_unpause(
    env: soroban_sdk::Env,
    guardian: soroban_sdk::Address,
) -> Result<(), AccountError>
fn recover_account(
    env: soroban_sdk::Env,
    new_signer: AccountSigner,
    recovery_signature: BlsSignature,
    live_until_ledger: u32,
) -> Result
fn revoke_all_sessions(env: soroban_sdk::Env) -> Result

Returns whether migration is required and the target WASM hash.

fn get_migration_required(
    env: soroban_sdk::Env,
) -> (bool, Option>)

Completes a previously scheduled guardian removal.

fn finalize_guardian_removal(
    env: soroban_sdk::Env,
    guardian: soroban_sdk::Address,
) -> Result<(), AccountError>

Removal is delayed to provide a safety window.

fn schedule_guardian_removal(
    env: soroban_sdk::Env,
    guardian: soroban_sdk::Address,
) -> Result<(), AccountError>

Imports

WebAssembly Text (WAT) ▶