gitfoss-fork-fork | a90ee8bf926d55a2111b83e6d77f4de0a91933ce | 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;
}