- 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.
6 lines
206 B
TypeScript
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());
|
|
}
|