mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Update KeyPair.getPublic overloads (#36098)
Had some bad overload definitions get through without me realizing.
This commit is contained in:
parent
fc5a3acff8
commit
23bfb7e136
6
types/elliptic/index.d.ts
vendored
6
types/elliptic/index.d.ts
vendored
@ -252,8 +252,10 @@ export namespace ec {
|
||||
constructor(ec: ec, options: KeyPairOptions);
|
||||
|
||||
validate(): { readonly result: boolean; readonly reason: string };
|
||||
getPublic(compact: boolean, enc: "hex" | "array"): string | number[];
|
||||
getPublic(enc: "hex" | "array"): string;
|
||||
getPublic(compact: boolean, enc: "hex"): string;
|
||||
getPublic(compact: boolean, enc: "array"): number[];
|
||||
getPublic(enc: "hex"): string;
|
||||
getPublic(enc: "array"): number[];
|
||||
getPublic(): curve.base.BasePoint;
|
||||
getPrivate(enc: "hex"): string;
|
||||
getPrivate(): BN;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user