From 2df6743c6c230ffd6768ceab41a7bd94029f04ab Mon Sep 17 00:00:00 2001 From: dapplion Date: Mon, 30 Nov 2020 16:28:47 +0000 Subject: [PATCH] Make PublicKey type != Signature type --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index cad6199..0ac5fa1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -61,6 +61,8 @@ export declare class PublicKey implements IPublicKey { static aggregate(pubkeys: PublicKey[]): PublicKey; toBytes(): Uint8Array; toHex(): string; + // Virtual property so PublicKey type != Signature type + private isPublicKey: true; } export declare class Signature implements ISignature {