Fix keys storage

This commit is contained in:
2025-09-17 22:38:08 +03:00
Unverified
parent 6625ce71fb
commit b23513b846
3 changed files with 32 additions and 2 deletions
+2
View File
@@ -6,6 +6,8 @@ export interface X25519KeyPair {
privateKey: Uint8Array;
}
export type KeyPair = X25519KeyPair;
export function generateX25519KeyPair(): X25519KeyPair {
const kp = nacl.box.keyPair();
return { publicKey: kp.publicKey, privateKey: kp.secretKey };