Clients merged with upstream 7.4.x accept only v2 (TDUP) update packages,
verified against trust data compiled into the client. Telegram own root key
does not trust the fork signatures, so every update built since the merge was
rejected ("unsupported update format (missing v2 magic)").
- Resources/update: the fork root public key, a manifest that authorizes one
Ed25519 release key for the stable and beta channels, and the root
signature of that manifest. Private keys live outside the repository.
- build/zastogram/update_keys.py: generates the keys, issues and checks the
manifest, installs the release key on the build VM, backs the keys up.
- Dev builds (build id dev-N) verify packages against a running version one
step lower, because dev-N releases share one AppVersion. The signature is
still mandatory and a lower base version is still rejected.
- Tests: test_update_verify (fork manifest shape, dev version rule) and the
release guard test_update_keys.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
64 B
64 B