Repository navigation
feat(reality): post-quantum REALITY server and real Firefox 148 / Safari 26.3 parrots (getmikan/utls) - #10
Merged
Merged
Conversation
…/utls fork Replace github.com/metacubex/utls with github.com/getmikan/utls v1.8.8-citrus.1, which adds the HelloFirefox_148 and HelloSafari_26_3 parrots (now the targets of HelloFirefox_Auto and HelloSafari_Auto), REALITY ML-DSA-65 signing and the X25519MLKEM768 requirement on the server. hellofirefox_148 and hellosafari_26_3 map to the real parrots. REALITY sends the fingerprints that already carry an X25519MLKEM768 key share before X25519 (chrome, firefox, safari) untouched, so Firefox 148 keeps reusing its X25519 key; the key share is injected only into the others.
…TimeDiff The REALITY server took max-time-difference as microseconds, so a value copied from an Xray config (maxTimeDiff, milliseconds: transport/internet/ reality/config.go) allowed a 1000 times smaller clock skew and rejected nearly every client.
… version range New reality-config keys of the inbounds, matching the Xray REALITY server: - mldsa65-seed: Xray's mldsa65Seed, the server signs its temporary certificate with ML-DSA-65 for clients with the matching mldsa65-verify (pqv); the seed is validated at build time and must differ from private-key - require-x25519mlkem768: forward client hellos without an X25519MLKEM768 key share before X25519 to dest, like Xray v26.9.8+ - min-client-ver / max-client-ver: the accepted range of the Xray version the client reports (x.y.z) Tests cover option validation, Citrus client to Citrus server with ML-DSA-65 and the key share requirement for every fingerprint, and the rejections. The test targets now send a certificate chain as long as a real site's one, since the ML-DSA-65 signature has to fit in the size of dest's Certificate message.
# Conflicts: # listener/reality/reality.go
This was referenced Oct 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #8 (merged). Switches utls to our fork and adds the server side of post-quantum REALITY.
getmikan/utls v1.8.8-citrus.1
replace github.com/metacubex/utls => github.com/getmikan/utls v1.8.8-citrus.1(root andtest/). On top of upstream v1.8.8:v1.9.0-mod-meta;firefox/safarinow point at them.Citrus
reality-config:mldsa65-seed(Xraymldsa65Seed),require-x25519mlkem768,min-client-ver,max-client-ver. Validated when the listener is built.firefox,safari,chromeandhello*_148/26_3send their real hello unchanged; the ML-KEM injection from feat(reality): post-quantum REALITY client for Xray 26.9.8+ (ML-KEM by default, ML-DSA-65, client version) #8 is kept only for fingerprints without it (ios, edge, qq, randomized…). This also fixes feat(reality): post-quantum REALITY client for Xray 26.9.8+ (ML-KEM by default, ML-DSA-65, client version) #8 breaking Firefox 148's key reuse.max-time-differenceis now milliseconds, like Xray'smaxTimeDiff(was microseconds: a value copied from Xray allowed 1000× less skew).Live test against Xray v26.10.10 (vless + vision + REALITY)
mldsa65Verifymldsa65Seed)mldsa65-verifyTests: every usable fingerprint against a server with the seed and the key-share rule; vless and trojan inbounds with ML-DSA; rejections for wrong key, classical-only clients and version limits.
go test ./component/tls/... ./listener/reality/... ./adapter/outbound/... ./common/convert/...,go test ./listener/inbound -run 'Reality|VLESS|Vless|Trojan'pass.Notes
mldsa65-seedneeds a target whose Certificate message is at least ~3.5 KB (the signature goes inside it). Same limit as Xray; documented.getmikan/utlstag.