ZaStoGram_desktop/Telegram/Resources/update/root-public.pem
loop-uh f32a6c3364 Update trust: the fork has its own v2 update key chain
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>
2026-11-27 17:52:12 +00:00

3 lines
113 B
Text

-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAxLcEKoVidiszvutdFPHSWBpfVqUaix5jiZoT2jd5cEw=
-----END PUBLIC KEY-----