Modify interface

This commit is contained in:
junderw 2019-04-12 17:55:45 +09:00
parent 3b402d00c6
commit ccd439b805
No known key found for this signature in database
GPG key ID: B256185D3A971908
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ export interface ECPairInterface {
privateKey?: Buffer;
publicKey?: Buffer;
toWIF(): string;
sign(hash: Buffer): Buffer;
sign(hash: Buffer, lowR?: boolean): Buffer;
verify(hash: Buffer, signature: Buffer): Buffer;
getPublicKey?(): Buffer;
}

2
types/ecpair.d.ts vendored
View file

@ -11,7 +11,7 @@ export interface ECPairInterface {
privateKey?: Buffer;
publicKey?: Buffer;
toWIF(): string;
sign(hash: Buffer): Buffer;
sign(hash: Buffer, lowR?: boolean): Buffer;
verify(hash: Buffer, signature: Buffer): Buffer;
getPublicKey?(): Buffer;
}