Add selfCertification
property to PrimaryUser
interface definition (#1594)
Also, mark the `publicKeys` parameter of `Key.verifyAllUsers` as optional.
This commit is contained in:
parent
3e6e8d03a4
commit
5b92b80f79
3
openpgp.d.ts
vendored
3
openpgp.d.ts
vendored
|
@ -58,7 +58,7 @@ export abstract class Key {
|
|||
public signAllUsers(privateKeys: PrivateKey[], date?: Date, config?: Config): Promise<this>
|
||||
public verifyPrimaryKey(date?: Date, userID?: UserID, config?: Config): Promise<void>; // 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<boolean>;
|
||||
public getRevocationCertificate(date?: Date, config?: Config): Promise<MaybeStream<string> | undefined>;
|
||||
public getEncryptionKey(keyID?: KeyID, date?: Date | null, userID?: UserID, config?: Config): Promise<this | Subkey>;
|
||||
|
@ -114,6 +114,7 @@ export interface User {
|
|||
export interface PrimaryUser {
|
||||
index: number;
|
||||
user: User;
|
||||
selfCertification: SignaturePacket;
|
||||
}
|
||||
|
||||
type AlgorithmInfo = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user