From fb754dafede5662465b609a9998754d5c8e09cc9 Mon Sep 17 00:00:00 2001 From: odanado Date: Tue, 7 Apr 2020 04:05:20 +0900 Subject: [PATCH] correct parameter name for secp256k1 API v4.0 (#43521) * correct parameter name for secp256k1 API v4.0 * update version for secp256k1 --- types/secp256k1/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/secp256k1/index.d.ts b/types/secp256k1/index.d.ts index 549cdb0306..b8de40f97e 100644 --- a/types/secp256k1/index.d.ts +++ b/types/secp256k1/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for secp256k1 3.5 +// Type definitions for secp256k1 4.0 // Project: https://github.com/cryptocoinjs/secp256k1-node // Definitions by: Anler // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -115,7 +115,7 @@ export function signatureImport(signature: Uint8Array): Uint8Array; * - Compose 32-byte scalar `s = k^-1 * (r * d + m)`. Reject nonce if `s` is zero. * - The signature is `(r, s)`. */ -export function ecdsaSign(message: Uint8Array, privateKey: Uint8Array, options?: SignOptions): {signature: Uint8Array, recovery: number}; +export function ecdsaSign(message: Uint8Array, privateKey: Uint8Array, options?: SignOptions): {signature: Uint8Array, recId: number}; /** * Verify an ECDSA signature. @@ -133,7 +133,7 @@ export function ecdsaVerify(signature: Uint8Array, message: Uint8Array, publicKe /** * Recover an ECDSA public key from a signature. */ -export function ecdsaRecover(signature: Uint8Array, recovery: number, message: Uint8Array, compressed?: boolean): Uint8Array; +export function ecdsaRecover(signature: Uint8Array, recId: number, message: Uint8Array, compressed?: boolean): Uint8Array; /** * Compute an EC Diffie-Hellman secret and applied sha256 to compressed public key.