nostrver-se / nostr-php

PHP helper library for Nostr https://nostr-php.dev
https://nostr-php.dev
MIT License
53 stars 15 forks source link

Fix bad event id when content includes unicode characters #27

Closed pjv closed 1 year ago

pjv commented 1 year ago

When running json_encode AFTER the event is signed, we have to deter it from escaping unicode characters or it changes the message content, which invalidates the event id.

Fixes #23

swentel commented 1 year ago

Right, this makes sense I guess.

Will merge when I get back from holiday (after the 17th)