Fix Signer interface

This commit is contained in:
junderw 2019-08-06 18:45:02 +09:00
parent 099360a13d
commit dfda8c5ef3
No known key found for this signature in database
GPG key ID: B256185D3A971908
2 changed files with 4 additions and 4 deletions

View file

@ -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<Buffer>;
getPublicKey?(): Buffer;
}

4
types/ecpair.d.ts vendored
View file

@ -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<Buffer>;
getPublicKey?(): Buffer;
}