Eve/src/utils/sha512.ts
Danny Morabito 740921132a
feat: improve community creation and joining flow
- Add support for joining existing communities via invite codes.
- Refactor createCCN to handle both creating new communities and joining existing ones.
- Fix relay status polling to ensure continuous updates while running.
2025-04-24 15:26:50 +02:00

6 lines
206 B
TypeScript

import { bytesToHex } from '@noble/ciphers/utils';
import { sha512 } from '@noble/hashes/sha512';
export function sha512Hash(input: string) {
return bytesToHex(sha512.create().update(input).digest());
}