1 // Interface for SignedKeyList generated by the FE before uploading
2 export interface SignedKeyList {
7 // Metadata of a public key included in the SKL's Data property
8 export interface SignedKeyListItem {
12 SHA256Fingerprints: string[];
17 Signature: string | null;
18 MinEpochID: number | null;
19 MaxEpochID: number | null;
20 ObsolescenceToken?: string;
21 ExpectedMinEpochID?: number;
25 export interface ActiveSignedKeyList extends SignedKeyList, SKLEpochs {
30 export interface ObsolescentSignedKeyList extends SKLEpochs {
31 ObsolescenceToken: string;
34 export interface ActiveSignedKeyListWithRevision extends ActiveSignedKeyList {
38 export interface ObsolescentSignedKeyListWithRevision extends ObsolescentSignedKeyList {
42 // SKL served by the server. Note that Data and Signature
43 // might be missing or be null for obsolescent SKLs
44 export type FetchedSignedKeyList = ActiveSignedKeyListWithRevision | ObsolescentSignedKeyListWithRevision;