Skip to content

feat(cast): add Tempo wallet session create and revoke commands#14978

Merged
mattsse merged 11 commits into
foundry-rs:masterfrom
0xKarl98:session
May 30, 2026
Merged

feat(cast): add Tempo wallet session create and revoke commands#14978
mattsse merged 11 commits into
foundry-rs:masterfrom
0xKarl98:session

Conversation

@0xKarl98

Copy link
Copy Markdown
Contributor

Adds the focused create/revoke-local layer needed to mint a temporary session key, bind it to a constrained authorization policy, validate the signed authorization, and persist it for later --tempo.session use.

  • Add cast wallet session create

    • generates a temporary secp256k1 session key
    • parses expiry, call scope, and spend limits
    • builds a SessionAuthorizationRequest
    • signs the authorization with the root wallet
    • validates the signed authorization against the session policy
    • stores the active session entry in the local session registry
  • Add cast wallet session revoke

    • Just removes a local session entry by session id

@0xKarl98 0xKarl98 changed the title Session feat(cast): add Tempo wallet session create and revoke commands May 30, 2026

@mattsse mattsse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@0xKarl98 0xKarl98 enabled auto-merge (squash) May 30, 2026 11:14
@mattsse mattsse disabled auto-merge May 30, 2026 11:29
@mattsse mattsse merged commit e27ccc5 into foundry-rs:master May 30, 2026
19 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Foundry May 30, 2026
@0xKarl98 0xKarl98 deleted the session branch May 30, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants