fix: use async ed25519 functions (signAsync, getPublicKeyAsync)

The sync ed25519 functions (sign, getPublicKey) require hashes.sha512,
but WebCrypto only provides async digest. Switch to using the async
ed25519 API which works with hashes.sha512Async.

This fixes the "hashes.sha512 not set" error.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-05 19:19:05 +01:00
parent 63e14ddc5b
commit b2d42fa776
2 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@xtr-dev/rondevu-client",
"version": "0.8.2",
"version": "0.8.3",
"description": "TypeScript client for Rondevu DNS-like WebRTC with username claiming and service discovery",
"type": "module",
"main": "dist/index.js",