gitfoss | d7e6d70fd25538a5de01f03f95c8ca16a86c5444 | app/services/crypto/types.ts ∙ GitFOSS

k / gitfoss

Files

Forked Fromethicdevs / gitfoss
Fork0
~app/services/crypto/types.ts
.ts
TypeScript
(application/typescript)
import { ServiceApiContract } from "@ethicdevs/react-monolith";

export interface CryptoServiceAPI extends ServiceApiContract {
  computeHash(strToHash: string, salt?: string): string;
  compareHashes(a: string, b: string): boolean;
}

export interface CryptoServiceDeps {
  hash(strToHash: string, salt?: string): string;
  compare(a: string, b: string): boolean;
}