mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
Close the NIP-46 interop gap against the real nak binary: - `Identity.fromBunkerUri` now URL-decodes the relay/secret params. nak emits `bunker://<pk>?relay=wss%3A%2F%2F…&secret=…`; without decoding, `amy login` of a nak bunker URI produced a broken relay and never connected. (This was the one real break — found by testing vs nak.) - `amy bunker` now percent-encodes the relay/secret in the URI it prints, matching nak's output format. - `amy bunker` implements `get_relays` (returns its relay set), so nak clients that probe it get a proper reply instead of an error. Verified end-to-end with `go install`-built nak over relay.damus.io, both directions: - `amy login bunker://` ⇄ `nak bunker`: amy signs, event authored by nak's key, signature valid. - `nak event --sec bunker://<amy>` ⇄ `amy bunker`: nak signs through amy, event authored by amy's key; amy logs connect→ok, sign_event→ok. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011SapGdtAc1j7woifoCZ9fY