stop duplicating payload in the body of the event #2
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nostr/relay-manager!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sorry, I edited this file on GitHub so it's probably broken, but I don't know if this is correct. Are you taking the same content sent in the body of the POST and putting it inside the event which is then base64d and sent as a header? This feels wrong, I think we can get away with just the hash of the content, no?
Also, maybe we should remove the URL and method from the tags because they're completely irrelevant (I know NIP-98 mentions them, but still we gain nothing by following that).
Oh shit! Good catch. That was not what I thought I had done. I must be having Joe Biden moments.
The url and method limit the scope of replays. But if all commands are idempotent (and I think they are) then it doesn't really matter. So we could remove them. Or we could just pare it back to the host which limits replay onto other hosts running the same software.
OK, I think the
hostmakes sense. I hadn't thought about replays. Let's do that. I should write this on the NIP.The full URL and method don't really do anything since they're always the same, no?
Right.