@types/keccak
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -8,3 +8,3 @@ // Type definitions for keccak 3.0 | ||
import { Transform, TransformOptions } from 'stream'; | ||
import { Transform, TransformOptions } from "stream"; | ||
export class Keccak extends Transform { | ||
@@ -30,5 +30,5 @@ constructor( | ||
export type KeccakAlgorithm = 'keccak224' | 'keccak256' | 'keccak384' | 'keccak512'; | ||
export type Sha3Algorithm = 'sha3-224' | 'sha3-256' | 'sha3-384' | 'sha3-512'; | ||
export type ShakeAlgorithm = 'shake128' | 'shake256'; | ||
export type KeccakAlgorithm = "keccak224" | "keccak256" | "keccak384" | "keccak512"; | ||
export type Sha3Algorithm = "sha3-224" | "sha3-256" | "sha3-384" | "sha3-512"; | ||
export type ShakeAlgorithm = "shake128" | "shake256"; | ||
@@ -35,0 +35,0 @@ declare function create(algorithm: KeccakAlgorithm | Sha3Algorithm, options?: TransformOptions): Keccak; |
{ | ||
"name": "@types/keccak", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "TypeScript definitions for keccak", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/keccak", | ||
"license": "MIT", | ||
@@ -24,4 +25,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "520a127db93cc63d9e9a90ec06db91a5b5df100bac9dbe5a9dc31590858e750d", | ||
"typeScriptVersion": "2.9" | ||
"typesPublisherContentHash": "199b1820e4447bbdc1da430fe66f57f39ccd64e494bd3c1dfe4acd8a0be88a32", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,5 +9,46 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/keccak. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/keccak/index.d.ts) | ||
````ts | ||
// Type definitions for keccak 3.0 | ||
// Project: https://github.com/cryptocoinjs/keccak#readme | ||
// Definitions by: odan <https://github.com/odanado> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
/// <reference types="node" /> | ||
import { Transform, TransformOptions } from "stream"; | ||
export class Keccak extends Transform { | ||
constructor( | ||
rate: number, | ||
capacity: number, | ||
delimitedSuffix: number | null, | ||
hashBitLength: number, | ||
options: TransformOptions, | ||
); | ||
update(data: string | Buffer, encoding?: BufferEncoding): Keccak; | ||
digest(): Buffer; | ||
digest(encoding: BufferEncoding): string; | ||
} | ||
export class Shake extends Transform { | ||
constructor(rate: number, capacity: number, delimitedSuffix: number | null, options: TransformOptions); | ||
update(data: string | Buffer, encoding?: BufferEncoding): Shake; | ||
squeeze(dataByteLength: number): Buffer; | ||
squeeze(dataByteLength: number, encoding: BufferEncoding): string; | ||
} | ||
export type KeccakAlgorithm = "keccak224" | "keccak256" | "keccak384" | "keccak512"; | ||
export type Sha3Algorithm = "sha3-224" | "sha3-256" | "sha3-384" | "sha3-512"; | ||
export type ShakeAlgorithm = "shake128" | "shake256"; | ||
declare function create(algorithm: KeccakAlgorithm | Sha3Algorithm, options?: TransformOptions): Keccak; | ||
declare function create(algorithm: ShakeAlgorithm, options?: TransformOptions): Shake; | ||
export default create; | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 04 May 2020 07:05:43 GMT | ||
* Last updated: Thu, 14 Sep 2023 01:49:18 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +55,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5462
0
58