Add low R grinding option

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

2
types/ecpair.d.ts vendored
View file

@ -24,7 +24,7 @@ declare class ECPair implements ECPairInterface {
readonly privateKey: Buffer | undefined;
readonly publicKey: Buffer | undefined;
toWIF(): string;
sign(hash: Buffer): Buffer;
sign(hash: Buffer, lowR?: boolean): Buffer;
verify(hash: Buffer, signature: Buffer): Buffer;
}
declare function fromPrivateKey(buffer: Buffer, options?: ECPairOptions): ECPair;