writing function in prose

This commit is contained in:
Vitor Pamplona 2024-03-28 19:21:55 -04:00
parent a396b62fe9
commit 394c77bb11

4
59.md
View File

@ -34,7 +34,7 @@ A `seal` is a `kind:13` event that wraps a `rumor` and is signed with the sender
{ {
"id": "<id>", "id": "<id>",
"pubkey": "<real author's pubkey>", "pubkey": "<real author's pubkey>",
"created_at": now() or randomTimeUpTo2DaysInThePast(), "created_at": "<now or random time up to 2 days in the past>",
"kind": 13, "kind": 13,
"tags": [], "tags": [],
"content": nip44Encrypt(rumor, "<recipient pubkey>", "<author's private key>"), "content": nip44Encrypt(rumor, "<recipient pubkey>", "<author's private key>"),
@ -58,7 +58,7 @@ A `gift wrap` event is a `kind:1059` event that wraps any other event. `tags` SH
{ {
"id": "<id>", "id": "<id>",
"pubkey": "<random, one-time-use pubkey>", "pubkey": "<random, one-time-use pubkey>",
"created_at": now() or randomTimeUpTo2DaysInThePast(), "created_at": "<now or random time up to 2 days in the past>",
"kind": 1059, "kind": 1059,
"tags": [["p", "<recipient pubkey>", "<relay>"]], "tags": [["p", "<recipient pubkey>", "<relay>"]],
"content": nip44Encrypt(event, "<recipient pubkey>", "<random private key>"), "content": nip44Encrypt(event, "<recipient pubkey>", "<random private key>"),