Ian on Nostr: So if building a rest API I would only accept hex keys as the 'id' in a GET request ...
So if building a rest API I would only accept hex keys as the 'id' in a GET request not the npub?
Published at
2024-06-03 16:22:09Event JSON
{
"id": "326d371cbb7768dd34a37672897d847d0e0c17f1a7ad059c1de083035a28b5a4",
"pubkey": "0eef96197f5c6be3859b6817e6a5736685856c416e29a2925bd5a15b2a57c8b1",
"created_at": 1717424529,
"kind": 1,
"tags": [
[
"e",
"485dc841ddc01550e7fa1c4afdcebdf93bd76eacac1ecef8e59291a1aad37de5",
"",
"root"
],
[
"e",
"323da162b62f1b4388d3865223b2a30c58aefd9c0ed0ad68a73b449742dec2f4",
"",
"reply"
],
[
"p",
"0eef96197f5c6be3859b6817e6a5736685856c416e29a2925bd5a15b2a57c8b1"
],
[
"p",
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52"
]
],
"content": "So if building a rest API I would only accept hex keys as the 'id' in a GET request not the npub? ",
"sig": "da40df64a0ffce64ecc679a5456994e081c9ade7772f4e6d5beda1f23320957180ef9af223435d573c3dd79b88004a7bdb65ac16b82165c99a60d493d6a2f2c5"
}