Event JSON
{
"id": "c0451e82fc02b8b87218707bf94648c8de90fc7d5a0cd4ecf820be5c53fbadba",
"pubkey": "2b9a828913e945b2315406523c0e578a076bad56ea3c4ea7931392f70d1a8a3c",
"created_at": 1717995592,
"kind": 1,
"tags": [
[
"e",
"956894de469882b17a1b17992c54695ea16a8156769f22b3bb6209763b4d996c",
"",
"root"
],
[
"e",
"21df8af1c1887de39393fa4f5e3e1f51f4261ca2c1ade6369b5d69cf8dcfc320"
],
[
"e",
"94031136424b50a8fbb9c275a5b4960121cad25eb170da7f77eee2c6bd27a2ca",
"",
"reply"
],
[
"p",
"2b9a828913e945b2315406523c0e578a076bad56ea3c4ea7931392f70d1a8a3c"
],
[
"p",
"33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940"
],
[
"r",
"nip4.go"
],
[
"r",
"nostr.Event"
],
[
"r",
"nostr.Now"
]
],
"content": "It's KindEncryptedDirectMessage. This is the struct. nip4.go has encryption functions\n\nev := nostr.Event{\n\tPubKey: pub,\n\tCreatedAt: nostr.Now(),\n\tKind: KindEncryptedDirectMessage,\n\tTags: nil,\n\tContent: need to encrypt this,\n}\n\n",
"sig": "ac7048eeaa8485ab0ee7d5406ed8bb73aae9a5fc38187307b641528394c5115ad89803059735adc5584c81e42b2b9407a32adf1421640946cac97a37a110451b"
}