Merge pull request #1385 from bitcoinjs/lowR
Add low R value signing as option to ECPair.sign
This commit is contained in:
commit
39bd08002b
10 changed files with 1174 additions and 1147 deletions
types
4
types/ecpair.d.ts
vendored
4
types/ecpair.d.ts
vendored
|
@ -11,7 +11,7 @@ export interface ECPairInterface {
|
|||
publicKey: Buffer;
|
||||
privateKey?: Buffer;
|
||||
toWIF(): string;
|
||||
sign(hash: Buffer): Buffer;
|
||||
sign(hash: Buffer, lowR?: boolean): Buffer;
|
||||
verify(hash: Buffer, signature: Buffer): boolean;
|
||||
getPublicKey?(): Buffer;
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ declare class ECPair implements ECPairInterface {
|
|||
readonly privateKey: Buffer | undefined;
|
||||
readonly publicKey: Buffer;
|
||||
toWIF(): string;
|
||||
sign(hash: Buffer): Buffer;
|
||||
sign(hash: Buffer, lowR?: boolean): Buffer;
|
||||
verify(hash: Buffer, signature: Buffer): boolean;
|
||||
}
|
||||
declare function fromPrivateKey(buffer: Buffer, options?: ECPairOptions): ECPair;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue