@xtr-dev/rondevu-client 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/usernames.js CHANGED
@@ -1,4 +1,9 @@
1
1
  import * as ed25519 from '@noble/ed25519';
2
+ // Set SHA-512 hash function for ed25519 (required in @noble/ed25519 v3+)
3
+ // Uses built-in WebCrypto API
4
+ ed25519.hashes.sha512Async = async (message) => {
5
+ return new Uint8Array(await crypto.subtle.digest('SHA-512', message));
6
+ };
2
7
  /**
3
8
  * Convert Uint8Array to base64 string
4
9
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtr-dev/rondevu-client",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "TypeScript client for Rondevu DNS-like WebRTC with username claiming and service discovery",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",