@types/secp256k1
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -11,4 +11,11 @@ // Type definitions for secp256k1 4.0 | ||
/** Nonce generator. By default it is rfc6979 */ | ||
noncefn?: ((message: Uint8Array, privateKey: Uint8Array, algo: Uint8Array | null, | ||
data: Uint8Array | null, attempt: number) => Uint8Array) | undefined; | ||
noncefn?: | ||
| (( | ||
message: Uint8Array, | ||
privateKey: Uint8Array, | ||
algo: Uint8Array | null, | ||
data: Uint8Array | null, | ||
attempt: number, | ||
) => Uint8Array) | ||
| undefined; | ||
@@ -73,3 +80,7 @@ /** | ||
*/ | ||
export function publicKeyCreate(privateKey: Uint8Array, compressed?: boolean, output?: Uint8Array | ((len: number) => Uint8Array)): Uint8Array; | ||
export function publicKeyCreate( | ||
privateKey: Uint8Array, | ||
compressed?: boolean, | ||
output?: Uint8Array | ((len: number) => Uint8Array), | ||
): Uint8Array; | ||
@@ -79,3 +90,7 @@ /** | ||
*/ | ||
export function publicKeyConvert(publicKey: Uint8Array, compressed?: boolean, output?: Uint8Array | ((len: number) => Uint8Array)): Uint8Array; | ||
export function publicKeyConvert( | ||
publicKey: Uint8Array, | ||
compressed?: boolean, | ||
output?: Uint8Array | ((len: number) => Uint8Array), | ||
): Uint8Array; | ||
@@ -85,3 +100,7 @@ /** | ||
*/ | ||
export function publicKeyNegate(publicKey: Uint8Array, compressed?: boolean, output?: Uint8Array | ((len: number) => Uint8Array)): Uint8Array; | ||
export function publicKeyNegate( | ||
publicKey: Uint8Array, | ||
compressed?: boolean, | ||
output?: Uint8Array | ((len: number) => Uint8Array), | ||
): Uint8Array; | ||
@@ -96,3 +115,8 @@ /** | ||
*/ | ||
export function publicKeyTweakAdd(publicKey: Uint8Array, tweak: Uint8Array, compressed?: boolean, output?: Uint8Array | ((len: number) => Uint8Array)): Uint8Array; | ||
export function publicKeyTweakAdd( | ||
publicKey: Uint8Array, | ||
tweak: Uint8Array, | ||
compressed?: boolean, | ||
output?: Uint8Array | ((len: number) => Uint8Array), | ||
): Uint8Array; | ||
@@ -102,3 +126,8 @@ /** | ||
*/ | ||
export function publicKeyTweakMul(publicKey: Uint8Array, tweak: Uint8Array, compressed?: boolean, output?: Uint8Array | ((len: number) => Uint8Array)): Uint8Array; | ||
export function publicKeyTweakMul( | ||
publicKey: Uint8Array, | ||
tweak: Uint8Array, | ||
compressed?: boolean, | ||
output?: Uint8Array | ((len: number) => Uint8Array), | ||
): Uint8Array; | ||
@@ -108,3 +137,7 @@ /** | ||
*/ | ||
export function publicKeyCombine(publicKeys: Uint8Array[], compressed?: boolean, output?: Uint8Array | ((len: number) => Uint8Array)): Uint8Array; | ||
export function publicKeyCombine( | ||
publicKeys: Uint8Array[], | ||
compressed?: boolean, | ||
output?: Uint8Array | ((len: number) => Uint8Array), | ||
): Uint8Array; | ||
@@ -135,3 +168,8 @@ /** | ||
*/ | ||
export function ecdsaSign(message: Uint8Array, privateKey: Uint8Array, options?: SignOptions, output?: Uint8Array | ((len: number) => Uint8Array)): {signature: Uint8Array, recid: number}; | ||
export function ecdsaSign( | ||
message: Uint8Array, | ||
privateKey: Uint8Array, | ||
options?: SignOptions, | ||
output?: Uint8Array | ((len: number) => Uint8Array), | ||
): { signature: Uint8Array; recid: number }; | ||
@@ -154,3 +192,9 @@ /** | ||
*/ | ||
export function ecdsaRecover(signature: Uint8Array, recid: number, message: Uint8Array, compressed?: boolean, output?: Uint8Array | ((len: number) => Uint8Array)): Uint8Array; | ||
export function ecdsaRecover( | ||
signature: Uint8Array, | ||
recid: number, | ||
message: Uint8Array, | ||
compressed?: boolean, | ||
output?: Uint8Array | ((len: number) => Uint8Array), | ||
): Uint8Array; | ||
@@ -160,2 +204,7 @@ /** | ||
*/ | ||
export function ecdh(publicKey: Uint8Array, privateKey: Uint8Array, opt?: ecdhOptions, output?: Uint8Array | ((len: number) => Uint8Array)): Uint8Array; | ||
export function ecdh( | ||
publicKey: Uint8Array, | ||
privateKey: Uint8Array, | ||
opt?: ecdhOptions, | ||
output?: Uint8Array | ((len: number) => Uint8Array), | ||
): Uint8Array; |
{ | ||
"name": "@types/secp256k1", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "TypeScript definitions for secp256k1", | ||
@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/secp256k1", | ||
}, | ||
"typesPublisherContentHash": "14baa00e13004fc288810f488ac9df7b27bb8331df440b054268eaa22a038529", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "266e52e4209de28ad55ae81f2923f5c3780ba6eaa50f86539fb2caf1c1b81b2e", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 16:34:26 GMT | ||
* Last updated: Mon, 25 Sep 2023 13:39:06 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8287
174