gitfoss | e6d0244d625614a1cf18698b44f8c0fcbf19cfb6 | app/services/crypto/types.ts ∙ GitFOSS
.ts
TypeScript
(application/typescript)
// 1st-party
import type { 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;
}