Skip to content

feat: add OWS wallet support for TempoAccount#100

Open
kevarifin14 wants to merge 1 commit intotempoxyz:mainfrom
kevarifin14:feat/ows-signer
Open

feat: add OWS wallet support for TempoAccount#100
kevarifin14 wants to merge 1 commit intotempoxyz:mainfrom
kevarifin14:feat/ows-signer

Conversation

@kevarifin14
Copy link

@kevarifin14 kevarifin14 commented Mar 26, 2026

Summary

Adds TempoAccount.from_ows(wallet_name) — creates a Tempo account by decrypting the signing key from an OWS encrypted vault.

Usage

# Before: raw key in code or env var
account = TempoAccount.from_key("0x...")
account = TempoAccount.from_env("TEMPO_PRIVATE_KEY")

# After: key stays encrypted until needed
account = TempoAccount.from_ows("my-wallet")

Install with OWS extra: pip install pympp[ows]

Changes

File What
pyproject.toml Added ows optional dependency (open-wallet-standard>=1.0.0)
src/mpp/methods/tempo/account.py Added from_ows() classmethod

No changes to existing code paths. The OWS import is lazy (inside the method).

Adds `TempoAccount.from_ows(wallet_name)` — creates a Tempo account
by decrypting the signing key from an OWS encrypted vault.

Requires: pip install open-wallet-standard

Usage:
  account = TempoAccount.from_ows("my-wallet")
  method = tempo(account=account, rpc_url="https://rpc.tempo.xyz")
@kevarifin14
Copy link
Author

Note: ows is added as an optional extra to match the existing pattern (tempo, server, mcp). Happy to make it a regular dependency if the team prefers OWS as a first-party integration.

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