diff --git a/openpgp.d.ts b/openpgp.d.ts index a6e498a5..d6cc9204 100644 --- a/openpgp.d.ts +++ b/openpgp.d.ts @@ -58,7 +58,7 @@ export abstract class Key { public signAllUsers(privateKeys: PrivateKey[], date?: Date, config?: Config): Promise public verifyPrimaryKey(date?: Date, userID?: UserID, config?: Config): Promise; // throws on error public verifyPrimaryUser(publicKeys: PublicKey[], date?: Date, userIDs?: UserID, config?: Config): Promise<{ keyID: KeyID, valid: boolean | null }[]>; - public verifyAllUsers(publicKeys: PublicKey[], date?: Date, config?: Config): Promise<{ userID: string, keyID: KeyID, valid: boolean | null }[]>; + public verifyAllUsers(publicKeys?: PublicKey[], date?: Date, config?: Config): Promise<{ userID: string, keyID: KeyID, valid: boolean | null }[]>; public isRevoked(signature?: SignaturePacket, key?: AnyKeyPacket, date?: Date, config?: Config): Promise; public getRevocationCertificate(date?: Date, config?: Config): Promise | undefined>; public getEncryptionKey(keyID?: KeyID, date?: Date | null, userID?: UserID, config?: Config): Promise; @@ -114,6 +114,7 @@ export interface User { export interface PrimaryUser { index: number; user: User; + selfCertification: SignaturePacket; } type AlgorithmInfo = {