Skip to content

Settle a shielded identity create proven to have its inputs consumed #6136

Open

Description

@romchornyi

Context

#5853 reports ShieldedIdentityCreateInputsConsumed (FFI 91) for an identity create from the shielded pool (Type 20) only from the foreground result wait, when proven reads at the node that holds the create show every nullifier spent and the identity absent. It leaves the notes, the recovery record and the activity row as for an unconfirmed create. Settling the create from the proven outcome was cut from #5853.

Still open

  • Notes and recovery record. After a 91 they are left for the scan. Settling them from the proven outcome (notes spent, record retired) needs a receipt that the host persisted that exact changeset. Depends on Shielded sync: recover a rejected persistence round before publishing later watermarks #5695.
  • A create whose outcome was never learnt (after a restart, or when the foreground reads prove nothing): a scan confirms its activity row from the output notes Platform's paid failure path still appends (UnshieldTransitionAction with the create's notes), so a failed create reads Confirmed.
  • Redrive: a Type-20 re-broadcast answered NullifierAlreadySpent is read as executed.
  • Padded create: a create with one real input and a dummy, whose real input is spent by another transition, reads CannotExecute(InputUsed), which the probe judges unknown. (A paid failure of a padded create spends the dummy nullifier too and already reports 91.)

Design constraints found in #5853's review rounds

  1. The recovery record is the sole authority for a dispatched create from dispatch to retirement. Scanning and anchor pruning supply evidence; they do not retire it.
  2. The node a create may be read at is a durable dispatch decision: a candidate node, an uncertain send and a node that holds the create are different states.
  3. Retirement needs a receipt that the host persisted that exact changeset (activity row and spent notes).

Smaller points (not blocking)

  • A scoped dispatch's failure does not ban the node in the shared address list.
  • Node selection for Type-20 dispatches lives in the wallet rather than in rs-dapi-client.
  • No test checks that reads go only to the kept node; the mock DAPI does not route by address.

Start from a short design note.

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