Not bad, I just finished writing NIP-98 validator in that fucking language that starts and ends with P 🐢🐾🀣

Reply to this note

Please Login to reply.

Discussion

How are you validating signatures in it? Schnoor package?

Nope, found a brave soul that created an extension for use! 🐢🐾🫑

https://github.com/nostrbuild/nostr.build/blob/main/libs/NostrEvent.class.php

And Bech32 is a port from JS 🐢🐾🫑

https://github.com/nostrbuild/nostr.build/blob/main/libs/Bech32.class.php

PHP has the best syntax now I miss it 😭

I didn't know someone made this package https://github.com/1ma/secp256k1-nostr-php

Now I can go back to PHP

While you are at it, do you mind reviewing these two files for any stupid errors that I might have? πŸΆπŸΎπŸ«‚πŸ™πŸ»πŸ™πŸ»πŸ™πŸ»

Ok will do πŸ«‚πŸ’œ

Love you! πŸΆπŸΎπŸ«‚πŸ«‚πŸ«‚πŸ’œ

First thing is I think bech32 class can be replaced by the nostr-php package

I know because I built this exact translation myself before I found it

Reviewing other now

nostr-php is not maintained AFAIK and it’s too big with all the security issues 🐢🐾🫑

Me neither until I banged my head in frustration and decided to really look for it. I was thinking of writing njs module for nginx to do that part but felt a bit cheesy to me 🐢🐾🀣😭