From 88e02cc1192ba1c7e69802ba49d83db9c6e1d093 Mon Sep 17 00:00:00 2001 From: _ <> Date: Tue, 25 Mar 2025 22:26:58 +0000 Subject: [PATCH] fix: make kind 21120 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ba33b9d..d6c0bf8 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ sequenceDiagram participant b as Blossom Server participant s as HTTP Server - Note over c: Convert <br>HTTP Request<br>into kind 1120 + Note over c: Convert <br>HTTP Request<br>into kind 21120 c-->>b: Encrypt & push payload (if large) c->>r: Publish <br>Event r<<-->>s: Fetch event @@ -53,7 +53,7 @@ sequenceDiagram Note over s: Make HTTP REQUEST Note over s: Get HTTP RESPONSE s-->>b: Encrypt & push <br>payload (if large) - Note over s: Create kind<br>1120 (Response) + Note over s: Create kind<br>21120 (Response) s->>r: Publish Event r<<-->>c: Fetch event Note over c: Decrypt event @@ -68,7 +68,7 @@ sequenceDiagram ```jsonc { - "kind": 1120, + "kind": 21120, "pubkey": "<pubkey>", "content": "nip44Encrypt({'url':'blossom.one','hash':'xx','decrypt':'password123'})", "tags": [ @@ -81,7 +81,7 @@ sequenceDiagram Explanations: - * `kind:1120` - BIP39 word #1120 ([message](https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt#L1120)). + * `kind:21120` - BIP39 word #1120 ([message](https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt#L1120)), plus 20,000 to be treated as ephemeral (not stored by relays). * `"content"` - encrypted (NIP-44) JSON with location of blob and decryption key **OR** the content itself (if under a threshold) * `"E"` - ID of the request event. Enables a response to be easily identified. * `"r"` - (optional) relay on which the response should be sent. For Requests only.