8000 Tags · keypo-us/keypo-cli · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

v0.4.7

Toggle v0.4.7's commit message
v0.4.7: fix Keychain permission prompts for session commands

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.4.6

Toggle v0.4.6's commit message
v0.4.6: add example commands to --help text for all CLI commands

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.4.5

Toggle v0.4.5's commit message
v0.4.5: vault sessions — scoped, time-limited secret access for agent…

… workflows

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.4.4

Toggle v0.4.4's commit message
v0.4.4: Keychain-backed storage, Touch ID fix, backup rotation UX

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.4.3

Toggle v0.4.3's commit message
v0.4.3: graceful vault init on headless devices, auto-detect default …

…tier

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

openclaw-v0.1.0

Toggle openclaw-v0.1.0's commit message
v0.4.3: graceful vault init on headless devices, auto-detect default …

…tier

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.4.2

Toggle v0.4.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v0.4.2: ship .app bundle for iCloud Keychain backup (#10)

* feat: add keypo-pay Tempo wallet (Phases 1-3)

New Rust CLI wallet for Tempo blockchain using Secure Enclave P-256 keys.
Implements root-key architecture with wallet creation, RLP transaction
encoding, P-256/Keychain signature formatting, and on-chain transaction
submission. Successfully tested on Tempo moderato testnet (chain 42431)
with confirmed TIP-20 transfers.

Phases complete:
- Phase 1: project skeleton, config, address derivation, signer integration
- Phase 2: RLP encoding, transaction construction, signature formatting
- Phase 3: RPC integration, transaction submission, receipt polling

On-chain evidence (Tempo moderato testnet):
- Wallet: 0x67F6450c522A33EA9762fa9CF4B2081613c73Ed0
- TX 1: 0xc392258739e0292a285aaf1778deb3bb117955700e6487978c83e3ec6fd2e066
- TX 2: 0xcae2a57c9df7827e596108dba68508dd6d79c27ed41cc69c04fa5600c5b9ac2e

61 tests passing, clippy clean.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: add access key management (Phase 4)

Implements full access key lifecycle: create, authorize on-chain with
spending limits, list with on-chain status, info with remaining limits,
revoke, update-limit, and delete commands.

Key technical discoveries during implementation:
- Tempo RLP field order differs from spec: fee_payer_signature comes
  before aa_authorization_list, key_authorization is truly trailing
- SignedKeyAuthorization is a nested RLP: [KeyAuthorization_list, sig_bytes]
- Keychain V2 (type 0x04) required post-T1C hardfork: access key signs
  keccak256(0x04 || sig_hash || user_address) for domain separation
- pathUSD uses 6 decimals (not 18), now queried on-chain
- Signing hash includes key_authorization when present

On-chain evidence (Tempo moderato testnet):
- Authorization TX: 0xfe5a6c77d93320c33d4d51e6058549f6958f0646f55183f9405611342028cc71
- Access key transfer: 0x3cd5ceb5c5d36a29045e9789b88bef59027fefbb5d3647b943542615e1016c57
- Spending limit verified: 0.10 -> 0.089033 pathUSD after transfer

78 tests passing, clippy clean.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: add token operations and high-level send command (Phase 5)

Adds `send`, `balance`, and `token` CLI commands for TIP-20 token
operations. The `send` command requires --key (access key with spending
limits) or --use-root-key (bypasses limits). Balance queries show all
tokens or a specific one. Token address book supports add/remove/list.

New module: token.rs with query_balance, query_decimals, parse/format
amount helpers. All amounts correctly handle 6-decimal tokens (pathUSD).

On-chain evidence (Tempo moderato testnet):
- Access key transfer: 0xeef9a153dfc7975e5228eda59cfcf425eb8aa9ff8b0c58db9d92e0a159bd3145
- Root key transfer (0.15, bypasses limits): 0x77a54f87da05d6a5f9135af30404e96e0065e3b9d6b917c95dab602311f1c8a4

92 tests passing, clippy clean.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: add MPP charge flow client and pay command (Phase 6)

Implements the Machine Payments Protocol (MPP) charge flow for Tempo:
- Parse 402 WWW-Authenticate challenge (base64url-encoded request JSON)
- Submit TIP-20 transfer on-chain using access key
- Build Authorization credential with tx hash proof
- Retry request with Payment credential header
- Parse Payment-Receipt from success response

Session support deferred per plan. The charge flow handles the
complete 402 -> pay -> retry -> receipt lifecycle.

New: mpp.rs module, `pay` CLI command, base64 dependency.
6 unit tests for challenge parsing, credential building, receipt parsing.

99 tests passing, clippy clean.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: add CLAUDE.md and polish error handling (Phase 7)

Adds project-specific CLAUDE.md documenting Tempo protocol details,
RLP field order, signature formats, Keychain V2 signing, token decimals,
and conventions discovered during implementation.

Improves error handling: validates access key name before network calls
in `send` command (T7.6), clear error messages for all T7 scenarios.

99 tests passing, clippy clean. All 7 phases complete.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: add README and ARCHITECTURE for keypo-pay

README includes high-level overview, step-by-step getting started guide
covering wallet creation, funding, access key setup, token transfers,
MPP payments, and full CLI reference.

ARCHITECTURE covers system overview diagram, root+access key model,
transaction and authorization flows, Tempo type 0x76 format, signature
formats, MPP charge flow sequence, and module map.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: add wallet reset section, move architecture to docs/

Add "Resetting the Wallet" section to README with steps to delete
config, remove SE keys, and recreate. Move ARCHITECTURE.md to
docs/keypo-pay-architecture.md per project convention.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: add wallet reset command, handle existing SE keys gracefully

wallet create: if the Secure Enclave key already exists (e.g., config
was deleted but key remains), reuse it instead of failing. Shows a note
to the user.

wallet reset: new command that deletes all SE keys and config with a
confirmation prompt. Shows what will be deleted, warns about on-chain
access keys becoming unrevocable, requires typing 'reset' to confirm.

100 tests passing, clippy clean.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: increase gas limit for key authorization transactions

Authorization transactions require ~788K gas on testnet. Previous limit
of 500K was insufficient. Increased to 800K base + buffer.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: improve revert error messages with reason detection

When a transaction reverts, now attempts to extract the revert reason
from the receipt or by simulating the call via eth_call. Provides
human-readable messages for common errors:
- Spending limit exceeded: suggests checking with 'access-key info'
- Insufficient balance: suggests checking with 'keypo-pay balance'
- Unauthorized caller: explains only root key can perform the action

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: add pre-flight checks for balance and spending limits

Before submitting a transaction, the send command now checks:
- Token balance is sufficient for the transfer amount
- Access key is authorized on-chain (if using --key)
- Remaining spending limit covers the transfer amount

Fails fast with clear, actionable error messages instead of submitting
a transaction that will revert on-chain and waste gas.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: show descriptive Touch ID prompts for all signing operations

Pass --bio-reason to keypo-signer with context-specific messages:
- "Send 0.01 pathusd to 0x0001..." for transfers
- "Authorize access key 'shopping-agent' with spending limits"
- "Revoke access key 'shopping-agent'"
- "Update spending limit for 'agent-1': 25.00 pathusd"
- "Pay 10000 for https://api.example.com/resource" for MPP

The bio_reason is shown in the Touch ID dialog instead of the
generic "sign data" message.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: improve Touch ID prompts with human-readable details

- Authorize: "Authorize access key 'shopping-agent': 10.00 pathusd"
- Send: "Send 0.01 pathusd to 0x0000...0001" (address truncated)
- Revoke: "Revoke access key 'shopping-agent'"
- Update limit: "Update spending limit for 'agent-1': 25.00 pathusd"
- Remove raw address from authorization signing (was showing hex)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: pass bio_reason to authorization digest signing for descriptive Touch ID prompt

The first Touch ID prompt during access-key authorize (signing the
KeyAuthorization digest) was showing generic "sign data" text. Now passes
the descriptive reason through so both prompts show what's being approved.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* release: v0.4.2 — ship .app bundle for iCloud Keychain entitlements

Homebrew was installing the bare binary which lacks the provisioning
profile needed for iCloud Keychain sync. Release now ships the .app
bundle and Homebrew symlinks the binary from it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: add frontmatter to keypo-pay-architecture.md and link from CLAUDE.md

Fixes docs CI check: missing YAML frontmatter and orphan doc detection.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.4.1

Toggle v0.4.1's commit message
feat: suggest keypo.io/app for passphrase backup, bump to 0.4.1

Add keypo.io/app as the primary passphrase storage option in the CLI
warning box (BackupCommand, BackupResetCommand) and documentation
(READMEs, setup.md). Writing it down remains a valid alternative.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.4.0

Toggle v0.4.0's commit message
chore: bump version to 0.4.0

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.3.0

Toggle v0.3.0's commit message
chore: bump version to 0.3.0

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0