Reply to this note

Please Login to reply.

Discussion

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

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 🐢🐾🀣😭

… unecoded… that’s a new word! 🐢🐾🀣

It's only for me to see during debugging lol 😭 πŸ«‘πŸ«‚πŸ’œ

Lol! πŸΆπŸΎπŸ€£πŸ˜­πŸ˜­πŸ˜­πŸ«‚

Trying to wrap your brain around Rust is impossible.

Because you have to unwrap and box it first.

Heuh heuh dyn box at that