gitfoss-fork | cbb1a86300e13d1399a6d5bc7d6c56ae23f5b8c7 | app/services/crypto/types.ts ∙ GitFOSS
.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;
}