Add tests for delegations (sign/verify, delegation()) #6
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/nostr-types!6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "deleg-tests"
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?
Shit. I thought I could change the parameters of verify_signature since it was new and nobody would have used it yet, right? Wrong. I broke your tests. Can you change the 2 calls to verify_signature() to the new parameters (I swapped the order, made them references, and both are pubkeys (neither is hex)).
I've added tests to Event::delegation(), and fixed a copy-paste error in comparison relation.
Did that, no problem
Hey! Your tests found a bug! That is what tests are for.
Ready to merge?
Ready