this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 9 lines 416 B view raw
1import { createHash } from 'node:crypto'; 2 3const hash = (parts) => createHash('sha256').update(parts.join('|')).digest('hex'); 4 5export const attestationRkey = ({ subject, service }) => 6 hash([subject, service.type, service.community ?? '', service.identifier ?? '']); 7 8export const membershipRkey = ({ attestedBy, service }) => 9 hash([attestedBy, service.type, service.community ?? '', service.identifier ?? '']);