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

archetech / archon / 28633821705
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: fix/cln-init-image-mismatch
DEFAULT BRANCH: main
Ran 03 Jul 2026 02:13AM UTC
Jobs 1
Files 52
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

03 Jul 2026 02:09AM UTC coverage: 91.569%. Remained the same
28633821705

Pull #687

github

macterra
fix(rust-gatekeeper): return 400 invalidDid for a malformed-CID DID (#686)

On /1.0/identifiers, a syntactically-`did:` DID with a malformed CID suffix
(e.g. `did:cid:xyz`) returned 404 notFound in Rust but 400 invalidDid in the
TS reference, because Rust classified invalidDid only via a `did:` prefix check
while TS validates the CID (isValidDID -> isValidCID).

Add `is_valid_did` (proofs.rs) mirroring the TS rule — `did:` prefix, >=3
`:`-separated segments, final segment parses as a CID (via the `cid` crate) —
and use it in `classify_conformant_error` instead of the prefix check. A
malformed-CID DID now returns 400 invalidDid, matching TS.

Tests: unit tests for `is_valid_did` and an added malformed-CID case in the
classifier test; parity fixture `conformant-resolve-invalid-cid` (both impls now
agree on 400). Full lib suite green (26), clippy clean.

Closes #686.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #687: fix(rust-gatekeeper): return 400 invalidDid for a malformed-CID DID

2816 of 3323 branches covered (84.74%)

Branch coverage included in aggregate %.

5851 of 6142 relevant lines covered (95.26%)

882.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28633821705.1 03 Jul 2026 02:13AM UTC 104
93.0
GitHub Action Run
Source Files on build 28633821705
  • Tree
  • List 52
  • Changed 48
  • Source Changed 0
  • Coverage Changed 48
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28633821705
  • Pull Request #687
  • PR Base - main (#28633544819)
  • 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