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

archetech / archon / 43070227725
95%

Build:
DEFAULT BRANCH: main
Ran 11 Nov 2026 05:52PM UTC
Jobs 1
Files 192
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

11 Nov 2026 05:39PM UTC coverage: 75.229% (+0.1%) from 75.092%
43070227725

push

github

web-flow
feat(drawbridge): accept Cashu as HTTP 402 payment (NUT-24) (#1598)

* feat(drawbridge): accept Cashu as HTTP 402 payment (NUT-24)

A priced request's 402 challenge now also carries X-Cashu, a NUT-18 payment
request for the price in sats at the node mint's public URL. A retry with an
X-Cashu cashuB token is checked (mint, unit, amount, no spending conditions),
redeemed through the node's own Keymaster into ARCHON_NODE_ID's Cashu wallet,
recorded as a cashu payment, and then served; Drawbridge holds no funds.

Each method is offered only when it can work: Lightning when the mediator
answers, Cashu while the node identity holds the node mint, checked at most
once a minute. Compose passes the node Keymaster's fixed internal URL, its
admin key and the node ID.

Part of #1596

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0168qihPEAixRXFC88BShBFd

* fix(drawbridge): redact X-Cashu, charge what a token brings in, share the readiness check

- Redact X-Cashu from request logs: a token refused before redemption is
  still spendable.
- Require what the node received from a token, net of spent proofs and the
  mint's fee, to cover the price before recording the payment or serving the
  request; the face value can overstate it.
- Share one in-flight readiness lookup between concurrent challenges.
- Report an unreachable Lightning mediator as LightningUnavailableError, so a
  ready Cashu payment still gets a Cashu-only challenge rather than a 500.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0168qihPEAixRXFC88BShBFd

* fix(drawbridge): bound the Cashu readiness probe and keep the admin key out of its log

- Give the readiness lookup a 5-second deadline: it runs before every unpaid
  challenge, so a stalled Keymaster must not hold up one Lightning could
  answer. A timeout counts as not ready.
- Log an unreachable Keymaster as a message and code only.... (continued)

5920 of 8756 branches covered (67.61%)

Branch coverage included in aggregate %.

121 of 122 new or added lines in 6 files covered. (99.18%)

14750 of 18720 relevant lines covered (78.79%)

12242.82 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
97.47
services/drawbridge/server/src/cashu-payment.ts
Jobs
ID Job ID Ran Files Coverage
1 43070227725.1 11 Nov 2026 05:52PM UTC 192
75.23
GitHub Action Run
Source Files on build 43070227725
  • Tree
  • List 192
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43070227725
  • 85eebf96 on github
  • Prev Build on main (#43067772398)
  • Next Build on main (#43079247428)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc