What is Nostr?
dcs / dave
npub1cld…rps5
2023-02-07 14:29:08

dcs on Nostr: #[0] Thanks! My first sats, ever! I'll be sure not to spend them all in one place. ...

mikedilger (npub1acg…p35c) Thanks! My first sats, ever! I'll be sure not to spend them all in one place.

Hey, I saw on NIP-56 that you were wanting an inbox/outbox style of relay. I wondered how that would look for the python relay, so I whipped up this example code and configuration: https://gist.github.com/davestgermain/0c54e6f2056a8646c2eaf66358fbadbe

Since validators are just configurable functions, it's very easy for relay operators to customize.
The output_validator code is not released yet, as I'm not sure if it's a worthwhile feature. What do you think?
Author Public Key
npub1cldxy9f5shk0kxm90yk8nn3lum7wdmta3m6ndjcjr4aqcuewjt0sx3rps5