mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
correct parameter name for secp256k1 API v4.0 (#43521)
* correct parameter name for secp256k1 API v4.0 * update version for secp256k1
This commit is contained in:
Vendored
+3
-3
@@ -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 <https://github.com/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.
|
||||
|
||||
Reference in New Issue
Block a user