Skip to content
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

<Message is not decryptable on this device> #20

Open
namelessperson0 opened this issue Jun 13, 2022 · 7 comments
Open

<Message is not decryptable on this device> #20

namelessperson0 opened this issue Jun 13, 2022 · 7 comments

Comments

@namelessperson0
Copy link
Contributor

When a private message is sent though this library, the sender is shown the below message in the inbox from bitclout.com and diamondapp.com
<Message is not decryptable on this device>
The receiver receives the correct message though. But the sender has issues in seeing the message sent.

@ItsAditya-xyz
Copy link
Owner

ItsAditya-xyz commented Jun 13, 2022

hmm, that's weird. I am having that problem as well
image

likely because the DM is not being encrypted before sending...

@namelessperson0
Copy link
Contributor Author

Note that receiver is able to read the message without issue. It is only the sender having the issue.

@ItsAditya-xyz
Copy link
Owner

i think it's an issue with the frontends itself (if the receiver can see the msg, than it's obvious the sender can see it too.
btw, the library doesn't really encrypts the message before sending so i think that might be the issue

@namelessperson0
Copy link
Contributor Author

But messages sent in frontend do not have this issue.

@ItsAditya-xyz
Copy link
Owner

ItsAditya-xyz commented Jun 13, 2022

yup, because those messages are not encrypted. You can see the payload request while sending a msg

@namelessperson0
Copy link
Contributor Author

namelessperson0 commented Jun 22, 2022

bitclout.com uses "EncryptedMessageText" in post data while this python library uses "MessageText".

In deso-protocol nodejs package, this.identity.encrypt is used to encrypt the message at https://github.com/deso-protocol/deso-workspace/blob/58095ec99eb2010feba55c39e6507bd14d7529b1/libs/deso-protocol/src/lib/social/Social.ts#L44

That encrypt function is defined in https://github.com/deso-protocol/identity/blob/dc744ab49944409b28f36ffe039d39cacf16e92b/src/app/signing.service.ts#L28

I think we will need this package https://github.com/ecies/py for encrypting the message.

@ItsAditya-xyz
Copy link
Owner

I see. I will try figure that out. Feels free to create a PR to solve this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants