Fix build

This commit is contained in:
Tilen Komel committed 2024-09-02 15:05:04 +02:00
1 parent 9bea6870bb
commit 354d04592b
2 files changed
+5 -4

No files matched your search

+3 -3
View File
@@ -3,9 +3,9 @@ import { x25519 } from "@noble/curves/ed25519";
export function getX25519PrivateKey(): Uint8Array {
const key = x25519.utils.randomPrivateKey();
key[0] &= 248
key[31] &= 127
key[31] |= 64
key[0] &= 248;
key[31] &= 127;
key[31] |= 64;
return key;
}