UNPKG

@ew-did-registry/claims

Version:

The package exposes functionality needed to create, inspect, approve, and verify Private and Public claims

7 lines (5 loc) 202 B
import crypto from 'crypto'; export const hashes: { [hashAlg: string]: (data: string) => string } = { SHA256: (data: string): string => crypto.createHash('sha256').update(data).digest('hex'), };