Browse Source

Modify interface

lowR
junderw 6 years ago
parent
commit
ccd439b805
No known key found for this signature in database GPG Key ID: B256185D3A971908
  1. 2
      ts_src/ecpair.ts
  2. 2
      types/ecpair.d.ts

2
ts_src/ecpair.ts

@ -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

@ -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;
}

Loading…
Cancel
Save