Ademan on Nostr: *possibly* related, although I don't think so: says payload should be base64 encoded, ...
*possibly* related, although I don't think so:
https://github.com/nostr-protocol/nips/blob/master/96.md says payload should be base64 encoded, but
https://github.com/nostr-protocol/nips/blob/master/98.md says the payload should be hex encoded
This seems to be contradictory?
nostr-tools uses the hex encoding, so if the server is expecting base64 that could be a problem, although like I said, I don't *think* these servers are processing the Auth header at all by the time they send me back a 400.
I'll at least try changing it to a base64 encoded payload hash once I get back from mowing the lawn...
Published at
2024-07-13 19:08:10Event JSON
{
"id": "aa6716b042dca197e674bd3e94c7056c112fce8ec220489cab89fab9c16159fa",
"pubkey": "2cb30c36438bad4a2a5107bc98f5cebe6a0229b0554d8cfbd1c99aa3cc7ecec1",
"created_at": 1720897690,
"kind": 1,
"tags": [
[
"e",
"fdd97ba03bbd7c522fd31ccb159431815c839d7ab2a1e45805fb4f1a0a9f2ab1",
"wss://relay.damus.io/",
"root",
"2cb30c36438bad4a2a5107bc98f5cebe6a0229b0554d8cfbd1c99aa3cc7ecec1"
]
],
"content": "*possibly* related, although I don't think so:\n\nhttps://github.com/nostr-protocol/nips/blob/master/96.md says payload should be base64 encoded, but\n\nhttps://github.com/nostr-protocol/nips/blob/master/98.md says the payload should be hex encoded\n\nThis seems to be contradictory?\n\nnostr-tools uses the hex encoding, so if the server is expecting base64 that could be a problem, although like I said, I don't *think* these servers are processing the Auth header at all by the time they send me back a 400.\n\nI'll at least try changing it to a base64 encoded payload hash once I get back from mowing the lawn...",
"sig": "dd1c71059b91fabfefb07378ad04087f8f7b4c32774c4b0d40727b79699b57f9f53e047c82458979339be9f4db0e11fa2168ac8b85d1fb24edbb1c7840f3dcf5"
}