Replying to Avatar Sebastix

nostr:npub1efz8l77esdtpw6l359sjvakm7azvyv6mkuxphjdk3vfzkgxkatrqlpf9s4 I'm working on a full integration of NIP-19 in nostr:npub1phpdev2d38u5hzs4jrsh360mevh0rjctu9669quy97wu23u8sqdqpfha0j but as regular webdeveloper I'm struggling to write the correct low-level stuff with the encoding/decoding with the bits and bytes before all is being encoded with the bech32 helper.

Work in progress: https://github.com/nostrver-se/nostr-php/tree/nip19 and this is the writeTLVEntry() method where I'm taking care of this: https://github.com/nostrver-se/nostr-php/blob/nip19/src/Nip19/Nip19Helper.php#L200.

So I'm looking for some help / guidance 🤓 Can you help me along? 🙏

nostr:nevent1qvzqqqqqqypzp5ajw47utygd8rxq96nd29qeavk7wna3p9ck2qwh4fmnyc6mnugmqqs2aey35tc8vw6cn2nzg5nk2n3rfw6j6rsc2z30k57cvxgcyftxk9sy9myt6

https://github.com/nostriphant/nip-19

Reply to this note

Please Login to reply.

Discussion

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.