Skip to content

feat(platform-wallet-ffi): report the built outpoint of an external top-up before it is sent #6347

Backlog

Description

@romchornyi

The external identity top-up export (platform_wallet_top_up_external_identity_with_funding_signer, #5931) observes the built asset-lock outpoint only for its return value. The Rust wallet already calls on_built before persisting or broadcasting the lock, but the FFI does not forward it, so a host learns the outpoint only after the proof wait and submission return.

If the process dies in between, the lock row survives (recipient included) and is recoverable, but the app cannot match it to its own payment request — e.g. two equal payments to the same identity.

Proposal: an additive callback-capable export that forwards the existing on_built observer, as the other funding exports do; then forward it from the Swift wrapper (topUpExternalIdentityWithFunding, #6139) and the Kotlin port (#5933).

Raised in #6139 (comment).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions