diff options
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts index 3773a8b..59e70c1 100644 --- a/src/types.ts +++ b/src/types.ts @@ -85,3 +85,20 @@ export enum COSEKEYS { }; export type COSEPublicKey = Map<COSEAlgorithmIdentifier, number | Buffer>; + +export type SafetyNetJWTHeader = { + alg: 'string', + x5c: string[], +}; + +export type SafetyNetJWTPayload = { + nonce: string, + timestampMs: number, + apkPackageName: string, + apkDigestSha256: string, + ctsProfileMatch: boolean, + apkCertificateDigestSha256: string[], + basicIntegrity: boolean, +}; + +export type SafetyNetJWTSignature = string; |