A relay test suite for nostr relay implementations
WARNING: This package is meant to test a relay implementation, not a live relay:
Setup a fresh install of the relay for testing, with no events yet.
Generate two keypairs. We have included a binary "generate_keypair" so you can do this.
Configure the relay to allow both generated public keys to have full access to the relay (in case the relay isn't already fully open to the public).
Run relay-tester <url> <nsec1> <nsec2>
To use in a script (e.g. continuous integration), pass the "--script" command line option before the url and nsec data. It will then output only at the end, one line per result as JSON objects like this:
{"info":null,"pass":true,"required":true,"test":"Finds by multiple tags"}
{"info":null,"pass":false,"required":false,"test":"Persists ephemeral events"}