TypeScript: add SignaturePacket.rawNotations
(#1571)
This commit is contained in:
parent
04488af790
commit
2f8a8c1c9a
7
openpgp.d.ts
vendored
7
openpgp.d.ts
vendored
|
@ -518,12 +518,19 @@ export class SignaturePacket extends BasePacket {
|
||||||
public issuerFingerprint: null | Uint8Array;
|
public issuerFingerprint: null | Uint8Array;
|
||||||
public preferredAEADAlgorithms: enums.aead[] | null;
|
public preferredAEADAlgorithms: enums.aead[] | null;
|
||||||
public revoked: null | boolean;
|
public revoked: null | boolean;
|
||||||
|
public rawNotations: RawNotation[];
|
||||||
public sign(key: AnySecretKeyPacket, data: Uint8Array, date?: Date, detached?: boolean): Promise<void>;
|
public sign(key: AnySecretKeyPacket, data: Uint8Array, date?: Date, detached?: boolean): Promise<void>;
|
||||||
public verify(key: AnyKeyPacket, signatureType: enums.signature, data: Uint8Array | object, date?: Date, detached?: boolean, config?: Config): Promise<void>; // throws on error
|
public verify(key: AnyKeyPacket, signatureType: enums.signature, data: Uint8Array | object, date?: Date, detached?: boolean, config?: Config): Promise<void>; // throws on error
|
||||||
public isExpired(date?: Date): boolean;
|
public isExpired(date?: Date): boolean;
|
||||||
public getExpirationTime(): Date | typeof Infinity;
|
public getExpirationTime(): Date | typeof Infinity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface RawNotation {
|
||||||
|
name: string;
|
||||||
|
value: Uint8Array;
|
||||||
|
humanReadable: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
export class TrustPacket extends BasePacket {
|
export class TrustPacket extends BasePacket {
|
||||||
static readonly tag: enums.packet.trust;
|
static readonly tag: enums.packet.trust;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user