diff --git a/46.md b/46.md index 8ba65d967a..5c927d5698 100644 --- a/46.md +++ b/46.md @@ -59,11 +59,11 @@ nostrconnect://?relay=&metadata "content": nip04({ "id": , "method": "sign_event", - "params": [json_stringified(<{ + "params": [{ content: "Hello, I'm signing remotely", pubkey: "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52", // ...the rest of the event data - }>)] + }] }), "tags": [["p", "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52"]], // p-tags the remote user pubkey } @@ -77,7 +77,7 @@ nostrconnect://?relay=&metadata "pubkey": "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52", "content": nip04({ "id": , - "result": json_stringified() + "result": }), "tags": [["p", "eff37350d839ce3707332348af4549a96051bd695d3223af4aabce4993531d86"]], // p-tags the local keypair pubkey } @@ -106,7 +106,7 @@ The `content` field is a JSON-RPC-like message that is [NIP-04](https://github.c { "id": , "method": , - "params": [array_of_strings] + "params": [, , ...] } ``` @@ -121,9 +121,9 @@ Each of the following are methods that the client sends to the remote signer. | Command | Params | Result | | ------------------------ | ------------------------------------------------- | ---------------------------------------------------------------------- | | `connect` | `[, , ]` | "ack" | -| `sign_event` | `[]` | `json_stringified()` | +| `sign_event` | `[]` | `` | | `ping` | `[]` | "pong" | -| `get_relays` | `[]` | `json_stringified({: {read: , write: }})` | +| `get_relays` | `[]` | `{: {read: , write: }}` | | `get_public_key` | `[]` | `` | | `nip04_encrypt` | `[, ]` | `` | | `nip04_decrypt` | `[, ]` | `` | @@ -152,7 +152,7 @@ The `content` field is a JSON-RPC-like message that is [NIP-04](https://github.c ```json { "id": <request_id>, - "result": <results_string>, + "result": <any>, "error": <error_string> } ```