Removing the last byte of the p2pk seems to be a bug caused by the tricky splice(start, end) fn, start being inclusive, end being _exclusive_ . Removal of the padding is '02' is fair enough.

Reply to this note

Please Login to reply.

Discussion

nostr uses x-only keys (32 bytes) which don't have the first '02' byte, wheras cashu uses compressed pubkeys (33 bytes). I doubt that `.splice(2, -1)` removes the last byte.

Thank you for the info!

It does remove the last byte btw, I'll just fix it.