-
Notifications
You must be signed in to change notification settings - Fork 17
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
Unresolved identifier Session #8
Comments
This is for the 1.0.1 build. I was completing the implementation of that before I upgraded. |
Since Session didn't seem to exist, I also attempted to hack around the issue with:
Note that I'm sending a message to myself in this scenario. Email is my email and deviceId is my deviceId. I'm seeing throw SignalError(.untrustedIdentity, "Untrusted identity for (remoteAddress)") |
Reviewed and updated the above code, since I was double-adding the first byte of the CypherTextMessage in the previous version. It's already included in the base64encoded string that was uploaded to the server, downloaded from the server and is being processed in the above segment of code. |
Even doing:
Results in throw SignalError(.untrustedIdentity, "Untrusted identity for (remoteAddress)") |
Should I be manually writing to the keystores at any point? Like:
I'm not doing anything like that, because it didn't mention it in the README.md. I feel like since Session doesn't exist as referenced in the Creating a session from a received PreKeySignalMessage section, there's likely some obvious answer. Maybe the README.md just needs to be updated due to code changes? |
This library looks great though. 🥇 Really looking forward to getting it implemented and would be thankful for any help you can provide in clarifying the implementation details. |
Still no response?! docs are pretty wrong than |
Sorry for the delayed response. The README is incorrect, The docs where not up to date with code, sorry for that. |
SessionCipher(for: aliceAddress, store: aliceStore) is the correct one now but the session address name is not plain. I don't know why but when session is created by library, it appends some dummy chars to the end of the name. |
I am getting an issue in decryption. getting error like untrusted Identity. is anyone has solution please help. |
In your sample code you have:
let session = Session(for: aliceAddress)
However, when I use that code, Xcode gives an error:
Use of unresolved identifier 'Session.' What should it be?
The text was updated successfully, but these errors were encountered: