mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 16:14:40 +00:00
Implements nostr-protocol/nips#2381: a client MAY attach an optional 4th positional parameter to the NIP-46 `connect` request carrying a JSON-stringified `{name, url, image}` object, mirroring the fields already present in `nostrconnect://` URIs. This lets a bunker:// paired signer show who is asking to connect. - quartz: add BunkerClientMetadata and a clientMetadata field on BunkerRequestConnect; serialize it as the 4th param (omitted when empty) and parse it back, degrading malformed/empty JSON to null. - quartz: NostrSignerRemote carries and sends clientMetadata on connect() and threads it through fromBunkerUri(). - commons: BunkerLoginUseCase.execute() accepts optional clientMetadata. - desktopApp: advertise Amethyst's metadata on bunker login. - cli: the receiving bunker logs the connecting client's identity (display-only; never gates the ACK on it, since the client pubkey is unauthenticated in bunker:// pairing). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PYpupiVAq4VyHDdjrYyPdi