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

invalid: unexpected pubkey size #10

Closed eko2one closed 1 year ago

eko2one commented 1 year ago

There seems to be a problem with the public key length. They should be of 64 length but are 66. Any idea what this could be related to?

Cannot publish to relays, since they return: invalid: unexpected pubkey size

eko2one commented 1 year ago

Seems like there is a prefix, when compressed pubkey is derived https://github.com/simplito/elliptic-php/issues/4#issuecomment-391512728

We need to strip first two characters.

swentel commented 1 year ago

merged, thanks!