Skip to content

Contract: Add is_session_key_active view function #214

@wheval

Description

@wheval

Contract: Add is_session_key_active view function

Description:
Consumers currently need custom logic to evaluate session key active status.

Context:
A dedicated view simplifies SDK and UI state checks.

Requirements:

  • Add is_session_key_active(public_key) read function
  • Return false for missing or expired keys
  • Add tests for active, expired, and missing cases

Files to Modify:

  • contracts/account/src/lib.rs

Definition of Done:

  • Implementation is complete for this single task
  • Contract tests updated or added where needed
  • Existing contract tests remain green

Labels: security, Stellar Wave
Estimated Effort: 1 day
Priority: Medium


Questions or need help?** Join our Telegram community

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programcontractsmart contract related worksecurity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions