-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid data: only uncompressed keys are supported. #12
Comments
Hi, Please make sure that the user public key and user auth token are base 64 encoded (in the MIME specification RFC2045). To make sure, please send a dummy auth token/public key. |
Thanks this was the issue, str_replace(['_', '-'], ['/', '+'], $in); fixed it |
How exactly did you solve this? By adding this or this was an erroneous line in your code? |
hello guys ,
JS :
|
@dashatan How did you solve the problem? |
I also had this issue. My mistake was that I put the After swapping those variables, it worked! |
Me too, |
When attempting to send a notification I get the following exception from the encryption attempt.
https://github.com/phpecc/phpecc/blob/0cb2c74fcc3f70b4c03cc486e1acb893c0b97f42/src/Serializer/Point/UncompressedPointSerializer.php#L67
My p256dh and auth key values look correct and are of the correct length.
Is there anything else i can try?
The text was updated successfully, but these errors were encountered: