Skip to content

feat: set MPP client ID for on-chain attribution#418

Merged
Slokh merged 5 commits intomainfrom
brendan/add-mpp-client-id
Apr 13, 2026
Merged

feat: set MPP client ID for on-chain attribution#418
Slokh merged 5 commits intomainfrom
brendan/add-mpp-client-id

Conversation

@decofe
Copy link
Copy Markdown
Member

@decofe decofe commented Apr 7, 2026

All TempoProvider instances now call .with_client_id("tempo-cli") so charge transactions carry a non-zero client fingerprint in the attribution memo (bytes 15–24), enabling on-chain tracking of CLI-originated payments.

Changes

  • Added CLIENT_ID constant ("tempo-cli") in charge.rs
  • Applied .with_client_id(CLIENT_ID) to all 4 TempoProvider::new call sites (initial charge, both provisioning retries, and zero-amount proof)

Testing

make check — all 477 tests pass, clippy/fmt/doc/typos clean.

Prompted by: brendan

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

✅ Changelog found on PR.

Edit changelog

decofe and others added 2 commits April 13, 2026 18:02
All TempoProvider instances now call .with_client_id("tempo-cli") so
charge transactions carry a non-zero client fingerprint in the
attribution memo, enabling on-chain tracking of CLI-originated payments.

Co-authored-by: Brendan Ryan <1572504+brendanjryan@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d69c7-d457-73dc-a808-fec1a25678f5
Changes CLIENT_ID from "tempo-cli" to "tempo-wallet" and adds an
integration test that verifies the keccak256("tempo-wallet") fingerprint
appears in the payment credential sent during the charge flow.

Also adds Authorization header capture to MockServer for test inspection.

Co-authored-by: Brendan Ryan <1572504+brendanjryan@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d69c7-d457-73dc-a808-fec1a25678f5
@Slokh Slokh enabled auto-merge (squash) April 13, 2026 22:09
@Slokh Slokh merged commit 2578e0a into main Apr 13, 2026
12 checks passed
@Slokh Slokh deleted the brendan/add-mpp-client-id branch April 13, 2026 22:11
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.

3 participants