mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-02 12:53:10 +00:00
fix: sha512 access
This commit is contained in:
parent
8b714b61a7
commit
2cdcd567bb
@ -6,10 +6,13 @@
|
||||
*/
|
||||
|
||||
import * as ed from '@noble/ed25519';
|
||||
import { sha512 } from '@noble/hashes/sha512';
|
||||
import { bytesToHex, hexToBytes } from '@/lib/utils';
|
||||
import { LOCAL_STORAGE_KEYS } from '@/lib/waku/constants';
|
||||
import { DelegationInfo } from './types';
|
||||
|
||||
ed.etc.sha512Sync = (...m) => sha512(ed.etc.concatBytes(...m));
|
||||
|
||||
|
||||
export class KeyDelegation {
|
||||
private static readonly DEFAULT_EXPIRY_HOURS = 24;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user