nostr:npub1utx00neqgqln72j22kej3ux7803c2k986henvvha4thuwfkper4s7r50e8 you may actually be interested in this. It's a small PHP binding to libsecp256k1 specifically tailored to validate Nostr events. Will publish soon.

Please! I am using schnoor signatures and manually formatting events and hashes right now and it's really annoying

Reply to this note

Please Login to reply.

Discussion

Honestly it's still a bit annoying to parse, though it flies compared to simplito/elliptic-php.

But you just made me realize I could write a nostr_validate(event) native function that takes the json and simply returns true/false 👀