mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-08 23:54:39 +00:00
Per NIP-46 (nostr-protocol/nips#2381), client metadata is the 4th positional connect param. When it is present but the optional secret or permissions are not, those slots are now back-filled with empty strings so the metadata always lands at index 3. Parsing maps empty placeholders back to null. When no metadata is sent, the array stays as short as possible for backward compatibility. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PYpupiVAq4VyHDdjrYyPdi