dcs on Nostr: #[0] Thanks! My first sats, ever! I'll be sure not to spend them all in one place. ...
Mike Dilger ☑️ (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/0c54e6f2056a8646c2eaf66358fbadbeSince 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?
Published at
2023-02-07 14:29:08Event JSON
{
"id": "176d3740b8c32ac724f309b569c4798f1e6a26faaac7703ad5efcbaa5d3a914d",
"pubkey": "c7da62153485ecfb1b65792c79ce3fe6fce6ed7d8ef536cb121d7a0c732e92df",
"created_at": 1675780148,
"kind": 1,
"tags": [
[
"p",
"ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49"
]
],
"content": "#[0] Thanks! My first sats, ever! I'll be sure not to spend them all in one place.\n\nHey, 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\n\nSince validators are just configurable functions, it's very easy for relay operators to customize. \nThe output_validator code is not released yet, as I'm not sure if it's a worthwhile feature. What do you think?\n",
"sig": "47a3510d7288d9450205909955ddc483c2c80acb8848011009f5487eea2d061e3ca0bbdfa38b5f25b0f997345070a5701c9f51238c1cdf3c5eecb6321bc9e69d"
}