Apr 3, 2023

Gather test vectors in some JSON files

We need a bunch of JSON files with test vectors inside.

For starters, would be nice to have just a bunch of kind:1 events to see if they are valid and have a valid signature. We need vectors for events that should fail (for example, if they have an invalid signature or if they are missing some property or have something that isn't a string inside a tag array, stuff like that).

And also tests for parsing event filters and if a given filter matches a given event.

I don't know what is the best format for the JSON, but it should be something that library implementors can easily load -- for example, directly from GitHub -- and plug into their test file to test everything in a single loop.