We could use https://github.com/nbd-wtf/nostr-tools/blob/master/nip19.test.ts as starting point. Converting the tests to php and then implementing the code.

Reply to this note

Please Login to reply.

Discussion

That's one of the reference I was looking at too, combined with the go-nostr library

Excellent, I am working on an implementation, but it is challenging me. I translated the tests to php, but I think I am now at the part where I need to convert the data to bits. Will continue monday, but hopefully sooner. How is your progression?

You can check my latest commits in the nip19 branch in the nostr-php

https://github.com/nostrver-se/nostr-php/commit/663f8d0054f03cb05f33f628c001a4be0b7790fe

What about a having online call to go through our challenges?

Haha, you're further than me I see 😅, what is the problem you are currently facing? 🦆(don't see a runner duck emoji)

Converting the bits to bytes with the bech32 for the nevent entity