From fecb0bc4a892f90c8eeeb6bc3e39a51489f5724f Mon Sep 17 00:00:00 2001 From: Nikhil Kumar Singh Date: Mon, 5 Oct 2026 21:37:24 +0530 Subject: [PATCH] chore: few constants related to cert/sig --- app.py | 4 ++-- fampay/constants.py | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 75a08fb..98ba85d 100644 --- a/app.py +++ b/app.py @@ -22,6 +22,6 @@ Sending the SMS to any VMN should grant us access. """ -from fampay.constants import FamAppConsts +from fampay.constants import FamAppConstants -assert FamAppConsts.VERSION_CODE == "2602003" +assert FamAppConstants.APP_VERSION_CODE == "2602003" diff --git a/fampay/constants.py b/fampay/constants.py index 86d4433..8eb6ec4 100644 --- a/fampay/constants.py +++ b/fampay/constants.py @@ -13,6 +13,14 @@ class _FamAppApiStore: @dataclass(frozen=True, slots=True) -class FamAppConsts: - VERSION_CODE = "2602003" +class FamAppConstants: + APP_VERSION_CODE = "2602003" # FamBase.t + APP_VERSION_NAME = "26.2.3" # FamBase.u + PLATFORM = "1" # Android + + # SHA-1 over the APK signing certificate DER (extracted from + # META-INF/BNDLTOOL.RSA of 26.2.3). Server pins this value. + APP_CERT_SHA1 = "43A2BD6824215BE3454B203BE7EC9E5A926BDDE7" + SIGNATURE_VERSION = "1" + api = _FamAppApiStore() -- 2.51.2