Fix Signer interface
This commit is contained in:
parent
099360a13d
commit
dfda8c5ef3
2 changed files with 4 additions and 4 deletions
|
@ -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
4
types/ecpair.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue