• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / libwallet / 24432220077
25%

Build:
DEFAULT BRANCH: master
Ran 15 Apr 2026 01:58AM UTC
Jobs 1
Files 79
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Apr 2026 01:49AM UTC coverage: 22.149% (+0.03%) from 22.119%
24432220077

push

github

MagicalTux
Sec-ClientId header for Crypto/WalletSign calls

The WalletSign backend identifies which wallet app a request came from
via the Sec-ClientId HTTP header — used to pick branded SMS / email
copy, apply per-app rate limits, and tag audit logs. libwallet had no
way to send it; every wallet embedding libwallet looked identical.

Added WalletInfo in wltwallet/clientid.go (ClientID + future Name +
Version fields) stored in a package atomic. withClientID(ctx) returns
a context whose Value(*http.Request) stamps Sec-ClientId onto the
request — the rest library calls that hook just before dispatching
(rest@v0.6.17 rest.go:165 `ctx.Value(r)`). Every Crypto/WalletSign:*
call site in remote.go + walletkey.go now wraps its context through
withClientID.

Endpoint: Info:setWalletInfo (generic so we can add more metadata
fields later without a new endpoint) + Info:getWalletInfo. Host calls
once at startup; no-op before that and no header is sent.

Dart:
- client.info.setWalletInfo(clientId:, name?, version?) — required
  clientId, optional name/version
- client.info.getWalletInfo() returns a typed WalletInfo
- WalletInfo exported from the barrel

No behavior change when the host doesn't call setWalletInfo — the
header just isn't sent, same as before.

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

17 of 47 new or added lines in 4 files covered. (36.17%)

1 existing line in 1 file now uncovered.

2109 of 9522 relevant lines covered (22.15%)

2.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
15
34.78
wltwallet/clientid.go
10
12.0
0.71% wltbase/info.go
4
36.96
0.0% wltwallet/remote.go
1
50.43
0.21% wltwallet/walletkey.go

Coverage Regressions

Lines Coverage ∆ File
1
12.0
0.71% wltbase/info.go
Jobs
ID Job ID Ran Files Coverage
1 24432220077.1 15 Apr 2026 01:58AM UTC 79
22.15
GitHub Action Run
Source Files on build 24432220077
  • Tree
  • List 79
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24432220077
  • 093a8487 on github
  • Prev Build on master (#24430961929)
  • Next Build on master (#24432467953)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc