Merge pull request #46 from ChainSafe/dapplion/differentiate-types

Make PublicKey type != Signature type
This commit is contained in:
Cayman 2020-11-30 09:56:39 -07:00 committed by GitHub
commit ab0baac84b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,8 @@ export declare class PublicKey implements IPublicKey {
static aggregate(pubkeys: PublicKey[]): PublicKey; static aggregate(pubkeys: PublicKey[]): PublicKey;
toBytes(): Uint8Array; toBytes(): Uint8Array;
toHex(): string; toHex(): string;
// Virtual property so PublicKey type != Signature type
private isPublicKey: true;
} }
export declare class Signature implements ISignature { export declare class Signature implements ISignature {