Skip to content

Add wallet-level CheckProofState cleanup and Restore recovery (NUT-07, NUT-09) #152

Description

@Amperstrand

Problem

Client endpoints exist for CheckProofState (NUT-07) and Restore (NUT-09) but the Wallet type doesn't expose methods for:

  1. Checking and cleaning up spent proofs
  2. Recovering orphaned signatures after crash

Fix

  • Wallet.CheckAndRemoveSpentProofs() — batch check proofs, delete SPENT ones
  • Wallet.Restore() — regenerate blinded messages, batch restore (25/batch per Nutshell)

References

Nutshell Python: wallet.invalidate(), wallet.restore_tokens_for_keyset()

Discovered by

TollGate ecosystem audit (July 2026).

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions