Skip to content

Atomic multi-operation batching with one passkey approval #277

Description

@Miracle656

Background

Today each action is a separate tx + passkey prompt. Composing several operations (approve + swap, or multi-send) into one signed transaction improves UX and atomicity.

What to build

A batch() API that collects multiple Soroban invocations into a single transaction, builds one auth payload, and gathers a single passkey assertion covering all auth contexts.

Key files

  • sdk/src/useInvisibleWallet.ts
  • contracts/invisible_wallet/src/lib.rs (verify multi-context __check_auth)

Acceptance criteria

  • Multiple ops succeed/fail atomically
  • One passkey assertion authorizes all contexts
  • Test: partial-failure rolls back the whole batch

Drips Wave · Complexity: Advanced · 200 points


Required: Before submitting, join the contributor Telegram so your work can be tracked and counted toward the Stellar Wave: https://t.me/+fxHXq8f1SwlkZDBk

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions