diff --git a/openpgp.d.ts b/openpgp.d.ts index 6f23bea2..f524e290 100644 --- a/openpgp.d.ts +++ b/openpgp.d.ts @@ -24,7 +24,7 @@ export function encryptKey(options: { privateKey: PrivateKey; passphrase?: strin export function reformatKey(options: { privateKey: PrivateKey; userIDs?: UserID|UserID[]; passphrase?: string; keyExpirationTime?: number; config?: PartialConfig }): Promise; export abstract class Key { - private keyPacket: PublicKeyPacket | SecretKeyPacket; + public readonly keyPacket: PublicKeyPacket | SecretKeyPacket; public subkeys: Subkey[]; public users: User[]; public revocationSignatures: SignaturePacket[]; @@ -73,8 +73,8 @@ export class PrivateKey extends PublicKey { export class Subkey { constructor(subkeyPacket: SecretSubkeyPacket | PublicSubkeyPacket, mainKey: PublicKey); - private keyPacket: SecretSubkeyPacket | PublicSubkeyPacket; - private mainKey: PublicKey; + public readonly keyPacket: SecretSubkeyPacket | PublicSubkeyPacket; + public readonly mainKey: PublicKey; public bindingSignatures: SignaturePacket[]; public revocationSignatures: SignaturePacket[]; public verify(date?: Date, config?: Config): Promise; @@ -110,7 +110,7 @@ export function readSignature(options: { armoredSignature: string, config?: Part export function readSignature(options: { binarySignature: Uint8Array, config?: PartialConfig }): Promise; export class Signature { - private packets: PacketList; + public readonly packets: PacketList; constructor(packetlist: PacketList); public write(): MaybeStream; public armor(config?: Config): string; @@ -217,7 +217,7 @@ export function verify>(options: VerifyOptions & { m */ export class Message> { - private packets: PacketList; + public readonly packets: PacketList; constructor(packetlist: PacketList); /** Returns binary representation of message