Bolshakova Anna ab21a11190 lab | 2 weeks ago | |
---|---|---|
.. | ||
LICENSE | 2 weeks ago | |
README.md | 2 weeks ago | |
index.d.ts | 2 weeks ago | |
package.json | 2 weeks ago |
npm install --save @types/keygrip
This package contains type definitions for keygrip (https://github.com/crypto-utils/keygrip).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/keygrip.
interface Keygrip {
sign(data: any): string;
verify(data: any, digest: string): boolean;
index(data: any, digest: string): number;
}
interface KeygripFunction {
new(keys: readonly string[], algorithm?: string, encoding?: string): Keygrip;
(keys: readonly string[], algorithm?: string, encoding?: string): Keygrip;
}
declare const Keygrip: KeygripFunction;
export = Keygrip;
These definitions were written by jKey Lu.