From dfda8c5ef3ccacc55ce3398399568da0466b7689 Mon Sep 17 00:00:00 2001 From: junderw Date: Tue, 6 Aug 2019 18:45:02 +0900 Subject: [PATCH] Fix Signer interface --- ts_src/ecpair.ts | 4 ++-- types/ecpair.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ts_src/ecpair.ts b/ts_src/ecpair.ts index 9052866..3c7eb1c 100644 --- a/ts_src/ecpair.ts +++ b/ts_src/ecpair.ts @@ -21,14 +21,14 @@ interface ECPairOptions { export interface Signer { publicKey: Buffer; - network?: Network; + network?: any; sign(hash: Buffer, lowR?: boolean): Buffer; getPublicKey?(): Buffer; } export interface SignerAsync { publicKey: Buffer; - network?: Network; + network?: any; sign(hash: Buffer, lowR?: boolean): Promise; getPublicKey?(): Buffer; } diff --git a/types/ecpair.d.ts b/types/ecpair.d.ts index 07d71d4..0b69dfe 100644 --- a/types/ecpair.d.ts +++ b/types/ecpair.d.ts @@ -7,13 +7,13 @@ interface ECPairOptions { } export interface Signer { publicKey: Buffer; - network?: Network; + network?: any; sign(hash: Buffer, lowR?: boolean): Buffer; getPublicKey?(): Buffer; } export interface SignerAsync { publicKey: Buffer; - network?: Network; + network?: any; sign(hash: Buffer, lowR?: boolean): Promise; getPublicKey?(): Buffer; }