Skip to content

Shielded-invite claim: persist a pending-claim record so single-note interrupted claims can recover deterministically #4275

Open

Description

@bfoss765

Context

#4204's claim-recovery hardening (post b6992a5dbc) requires two independent proofs before recovery reports an interrupted shielded-invite claim as successful: the nullifier-derived identity ID AND an on-chain MASTER auth key-hash match. Each proof alone is forgeable (chargeable-failure collision case; published-nullifier ID derivation), so this is correct.

Residual: single-note claims have a non-re-derivable identity ID — the builder pads to two actions with a RANDOM nullifier, and the ID derives over the published (padded) set. So for the most common invite shape, an interrupted claim (process death between broadcast and confirmation) cannot auto-reconcile: retry returns a terminal already-claimed state instead of recovering. The note is spent; resolution today is manual (reissue an invite).

Required fix (dedicated PR once #4204 merges)

Persist a local pending-claim record BEFORE broadcasting the identity-create transition:

  • the full transition (or enough to reconstruct: derived identity ID, padded nullifier set, key hashes, asset-lock proof reference)
  • written durably before broadcast; marked consumed on confirmed success; consulted by recovery FIRST

Recovery then completes deterministically from our own record — including single-note claims — rather than inferring from chain state. The two-proof predicate stays as the fallback for records lost to uninstall/restore.

Why not in #4204

Deliberate scope call (2026-08-03): invites are required for the mainnet release, but the interrupted-claim window is seconds wide and #4204's review momentum matters more; the two security fixes land now, this closes the remaining gap in its own reviewable PR.

Refs: #4204, the one_time_claim_evidence_tests module, operations.rs::recovered_identity_matches_claim.

Activity

  1. bfoss765 commented on Aug 17, 2026

    @bfoss765
    CollaboratorAuthor

    Implemented — in #4313 (the shielded-invite PR this issue anticipated), not as a separate PR:

    • Durable pending-claim record, armed under a store-level claim admission before broadcast (arm_redrive_under_claim), so a single-note interrupted claim resumes deterministically instead of depending on the non-re-derivable padded-nullifier identity id.
    • Resume is bound to the stored transition (847f0a15): a resumed claim must match the stored keys and DIP-9 identity slot — a mismatch is a typed refusal, closing the record-adoption hole.
    • Total ordering vs destructive lifecycle: claims take a lease, clear/unregister install a barrier and refuse to purge an armed record while its claim is live (41cf07a3), and an in-flight claim renews its lease on a heartbeat so a long broadcast can't outlive its protection (6931c747).

    Closing when #4313 merges (leaving open until then so the tracker reflects reality).

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