🐛 fix: Update generateRealityKeyPair to use async key generation
This commit is contained in:
parent
c3d0ef8317
commit
e60e369bbe
@ -5,7 +5,7 @@ import { toB64Url } from './util';
|
||||
* Generate a Reality key pair
|
||||
* @returns An object containing the private and public keys in base64url format
|
||||
*/
|
||||
export function generateRealityKeyPair() {
|
||||
const { secretKey, publicKey } = x25519.keygen();
|
||||
export async function generateRealityKeyPair() {
|
||||
const { secretKey, publicKey } = await x25519.keygenAsync();
|
||||
return { privateKey: toB64Url(secretKey), publicKey: toB64Url(publicKey) };
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user