Commit 5990335
chore(LightSigner): add NIP-46 wire-trace observability
Three observability-only additions to make Clave a cleaner reference
signer for debugging NIP-46 client implementations. No behavior change.
- Append `id=<8-char>` to the existing `[LightSigner] Method:` log line so
every wire-trace step in iOS logs can be cross-correlated to a single
RPC by request id.
- Warn (don't reject) when `connect` params[0] doesn't match Clave's
signer pubkey. Spec says params[0] is the remote-signer-pubkey;
routing already worked via the kind:24133 #p tag, so a mismatch is
informational — but it's a useful diagnostic for clients that target
the wrong signer in multi-account flows. Closes BACKLOG Audit-2.
- Log when `params` cast falls through (client sent mixed-type instead
of [String]). Without this, a shape-mismatch silently degrades to
"missing params" downstream and the wire trace can't tell shape-issues
from genuinely-missing params. Reports the actual type for easier
client-side debug.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1e081e7 commit 5990335
1 file changed
Lines changed: 22 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
123 | 136 | | |
124 | 137 | | |
125 | 138 | | |
| |||
130 | 143 | | |
131 | 144 | | |
132 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
133 | 153 | | |
134 | 154 | | |
135 | 155 | | |
| |||
0 commit comments