Merge pull request #1448 from bitcoinjs/fixSigner

Fix Signer interface
This commit is contained in:
d-yokoi 2019-08-07 18:03:11 +09:00 committed by GitHub
commit 3539605006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
}