diff --git a/package.json b/package.json index 4987aca..0be91ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xtr-dev/rondevu-server", - "version": "0.2.2", + "version": "0.2.3", "description": "DNS-like WebRTC signaling server with username claiming and service discovery", "main": "dist/index.js", "scripts": { diff --git a/src/crypto.ts b/src/crypto.ts index afe0d15..ed77a42 100644 --- a/src/crypto.ts +++ b/src/crypto.ts @@ -267,8 +267,8 @@ export async function verifyEd25519Signature( const encoder = new TextEncoder(); const messageBytes = encoder.encode(message); - // Verify signature using @noble/ed25519 - const isValid = await ed25519.verify(signatureBytes, messageBytes, publicKeyBytes); + // Verify signature using @noble/ed25519 (async version) + const isValid = await ed25519.verifyAsync(signatureBytes, messageBytes, publicKeyBytes); return isValid; } catch (err) { console.error('Ed25519 signature verification failed:', err);