Skip to content

feat: add split credential lifecycle and Tempo API relay - #203

Draft
brendanjryan wants to merge 1 commit into
mainfrom
brendanjryan/tempo-api-relay
Draft

feat: add split credential lifecycle and Tempo API relay#203
brendanjryan wants to merge 1 commit into
mainfrom
brendanjryan/tempo-api-relay

Conversation

@brendanjryan

@brendanjryan brendanjryan commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Motivation

Servers need a non-mutating credential preflight separated from terminal payment execution, plus a first-party way to delegate Tempo charge validation and broadcast to the Tempo API relay.

Summary

  • add validation records and split validate / broadcast server lifecycle APIs
  • preserve legacy verify behavior while routing terminal operations through revalidation
  • add Tempo charge lifecycle hooks and a relay adapter for validate and broadcast endpoints
  • expose safe relay failure details and deterministic broadcast idempotency keys
  • add a FastAPI charge-relay example aligned with the mppx setup
  • expand lifecycle, binding, relay, replay, and error coverage

Key design considerations

  • validation is non-mutating; broadcast always invokes validation first
  • standalone lifecycle methods verify HMAC challenge binding, request identity, and expiry
  • relay failures remain opaque except for explicitly safe machine-readable codes
  • pull transactions and pushed transaction hashes share the same relay finalization path

@parvahuja
parvahuja force-pushed the brendanjryan/tempo-api-relay branch 2 times, most recently from ab6a35a to 012e71d Compare August 5, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant