Skip to content

TODO: Implement proof_to_event_id mapping #27

@shroominic

Description

@shroominic

TODO Location

sixty_nuts/wallet.py:242

Priority

🟢 Low Priority - Code improvement

Current Code

@dataclass
class WalletState:
    """Current wallet state."""
    balance: int
    proofs: list[ProofDict]
    mint_keysets: dict[str, list[dict[str, str]]]  # mint_url -> keysets
    proof_to_event_id: dict[str, str] | None = (
        None  # proof_id -> event_id mapping (TODO)
    )

What needs to be done

  • Properly populate the proof_to_event_id mapping
  • Track which event each proof came from
  • Use for efficient proof management and rollover operations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions